LootConfig

Allows you to adjust the server's loot list

Total Downloads: 14,967 - First Release: Mar 27, 2015 - Last Update: May 20, 2018

5/5, 21 likes
  1. hi, i nid help, in my console appear this: no spawn config loaded, skipping spawn groups... and in every rad town havent any box... please i nid help
     
  2. i compiled again and follow appear the message that say no spawn config loaded...
     
  3. whats the newest version on - " "Version": 1348,"
     
  4. not dropping m249 in heli loot, i destroy 50 helis and not drop m249
     
  5. I am attempting to change the loot in the airdrops. If i can figure out this i think i could figure out the rest. I went to the catergory "ExplosivesCollectiong" line 2453 and copied the catergory then renamed it.
    "ExplosivesCollectionHollywood": {
    "Items": [
    {
    "Shortname": "explosive.timed",
    "Amount": 3.0
    },
    {
    "Shortname": "ammo.rocket.basic",
    "Amount": 6.0
    }
    ],
    Changed the amount values(so i could tell it apart from the regular ExplosiveCollection even though its not added) and then put this in under the supply drops with a way boosted weight(just for testing).

    "LootSpawn.SupplyDrop": {
    "Items": [],
    "SubSpawn": [
    {
    "Category": "C4",
    "Weight": 10
    },
    {
    "Category": "ExplosivesCollectionHollywood",
    "Weight": 1000
    },
    {
    "Category": "Armor",
    "Weight": 200
    },
    {
    "Category": "Ammo",
    "Weight": 300
    },
    {
    "Category": "Collection.Rifles",
    "Weight": 100
    },
    {
    "Category": "Mining Ore",
    "Weight": 20
    },
    {
    "Category": "Traps",
    "Weight": 40
    },
    {
    "Category": "HQMetal_Large",
    "Weight": 30
    },
    {
    "Category": "TurretParts",
    "Weight": 50
    }
    ]
    },

    I've now called in 50+ supply drops and my custom loot never dropped. Can i not make my own categories? Is the category tree not long enough? I've noticed they mostly have three "branches" for lack of a better term? Kind of lost i know others have different category names as long as the short name is the same when they define the item... So confused.
     
  6. whats the id for the new gun?
     
  7. rifle.lr300
     
  8. which configuration is current at the moment? Who can send json?
     
  9. Its autogenerated..and it's always a different one denpending on map-size and map-seed.
     
  10. Nogrod updated LootConfig with a new update entry:

    1.0.14

     
  11. bug report
    Code:
    [10/07/2016 05:09:57] [Oxide] 05:09 [Info] [LootConfig] Incorrect config version(1700/7[3000, 1662525860])
    [10/07/2016 05:09:58] [Oxide] 05:09 [Info] [LootConfig] Config save failed: Object reference not set to an instance of an object
      at Oxide.Plugins.LootConfig+ItemAmountConverter.WriteJson (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.JsonSerializer serializer) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable (Newtonsoft.Json.JsonWriter writer, Newtonsoft.Json.JsonConverter converter, System.Object value, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList (Newtonsoft.Json.JsonWriter writer, IEnumerable values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0 
     
  12. at Oxide.Plugins.LootConfig+ItemAmountConverter.WriteJson (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.JsonSerializer serializer) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable (Newtonsoft.Json.JsonWriter writer, Newtonsoft.Json.JsonConverter converter, System.Object value, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList (Newtonsoft.Json.JsonWriter writer, IEnumerable values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
     
  13. If one can send me your config files, my config is empty and i delete Lootconfig.cs dans reupload but is all time empty :/
     
  14. Getting same error as above after yesterdays update:(

    Code:
    (10:33:12) | [Oxide] 10:31 [Error] Exception while calling NextTick callback (NullReferenceException: Object reference not set to an instance of an object)
    (10:33:12) | [Oxide] 10:31 [Debug]   at Oxide.Plugins.LootConfig.FillItemAmount (.ItemAmount[] amounts, .ItemAmountData[] amountDatas, System.String parent) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.UpdateLootContainer (System.Collections.Generic.Dictionary`2 containerData, .LootContainer container, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.UpdateLoot () [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.OnFrame (Single delta) [0x00000] in <filename unknown>:0
     
  15. Nogrod updated LootConfig with a new update entry:

    1.0.15

     
  16. no fix?
    Code:
    [10/08/2016 06:42:16] [Oxide] 06:42 [Info] Unloaded plugin LootConfig v1.0.14 by Nogrod
    [10/08/2016 06:42:16] [Oxide] 06:42 [Info] Loaded plugin LootConfig v1.0.15 by Nogrod
    [10/08/2016 06:42:17] [Oxide] 06:42 [Info] [LootConfig] Incorrect config version(0/0[0, 0])
    [10/08/2016 06:42:18] [Oxide] 06:42 [Info] [LootConfig] Created new config...
    [10/08/2016 06:42:19] [Oxide] 06:42 [Info] [LootConfig] No container data found: assets/bundled/prefabs/radtown/crate_normal.prefab
    [10/08/2016 06:42:19] [Oxide] 06:42 [Info] [LootConfig] No container data found: assets/bundled/prefabs/radtown/oil_barrel.prefab
    [10/08/2016 06:42:19] [Oxide] 06:42 [Info] [LootConfig] No container data found: assets/bundled/prefabs/radtown/oil_barrel.prefab
    [10/08/2016 06:42:19] [Oxide] 06:42 [Info] [LootConfig] No container data found: assets/bundled/prefabs/radtown/oil_barrel.prefab
    [10/08/2016 06:42:19] [Oxide] 06:42 [Info] [LootConfig] No container data found: assets/bundled/prefabs/radtown/oil_barrel.prefab
    [10/08/2016 06:42:19] [Oxide] 06:42 [Debug]   at Oxide.Plugins.LootConfig.FillItemAmount (.ItemAmount[] amounts, .ItemAmountData[] amountDatas, System.String parent) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.UpdateLootContainer (System.Collections.Generic.Dictionary`2 containerData, .LootContainer container, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.UpdateLoot () [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.OnFrame (Single delta) [0x00000] in <filename unknown>:0 
     
  17. (17:39:57) | [Oxide] 17:37 [Info] Loaded plugin LootConfig v1.0.15 by Nogrod

    (17:39:57) | [Oxide] 17:37 [Info] [LootConfig] Incorrect config version(0/0[0, 0])

    (17:39:58) | [Oxide] 17:37 [Info] [LootConfig] Config save failed: An element with the same key already exists in the dictionary.

    at System.Collections.Generic.Dictionary`2[System.String,LootSpawn].Add (System.String key, .LootSpawn value) [0x00000] in <filename unknown>:0

    at System.Linq.Enumerable.ToDictionary[LootSpawn,String,LootSpawn] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

    at System.Linq.Enumerable.ToDictionary[LootSpawn,String] (IEnumerable`1 source, System.Func`2 keySelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0

    at System.Linq.Enumerable.ToDictionary[LootSpawn,String] (IEnumerable`1 source, System.Func`2 keySelector) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.LootConfig.CreateDefaultConfig () [0x00000] in <filename unknown>:0

    (17:39:58) | [Oxide] 17:37 [Warning] Calling 'OnServerInitialized' on 'LootConfig v1.0.15' took 951ms
     
  18. yeah, getting error even after update :(
    Code:
    (05:04:45) | [Oxide] 05:04 [Info] Unloaded plugin LootConfig v1.0.14 by Nogrod
    (05:04:45) | [Oxide] 05:04 [Info] Loaded plugin LootConfig v1.0.15 by Nogrod
    (05:04:46) | [Oxide] 05:04 [Warning] Calling 'OnServerInitialized' on 'LootConfig v1.0.15' took 311ms
    (05:04:46) | [Oxide] 05:04 [Error] Exception while calling NextTick callback (NullReferenceException: Object reference not set to an instance of an object)
    (05:04:46) | [Oxide] 05:04 [Debug]   at Oxide.Plugins.LootConfig.FillItemAmount (.ItemAmount[] amounts, .ItemAmountData[] amountDatas, System.String parent) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.GetLootSpawn (System.String lootSpawnName, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.UpdateLootContainer (System.Collections.Generic.Dictionary`2 containerData, .LootContainer container, System.Collections.Generic.Dictionary`2 lootSpawns) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.UpdateLoot () [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.OnFrame (Single delta) [0x00000] in <filename unknown>:0
     
  19. I have a moddified server , but I dont understand so much this pluggin because my english y so little poor. Can any one share his config to me ? I just want a little bit better loot on crates , heli and supply. Just this. Sorry for that ... I tried many time to understand this plugin but so hard for me. Sorry guys and thanks all folks !
     
  20. Try to update the plugin and restart the server. Since the old version was bugged with new rust version updating at runtime won't work.
    [DOUBLEPOST=1476166187][/DOUBLEPOST]
    See above :p