BetterLoot

A complete re-implementation of the drop system

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

4.95699/5, 93 likes
  1. FuJiCuRa updated BetterLoot with a new update entry:

    2.15.0

     
  2. Failed to call hook 'OnServerInitialized' on plugin 'BetterLoot v2.15.0' (JsonRe
    aderException: After parsing a value an unexpected character was encountered: ".
    Path 'ItemList['ammo.rocket.fire']', line 17, position 4.)
    at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unk
    nown>:0
    at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictiona
    ry (IDictionary dictionary, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.S
    erialization.JsonDictionaryContract contract, Newtonsoft.Json.Serialization.Json
    Property containerProperty, System.String id) [0x00000] in <filename unknown>:0

    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Ne
    wtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Seriali
    zation.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member,
    Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonso
    ft.Json.Serialization.JsonProperty containerMember, System.Object existingValue)
    [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInter
    nal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.
    Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty
    member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, N
    ewtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existin
    gValue) [0x00000] in <filename unknown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue
    (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConve
    rter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract cont
    ainerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, New
    tonsoft.Json.JsonReader reader, System.Object target) [0x00000] in <filename unk
    nown>:0
    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (
    System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Seri
    alization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonPropert
    y member, System.String id) [0x00000] in <filename unknown>:0
     
  3. Cai

    Cai

    please update with every kind of crate. or tell us which each crate is on your plugin
     
  4. How do I have it edit only the supply drop crate and leave all the rest as normal and totally untouched?
     
  5. endlich :p

    answer is in your error post
    JsonReaderException: After parsing a value an unexpected character was encountered: ".
    Path 'ItemList['ammo.rocket.fire']', line 17, position 4.)

    navigate to oxide\data\BetterLoot\LootTable.json

    u can add and remove wich crate loot will overwrite from BetterLoot plugin see FAQ

    Code:
    Changing included barrels/crates:
    By default, the setting for included barrels is this:
    Code (Text):
    "barrelTypes": "loot-barrel|loot_barrel",
    This means, it includes:
    Loot-Barrel-1
    Loot-Barrel-2
    loot_barrel_1
    loot_barrel_2
    loot_trashObey the the required spacer "|" between all strings.
    INFO: Do NOT set the spacer at START and NOT at the END of the line, only between the entrys.Example for only Loot-Barrel-1 and loot_barrel_2:
    Code (Text):
    "barrelTypes": "loot-barrel-1|loot_barrel_2",
    Example for only loot_barrel_1, loot_barrel_2 and loot_trash:
    Code (Text):
    "barrelTypes": "loot_barrel|loot_trash",
    The same function is used for crates.
    For crates exist the following ones:
    crate_normal
    crate_normal_2
    crate_normal_2_food
    crate_normal_2_medical
    crate_tools
    trash-pile-1
    Like for barrels, the setting in the config are case-sensitive.
    INFO: For setting crates, plz obey NOT to use only "crate" as the container, as of the reason the spawn from helicopter is called "heli_crate". 
    or google for " alpahloot rust plugin " ;)

    set "enableBarrels": true, to false
    set "enableCrates": true, to false

    set "includeSupplyDrop": false, to true
    use "useCustomTableSupply": true

    after first run it can happend that all your crates/barrels overwrite with this plugins loottable, but after loot the crates/barrels they spawn vanilla back, if u set to false and relaod this plugin.
     
  6. Hi Fuji

    RE:

    or
    "HeliCrate": {
    "includeHeliCrate": true,
    "crateTypes": "crate_elite",

    Nope..

    is there a way to create more custom loot tables, for instance if I want to create a food table for only the food crates? also for if I want to control the Elite green boxs (are these controllable?)
     
  7. Technically yes...(with lots of effort)
    ...but that way, Nope.
     
  8. Hmmm...... my question seems to be gone?
     
  9. with another plugin (FancyDrop)
     
  10. how can i edit item amount?
     
  11. Get notepad++, open BetterLoot.json in the config folder and check:

    "randomAmountBarrels": false, (if this is set to false, the amounts in your Barrels loot table will always be found at the number you set, if true its a random number up to the number you set)

    Then go to data > BetterLoot > LootTable and set the amounts you would like the players to receive.
    [DOUBLEPOST=1521729506][/DOUBLEPOST]
    Thanks - Does this mean it would require the cs (c#) file to be updated/recoded to add new loot tables for certain crate types?
     
  12. cooorrect :p
     
  13. Damn ok thanks for your help, i'm not going to attempt that anytime soon I need to improve my C# knowledge first lol :(
     
  14. thx a lot,i have +1 question :p
    can i edit possibility?
     
  15. Well you can add rarity, so you can add the items in the RarityOverride section, 4=really rare, 3=rare, 2=uncommon, 1=common i believe.
     
  16. thanks thanks thanks a lot!
     
  17. "crate_normal
    crate_normal_2
    crate_normal_2_food
    crate_normal_2_medical
    crate_tools
    trash-pile-1"


    Anyone that can explain to me which crates are the following: Military, Tools (Assuming "Crate_Tools") and Primitive.
    Having a hard time figuring out the actual names for the crates, the full list would help me out a bunch.
     
  18. Could you help me out here? I'm willing to put the effort in, I just need to understand which crates link to the crates in game.

    //Start Military json add
    minItemsPerMil = Convert.ToInt32(GetConfig("Military", "minItemsPerMil", 3));
    maxItemsPerMil = Convert.ToInt32(GetConfig("Military", "maxItemsPerMil", 6));
    refreshMil = Convert.ToBoolean(GetConfig("Military", "refreshMil", true));
    milTypes = Convert.ToString(GetConfig("Military", "milTypes", "crate_small")); //Check
    enableMil = Convert.ToBoolean(GetConfig("Military", "enableMil", true));
    randomAmountMil = Convert.ToBoolean(GetConfig("Military", "randomAmountMil", true));
    //End Military json add

    "crate_small" < this is the only thing I cannot figure out for the life of me
     
  19. Nevermind... figured it out...