LootChests

Moved

Total Downloads: 3,131 - First Release: Jan 29, 2016 - Last Update: Jul 17, 2017

5/5, 16 likes
  1. The "StartPoint" is an array, so you can have as many as you want. All of the other config settings are used for each StartPoint location.
    So you can have a small area, a massive area, or several small or massive areas across the map.
     
  2. So if I have 6 chests set to spawn.... is that 6 total or 6 per spawn point?
     
  3. Here to thank you plug! And you pay!
    I do not speak English, this translation!
    There is a problem here!
    Players box will disappear! I've been tested! This is confirmed!
     
  4. Me too, i confirm!
    And it's not always a box created by the plugin.
     
  5. you need to fix that the chests goes away in player bases
     
  6. [Error] Failed to run a 3200.00 timer in 'LootChests v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    4:06 PM [Debug] at Oxide.Plugins.LootChests.<ChestSpawns>m__1 () [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0 how to fix?
     
  7. Code:
    [Oxide] 10:37 AM [Info] Loaded plugin LootChests v1.0.4 by Noviets
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
    [LivemapIO] 10:37 AM [Error] Failed to initialize plugin 'LootChests v1.0.4' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path '205', line 30, position 3.)
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
    [Oxide] 10:37 AM [Error] Failed to initialize plugin 'LootChests v1.0.4' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path '205', line 30, position 3.)
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
    [LivemapIO] 10:37 AM [Debug]   at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
    [Oxide] 10:37 AM [Debug]   at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
    [LivemapIO] 10:37 AM [Info] Unloaded plugin LootChests v1.0.4 by Noviets
     
  8. You have an error in your config file, can you paste it here within
    Code:
    
    
    ?
     
  9. how to fix? [Error] Failed to run a 3200.00 timer in 'LootChests v1.0.4'
     
  10. {
    "ChestSpawnCount": 100,
    "ItemsPerChest": 1,
    "MaximumRange": 6500.0,
    "MessageDespawn": "<color=#ffa500>LootChests</color>: Loot Chests have been Despawned",
    "MessageSpawn": "<color=#ffa500>LootChests</color>: Loot Chests have Spawned",
    "MininumRange": 0.0,
    "SecondsForSpawn": 7200,
    "SecondsTillDestroy": 1800,
    "ShowDespawnMessage": true,
    "ShowSpawnMessage": true,
    "StartPoints": [
    "-3200, 450, -3200"
    ]
    }
     
  11. That's the default config, is that the one you are using? If you delete the config and /reload LootChests do you get the same error?
     
  12. i will try
    [DOUBLEPOST=1454873393][/DOUBLEPOST]
    Code:
    [Oxide] 8:28 PM [Info] LootChests was compiled successfully in 2043ms
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)Non platform assembly: data-0000000023519720 (this message is harmless)
    Fallback handler could not load library C:/TCAFiles/Users/JeremyW/14247/Hurtworld_Data/Mono/data-0000000023519720.dll
    [LivemapIO] 8:28 PM [Info] Loaded plugin LootChests v1.0.4 by Noviets
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[Oxide] 8:28 PM [Info] Loaded plugin LootChests v1.0.4 by Noviets
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[LivemapIO] 8:28 PM [Error] Failed to initialize plugin 'LootChests v1.0.4' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path '205', line 30, position 3.)
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[Oxide] 8:28 PM [Error] Failed to initialize plugin 'LootChests v1.0.4' (JsonReaderException: After parsing a value an unexpected character was encountered: ". Path '205', line 30, position 3.)
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[LivemapIO] 8:28 PM [Debug]   at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0  at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unknown>:0  at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[Oxide] 8:28 PM [Debug]   at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0  at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unknown>:0  at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[LivemapIO] 8:28 PM [Info] Unloaded plugin LootChests v1.0.4 by Noviets
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[Oxide] 8:28 PM [Info] Unloaded plugin LootChests v1.0.4 by Noviets
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[LivemapIO] 8:28 PM [Info] No previous version to rollback plugin: LootChests
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)[Oxide] 8:28 PM [Info] No previous version to rollback plugin: LootChests
    [DOUBLEPOST=1454873414][/DOUBLEPOST]i have delete the config
     
  13. Feedback: Awesome!

    I managed to spawn chests on specific locations. Using the location plugin I got the locations of good spots, and them pasted in configs.
    Example:

    Code:
    {
      "ChestSpawnCount": 1,
      "ItemsPerChest": 1,
      "MaximumRange": 1.0,
      "MessageDespawn": "<color=#ffa500>LootChests</color>: Loot Chests have been Despawned",
      "MessageSpawn": "<color=#ffa500>LootChests</color>: Loot Chests have Spawned",
      "MininumRange": 0.0,
      "SecondsForSpawn": 60,
      "SecondsTillDestroy": 1800,
      "ShowDespawnMessage": true,
      "ShowSpawnMessage": true,
      "StartPoints": [
        "-3511, 450, -2185",
        "-3899, 450, -2035",
        "-3732, 450, -2007"
      ]
    }
    This will spawn one chest at each location.

    Its possible to make they spawn in random locations using StartPoints?
    Make the plugin pick random Start Points so they will spawn on different places at time.

    In this case, sometimes they spawn on "-3511, 450, -2185", and the next time "-3732, 450, -2007" and so on.

    This way I can hide chests in specific places.
     
  14. Noviets updated LootChests with a new update entry:

    1.0.5

     
  15. So what happens if I just leave the original coordinates that came in the config file the same and just up the range to 6.5k meters?
     
  16. Thanks Noviets it working again
     
  17. it's possible to have a realy random circle radius spawn?
     
  18. Hi Noviets - nice update thanks...basics all seem to be working.

    I have a couple of players stating though that their "player made" chest, despawned from inside their base (after the "lootchests" despawned message)

    Trying to confirm....
     
  19. I'll look into this, It shouldn't be possible but a few people have reported this now
     
  20. Noviets updated LootChests with a new update entry:

    1.0.6


    [DOUBLEPOST=1454975700][/DOUBLEPOST]
    So you want to pick one random location from all of the start points? Or iterate through the list in order? (1, 2, 3 etc)
     
    Last edited by a moderator: Feb 8, 2016