LootConfig

Allows you to adjust the server's loot list

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

5/5, 21 likes
  1. Version 1.0.30
    Code:
    [Loot Config] Config save failed: An element with the same key already exists in the dictionary.
      at System.Collections.Generic.Dictionary`2[System.String,Workbench].Add (System.String key, .Workbench value) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToDictionary[Workbench,String,Workbench] (IEnumerable`1 source, System.Func`2 keySelector, System.Func`2 elementSelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToDictionary[Workbench,String] (IEnumerable`1 source, System.Func`2 keySelector, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToDictionary[Workbench,String] (IEnumerable`1 source, System.Func`2 keySelector) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.LootConfig.CreateDefaultConfig () [0x00000] in <filename unknown>:0 
     
  2. Would like to use this plugin but it is still broken. ):
     
  3. i managed to fix the error.

    on line 220, put this code:
    Code:
                    Dictionary<string, Workbench> wbs = new Dictionary<string, Workbench>();
                    foreach(var wb in workbenches.Where(l => !l.gameObject.activeInHierarchy).Distinct().Distinct()) {
                        if (!wbs.ContainsKey(wb.name))
                            wbs.Add(wb.name, wb);
                    }
    
    and modify the new line 236 from:
    Code:
                        Workbenches = workbenches.Where(l => !l.gameObject.activeInHierarchy).Distinct().Distinct().ToDictionary(l => l.name),
    
    to:
    Code:
                        Workbenches = wbs,
    
     
  4. Wulf

    Wulf Community Admin

    Distinct() in there twice would be redundant. ;) Not sure why it has that in there now.
     
  5. i believe it is. :)
    i did keep that just to change only the minimum code needed, but there is a lot of duplicated distincts that should be removed.
     
  6. hi is this still cause
    RPC error in RPC_BeginExperiment & does the above really fix it? i dont wanna use other loot T_T
     
  7. Guys, PLEASE HELP, how to increase chance of some loot in military crates, examle guns? 3 days i'm in search.
     
  8. Anyone know fix for RPC error for OnProjectileAttack, with Scientists, with this plugin? It's the main problem with it I think
     
  9. oxide.reload LootConfig
    Unloaded plugin Loot Config v1.0.30 by Nogrod
    [Loot Config] Incorrect config version(0/0[0, 0])
    [Loot Config] Config save failed: An item with the same key has already been added. Key: workbench1.static
    at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <e1a80661d61443feb3dbdaac88eeb776>:0
    at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0
    at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x00085] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
    at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector) [0x00000] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
    at Oxide.Plugins.LootConfig.CreateDefaultConfig () [0x00528] in <7ae4cc8bd3af400ca7797e7febbb350a>:0
    Calling 'OnServerInitialized' on 'LootConfig v1.0.30' took 851ms
    Loaded plugin Loot Config v1.0.30 by Nogrod


    please help config files empty
    [DOUBLEPOST=1530669250][/DOUBLEPOST]
    i did the changes that are below but still the same error
     
  10. Plugin wont work for me. I have same error as the guy above. Anyone know of any other plugins that lets you change barrels etc to say 10x ?
     
  11. a friend of mine is working on it he said that the plugin missing a lot of news
    betterloot can multiplie the amounts of items but rewrite the loot table and make a ugly one with hemp seed and fish in barrels so u need to change it all at ur need
    good luck with that
     
  12. ok ive pass all the issues i had but now when i set scrapamount to zero everywhere it seems like you can't block scrap from barrel, they are generated when you destroy one. maybe someone has an idea how to block scraps from spawning in barrels at least ?
     
  13. Magic Loot is good for this. By default it runs off the vanilla loot tables and then you can choose how to make the loot "better" as in 10x what is in there or add more items in general.
     
  14. Hello. I already found a plugin to satisfy my needs untill this plugin gets an update :)
     
  15. [DOUBLEPOST=1531936969][/DOUBLEPOST]
    can you show what to replace as my numbers dont quite match and i dont want to mess it up thanks
     
  16. my last post fixed an error, but there is another issue after that, and i did not find how to fix that yet.
    the way it is, the plugin make people get disconnected after kill scientists.
    and i'm working a lot this days. i can't look at this right now.
     
  17. Would like to use this plugin, but i also keep getting this error:
    Code:
    >oxide.reload LootConfig
    [Loot Config] Incorrect config version(0/0[0, 0])
    [Loot Config] Config save failed: An item with the same key has already been added. Key: workbench1.static
      at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <e1a80661d61443feb3dbdaac88eeb776>:0
      at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0
      at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x00085] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
      at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector) [0x00000] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
      at Oxide.Plugins.LootConfig.CreateDefaultConfig () [0x00528] in <20b51bdba16942898af87ff5184efc1e>:0
    The LootConfig.json is empty all the time, just the {} is there...
    A fix to this would be very nice!
     
    Last edited by a moderator: Jul 27, 2018
  18. How'd ya increase the scrap rates by using this?
     

  19. What do the weights mean please?
     
  20. Hey i'm having problems with the config i put i the config folder that you said would be a good start and it puts this in console

    Unloaded plugin Loot Config v1.0.30 by Nogrod
    [Loot Config] Incorrect config version(1351/5[4096, 1229233833])
    [Loot Config] Config save failed: An item with the same key has already been added. Key: workbench1.static
    at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <e1a80661d61443feb3dbdaac88eeb776>:0
    at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <e1a80661d61443feb3dbdaac88eeb776>:0
    at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) [0x00085] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
    at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector) [0x00000] in <839a3cb835c04d14aeb58d83bb7bc4bd>:0
    at Oxide.Plugins.LootConfig.CreateDefaultConfig () [0x00528] in <4073bbd671ff4303af26bc89b2fdb5c1>:0
    Calling 'OnServerInitialized' on 'LootConfig v1.0.30' took 2091ms
    Loaded plugin Loot Config v1.0.30 by Nogrod

    im not the greatest with coding and stuff so i dont really understand it all