BetterLoot

Moved

Total Downloads: 42,624 - First Release: Feb 26, 2015 - Last Update: Mar 20, 2018

4.95699/5, 93 likes
  1. Hey guys,
    Can we apply rarity index to any item?

    I tried to make the hazmat suit rare and within an hour everyone had 5 of them.

    All I did was add the following and reload

    Code:
      "RarityIndex": {
        "ItemOverrides": {      "autoturret": 3,
          "box.wooden": 0,
          "crude.oil": 2,
          "hq.metal.ore": 0,
          "lmg.m249": 3,
          "metal.fragments": 1,
          "metal.refined": 3,
          "mining.quarry": 2,
          "rifle.lr300": 2,
          "spikes.floor": 1,
          "target.reactive": 1,
          "targeting.computer": 3,
          "trap.bear": 1,
          "trap.landmine": 2,
          "water.catcher.large": 1,
          "water.catcher.small": 1,
          "cctv.camera": 3,
          "hazmatsuit": 3
        }
      },
     
  2. Code:
    (20:28:27) | [Oxide] 20:28 [Error] Error while compiling BetterLoot.cs(1114,26): error CS0246: The type or namespace name `Rarity' could not be found. Are you missing an assembly reference?
     
  3. Code:
    22:41:43) | [Oxide] 22:41 [Warning] Calling 'OnServerInitialized' on 'BetterLoot v2.10.0' took 267ms
     
  4. Yes please?
     
  5. what is dis ?
     
  6. Yes please?
    A time warning when a action did run more then 200ms
     
  7. Barrels are spawning just one item , i already use the fix posted here but keep getting this error
    Failed to call hook 'OnServerInitialized' on plugin 'BetterLoot v2.10.0' (NullReferenceException: Object reference not set to an instance of an object)

    (00:30:39) | [Oxide] 06:30 [Debug] at Oxide.Plugins.BetterLoot.UpdateInternals (Boolean doLog) [0x00000] in <filename unknown>:0

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

    at Oxide.Plugins.BetterLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    (00:31:07) | [Oxide] 06:31 [Info] [Better Chat] [Player] MortiFy: Awwww :((((
     
  8. If this happens on an already modifed configuration, you should backup your changed files and then run again the plugin with a clean config and clean data files. If thatr works, you need to identify the part which causes that issue.
     
  9. Yo Guys!!

    Is there anyway to just increase the drop rate on components and if its possible can anyone tell me how to raise it a little?
     
  10. Fujikura updated BetterLoot with a new update entry:

    2.11.0

     
  11. Fujikura updated BetterLoot with a new update entry:

    2.11.1

     
  12. After the last Update from the Plugin:

    Code:
    [Oxide] 10:43 [Error] Failed to run a 0.10 timer in 'BetterLoot v2.11.1' (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'System.Collections.Generic.Dictionary`2[System.String,System.String]' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
    To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
    Path 'AllItemsAvailable', line 3, position 24.)
    [Oxide] 10:43 [Debug]   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [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.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0
    [Oxide] 10:44 [Warning] Calling 'OnTick' on 'BetterLoot v2.11.1' took average 2048ms
    
     
  13. Can anyone share a good config for x5 Server pls?
     
  14. (14:50:14) | [Oxide] 14:50 [Error] Failed to run a 0.10 timer in 'BetterLoot v2.11.1' (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'System.Collections.Generic.Dictionary`2[System.String,System.String]' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.

    To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.

    Path 'AllItemsAvailable', line 3, position 24.)

    (14:50:14) | [Oxide] 14:50 [Debug] at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00000] in <filename unknown>:0

    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [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.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <filename unknown>:0

    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00000] in <filename unknown>:0
     
  15. Working fine for me, although, no more item rarity overide? Also Hazmat aint in the loot table by default 0_o

    EDIT: You guys with errors probably didn't clear your data and config files before installing the latest version
     
  16. Seems you did not read the patch note...
    [DOUBLEPOST=1479578874][/DOUBLEPOST]
    Seems you did not read the patch note...
    [DOUBLEPOST=1479578949][/DOUBLEPOST]
    Coming later...Meanwhile you can use ItemConfig to change this.
     
  17. There is no 'itemconfig' in either the config file or data folder/files.
     
  18. How am I able to edit the supply drop table to only drop 1 stack of stackables?

    Eg - ATM I can get supply drops that drop 2+ stacks of sulfur for example anywhere between 1-750 and I edited the max stack to 50k...

    So instead of getting 1 stack of 503 sulfur and another of 602, just get 1 of 1105.
     
  19. I do not see anything in the patch note. Can you tell me what to do thank you