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. Аfter global wipe
    Code:
    23:57 [Info] Loaded plugin LootConfig v1.0.21 by Nogrod
    23:57 [Info] [LootConfig] Incorrect config version(1989/10[3000, 1063])
    23:57 [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
    23:57 [Warning] Calling 'OnServerInitialized' on 'LootConfig v1.0.21' took 543ms
    23:59 [Info] Unloaded plugin LootConfig v1.0.21 by Nogrod
    23:59 [Info] Loaded plugin LootConfig v1.0.21 by Nogrod
    23:59 [Info] [LootConfig] Incorrect config version(1989/10[3000, 1063])
    23:59 [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
    23:59 [Warning] Calling 'OnServerInitialized' on 'LootConfig v1.0.21' took 538ms
     
  2. Okay, now I know the config can be appended to without changing the items we already configured. I know this because the plugin playerranks.cs was able to add a configuration option without resetting all the other options that I already configured.

    So please add this to permanently to the config file:
    "LootContainers": {
    "assets/bundled/prefabs/radtown/minecart.prefab": {
    "DestroyOnEmpty": true,
    "LootDefinition": "LootSpawn.MineCrate",
    "MaxDefinitionsToSpawn": 1,
    "MinSecondsBetweenRefresh": 3600.0,
    "MaxSecondsBetweenRefresh": 7200.0,
    "SpawnType": 0,
    "InventorySlots": 6
    },

    Also please make it so that it doesn't reset all my existing items to default.
    If you need to add an item, please just add the item.
     
  3. Hi, can someone explain how I can make it more profitable when barrel/crate farming? Basically, how I can increase the rates of good items spawning in them? BetterLoot did this automatically but stopped spawning useful normal vanilla items. Please help! Thanks.
     

  4. hi samsonite^^ i have this issues about what you are here talking about
    i added BluePrintsRevived plugin and i would like to have both bp's and components so i wonder if its possible to ask for your help
    im not into this world and i badly want this to happend cause there is no such server actually and it can be much harder much better so we do think
    so im asking for a little of your brain time ^^ could you take the loottable json file from blueprintrevived plugin and make it so we can find all the shit available then i will manage to put the new shit they will add in the futur
    hope the bottle in the ocean reach to you
    [email protected] for anyone who see this and can help me
    cheers
    [DOUBLEPOST=1498848238][/DOUBLEPOST]i mean all components that have been not placed by the bp plugin owner
    Blueprint-lootTable.json
     
  5. [LootConfig] No container data found: assets/bundled/prefabs/radtown/crate_elite.prefab

    Fix below.
    This Does NOT fix it, it just stops the crate being empty and disappearing.
    Its giving out Tier 3 loot


    "assets/bundled/prefabs/radtown/crate_elite.prefab": {
    "DestroyOnEmpty": true,
    "LootDefinition": "DM.LootSpawn.T3",
    "MaxDefinitionsToSpawn": 1,
    "MinSecondsBetweenRefresh": 3600.0,
    "MaxSecondsBetweenRefresh": 7200.0,
    "InitialLootSpawn": true,
    "SpawnType": "GENERIC",
    "InventorySlots": 6
    },
     
    Last edited by a moderator: Jul 7, 2017
  6. So now we have 2 containers that need to be added every protocol update, and we need to re do our whole customized settings for every item every update?
    It takes me a while to parse the extensive config and re do everything.
    Why wont the plugin dev just add need changes and leave our settings alone? I see with other plugins that it is possible.
     
  7. I was told by a plugin developer named Fujikura that this plugin will allow a plugin called "BetterLoot" to open the capability to separate every loot box into different types of items. Is that true? If so, how does this plugin work exactly.
     
  8. how would i lower the amount of scrap its everywhere barrels boxes it dominates all loot
     
    Last edited by a moderator: Jul 27, 2017
  9. Gameservers doesn't seem to allow .dll files to be transfered. Response: 550 Not enough privileges.
    Any other way to fix this issue? I've already contacted an hour ahead and they haven't responded yet. Any help?
     
  10. Wulf

    Wulf Community Admin

    "The `.' operator cannot be applied to operand of type `Newtonsoft.Json.JsonSerializerSettings'"

    For those having this issue, it is due to an update to Newtonsoft.Json to version 8.x in Rust that is conflicting with what some plugins are expecting. Oxide builds with Newtonsoft.Json 6.x for compatibility with other games, but we're looking into a way to resolve that this time and going forward to avoid other potential compatibility issues.

    A temporary "fix" is provided in this thread that involves downgrading the version of Newtonsoft.Json that comes with Rust to the one that Oxide compiles with. Keep in mind that this may cause unforeseen issues with Rust, so do so at your own risk.
    Install location: RustDedicated_Data/Managed/Newtonsoft.Json.dll

    If you are using a host that does not allow uploading or modifying DLL files under the Managed folder, you'd need to contain them or wait for a new build of Oxide that remedies this.

    Please refrain from posting the error more, we're aware of it. ;)
     

    Attached Files:

  11. thank you and sorry for all the messages.
     
  12. how would i add in metalspring and redjuce scrap metal
     
  13. Im having an issue where the lootconfig.json file will not autopopulate in my config folder after installing plug in to the "plug ins" folder on the server... do you know how to fix?
     
  14. Uhh, for some reason the Elite Crates at the launch site are only yielding 25 scrap and nothing else. Any tips?
     
  15. Quick and probably dumb question, but simple, under category we have Amount and Max Amount - is "Amount" supposed to be assumed to be minimum amount? and then set the max amount separately?

    Or if we life max amount empty, will it just always spawn the denomination that is in the "Amount" box?
    [DOUBLEPOST=1501523028][/DOUBLEPOST]
    Please ignore this dumb ass question.
     
  16. can someone please teach me to use this haha
     
  17. i use notepad++ but im talking about configuring the loot talbe to my liking in general.. im so confused
     
  18. I understand, ill help out if mine works.
    [DOUBLEPOST=1501537184][/DOUBLEPOST]
    Also, notepad++ was still piling the information still so confusingly, try that link i posted, it cleared everything up a lot better for myself.
     
  19. Im having an issue, so my loottables are spawning appropriately and I am happy with that. HOWEVER, when i set Inventory slots to 2 on the lootcontainers sometimes it spawns 0 items in the barrels and crates, but if i UP it to 3 it always spawns either 2 or 3 items. Does this make sense?

    Is there a way to set a minimum amount of items to be spawned?
     

    Attached Files: