LootConfig

Allows you to adjust the server's loot list

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

5/5, 21 likes
  1. Nogrod updated LootConfig with a new update entry:

    1.0.16

     
  2. wtf...

    Code:
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
    [11/12/2016 07:13:46] [Oxide] 07:13 [Info] [LootConfig] No spawngroup data found: unkown
     
  3. Code:
    (19:06:24) | [Oxide] 19:06 [Error] Error while compiling LootConfig.cs(313,52): error CS0012: The type `IServerComponent' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Rust.Global, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
     
  4. Make sure you are running the latest version
     
  5. People help.
    Can't find the setting which is responsible for Tech Trash. how to change the number of drop items?
     
  6. To fix this bug:
    Code:
    [Oxide] 12:24 [Error] Error while compiling LootConfig.cs(313,52): error CS0012: The type `IServerComponent' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Rust.Global, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
    Modify this lines:
    Code:
    Line 312:                     if (lootContainer.GetComponent<Spawnable>() == null)
    Line 313:                     {
    Line 314:                         if (lootContainer.name.Equals(lootContainer.PrefabName) || lootContainer.name.Equals(Core.Utility.GetFileNameWithoutExtension(lootContainer.PrefabName)))
    Line 315:                         {
    Line 316: #if DEBUG
    Line 317:                             var components = lootContainer.GetComponents<MonoBehaviour>();
    Line 318:                             Puts("Name: {0} Identical: {1}\tActiveP: {2}\tActiveC: {3}", lootContainer.name, GameManager.server.FindPrefab(lootContainer.PrefabName) == lootContainer.gameObject, GameManager.server.FindPrefab(lootContainer.PrefabName).activeInHierarchy, lootContainer.gameObject.activeInHierarchy);
    Line 319:                             Puts("Components: {0}", string.Join(",", components.Select(c => c.GetType().FullName).ToArray()));
    Line 320:                             Puts("Position: {0}", lootContainer.transform.position);
    Line 321: #endif
    Line 322:                             UpdateLootContainer(_config.LootContainers, lootContainer, lootSpawns);
    Line 323:                         }
    Line 324:                         continue;
    Line 325:                     }
    to:
    Code:
    Line 312:                    /* if (lootContainer.GetComponent<Spawnable>() == null)
    Line 313:                     {
    Line 314:                         if (lootContainer.name.Equals(lootContainer.PrefabName) || lootContainer.name.Equals(Core.Utility.GetFileNameWithoutExtension(lootContainer.PrefabName)))
    Line 315:                         {
    Line 316: #if DEBUG
    Line 317:                             var components = lootContainer.GetComponents<MonoBehaviour>();
    Line 318:                             Puts("Name: {0} Identical: {1}\tActiveP: {2}\tActiveC: {3}", lootContainer.name, GameManager.server.FindPrefab(lootContainer.PrefabName) == lootContainer.gameObject, GameManager.server.FindPrefab(lootContainer.PrefabName).activeInHierarchy, lootContainer.gameObject.activeInHierarchy);
    Line 319:                             Puts("Components: {0}", string.Join(",", components.Select(c => c.GetType().FullName).ToArray()));
    Line 320:                             Puts("Position: {0}", lootContainer.transform.position);
    Line 321: #endif
    Line 322:                             UpdateLootContainer(_config.LootContainers, lootContainer, lootSpawns);
    Line 323:                         }
    Line 324:                         continue;
    Line 325:                     }*/
    I hope this helps you ;)
     
  7. try to update rust & oxide again, if this does not help try to add at the top of the plugin file
    Code:
    //Reference: Rust.Global
    normally should not be needed

    again, can't be considered as a fix, just removed features until the plugin compiled...see above
     
  8. People help.
    Can't find the setting which is responsible for Tech Trash. how to change the number of drop items?
     
  9. Anyone else getting this, or is it just on my end?

    Code:
    [Oxide] 12:58 [Info] [LootConfig] Config save failed: Object reference not set to an instance of an object
      at Oxide.Plugins.LootConfig+LootSpawnEntryConverter.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
    
    EDIT: Nevermind, a quick server restart and everything is great. Except for this flooding the console on reload:

    Code:
    [Oxide] 13:55 [Info] [LootConfig] No spawngroup data found: unkown
    [Oxide] 13:55 [Info] [LootConfig] No spawngroup data found: unkown
    [Oxide] 13:55 [Info] [LootConfig] No spawngroup data found: unkown
    [Oxide] 13:55 [Info] [LootConfig] No spawngroup data found: unkown
    
     
    Last edited by a moderator: Nov 12, 2016
  10. found a fix ~~~~
     
    Last edited by a moderator: Nov 12, 2016
  11. error "[Oxide] 12:24 [Error] Error while compiling LootConfig.cs(313,52): error CS0012: The type `IServerComponent' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Rust.Global, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'"

    got the plugin to stop giving the plugin by editing the config



    but now im just getting

    [Oxide] 13:06 [Info] [LootConfig] No container data found: assets/bundled/prefabs/radtown/foodbox.prefab




    Update: Found a fix for No container data found for foodbox add this to config

    },
    "assets/bundled/prefabs/radtown/foodbox.prefab": {
    "DestroyOnEmpty": true,
    "LootDefinition": "LootSpawn.TrashPile",
    "MaxDefinitionsToSpawn": 3,
    "MinSecondsBetweenRefresh": 900.0,
    "MaxSecondsBetweenRefresh": 1800.0,
    "DistributeFragments": false,
    "InitialLootSpawn": true,
    "SpawnType": "GENERIC",
    "InventorySlots": 6
    },
     
    Last edited by a moderator: Nov 12, 2016
  12. Nogrod updated LootConfig with a new update entry:

    1.0.17

     
  13. Getting this again

    Code:
    [Oxide] 12:58 [Info] [LootConfig] Config save failed: Object reference not set to an instance of an object
      at Oxide.Plugins.LootConfig+LootSpawnEntryConverter.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
    
     
  14. Code:
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:37) | SubCategoryIntoContainer: This should never happen!
    (14:07:38) | SubCategoryIntoContainer: This should never happen!
    (14:07:38) | SubCategoryIntoContainer: This should never happen!
    it was working fine yesterday not sure why its doing this now
     
  15. downloaded fresh new version and i get
    Code:
    [Oxide] 15:38 [Error] Error while compiling LootConfig.cs(323,52): error CS0012: The type `IServerComponent' is defined in an assembly that is not referenced. Consider adding a reference to assembly `Rust.Global, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
     
  16. how to save loot config after build changes?
     
  17. @Nogrod - I don't know if this is working right or maybe I'm using wrong but If I use this

    Example:
    Code:
    "Shortname": "ammo.rifle",
    "Amount": 1.0,
    "MaxAmount": 30.0
    
    It only drops 1 or 30 doesn't drop in between like min/max I don't know if this is a bug or I am using it wrong. Would be cool to be able to have a min/max random quantity.

    Regards,
     
  18. Lootconfig is complete based on server internals. And this supports no randomization for the amount.