1. Can yu paste your config file?
     
  2. I'm sorry, it's my fault, i have already figured it out, this error is written to the log oxide when no config file, if config already exist, everything is ok .. :)
     
  3. List of items? I am struggling to write the correct name of an item.
     
  4. Hey this is working just fine on my server, but I am just wondering, what are the codes to fix the ammo stacks? Can someone send me an example? Would be much appreciated.
     
  5. My settings works perfectly:
    Code:
     localConfig.items = JsonConvert.DeserializeObject<List<itemMeta>>(
                    "[" +
                    "{'name': 'bone_fragments', 'stackSize': 10000}," +
                    "{'name': 'charcoal', 'stackSize': 20000}," +
                    "{'name': 'cloth', 'stackSize': 10000}," +
                    "{'name': 'fat_animal', 'stackSize': 10000}," +
                    "{'name': 'gunpowder', 'stackSize': 5000}," +
                    "{'name': 'lowgradefuel', 'stackSize': 5000}," +
                    "{'name': 'metal_fragments', 'stackSize': 10000}," +
                    "{'name': 'metal_ore', 'stackSize': 20000}," +
                    "{'name': 'stones', 'stackSize': 50000}," +
                    "{'name': 'sulfur', 'stackSize': 20000}," +
                    "{'name': 'sulfur_ore', 'stackSize': 20000}," +
                    "{'name': 'wood', 'stackSize': 50000}," +
                    "{'name': 'largemedkit', 'stackSize': 50}," +
                    "{'name': 'syringe_medical', 'stackSize': 50}," +
                    "{'name': 'granolabar', 'stackSize': 20}," +
                    "{'name': 'apple', 'stackSize': 20}," +
                    "{'name': 'antiradpills', 'stackSize': 20}," +
                    "{'name': 'chocholate', 'stackSize': 20}," +
                    "{'name': 'wolfmeat_cooked', 'stackSize': 300}," +
                    "{'name': 'wolfmeat_raw', 'stackSize': 300}," +
                    "{'name': 'ammo_pistol', 'stackSize': 500}," +
                    "{'name': 'ammo_rifle', 'stackSize': 500}," +
                    "{'name': 'ammo_shotgun', 'stackSize': 500}," +
                    "{'name': 'arrow_wooden', 'stackSize': 500}" +
                    "]"
                );
     
  6. Thank you!
     
  7. You don't have to edit the plugin to update that list.

    open up the config directory, instead of the plugins directory, and find the stack sizes json file, and edit it there.

    http://radmin.elasticbeanstalk.com/item/list/approved/consumable/
    All the names shown on this page are the names i use. If you click on an item, the attribute "Short Name" is the name you want to use.
     
  8. Is there way to do this as lua/python plugin? Since i cannot use CSharp plugins under linux.
     
  9. Wulf

    Wulf Community Admin

    You'd need to request an alternative plugin under Plugin Requests.
     
  10. @Wulf thank you for tip, but i already figured out how to do this in lua myself. Without config but i don't really need it.

    Code:
    function PLUGIN:OnServerInitialized()
       self:SetStackSizes();
    endfunction PLUGIN:SetStackSizes()
       local tbl = {
         ["bone_fragments"] = 2000,
         ["charcoal"] = 1000,
         ["cloth"] = 2000,
         ["fat_animal"] = 2000,
         ["gunpowder"] = 2000,
         ["lowgradefuel"] = 2000,
         ["metal_fragments"] = 2000,
         ["metal_refined"] = 2000,
         ["paper"] = 2000,
         ["stones"] = 3000,
         ["sulfur"] = 2000,
         ["sulfur_ore"] = 3000,
         ["metal_ore"] = 3000,
         ["wood"] = 3000,
       }   for k,v in pairs(tbl) do
         local item = global.ItemManager.CreateByName(k,1);
         item.info.stackable = v;
       end
    end
    
    Now i only need to do at least loop from table but this isn't problem, thank you anyway. (already done)

    ps i can code myself, but one problem is lack of documentation. for example only by looking other plugins i found that there exists "global" variable with all rust classes. Same like "entity:GetComponent("BaseEntity")" etc. Why not add such things to http://docs.oxidemod.org/#getting-started ? Because there is really hard to find something what you want without proper documentation.

    Sorry for offtopic.
     
  11. I'm getting the same error on a new server:
    Code:
    [2/27/2015 8:30:22 PM] [Oxide] 8:30 PM [Info] Loaded plugin Stack Sizes v1.1.3 by Looking For Gamers <[email protected]>
    [2/27/2015 8:30:22 PM] [Oxide] 8:30 PM [Debug]   at System.IO.Path.InsecureGetFullPath (System.String path) [0x00000] in <filename unknown>:0
      at System.IO.Path.GetFullPath (System.String path) [0x00000] in <filename unknown>:0
      at Oxide.Core.Configuration.DynamicConfigFile.CheckPath (System.String filename) [0x00000] in <filename unknown>:0
      at Oxide.Core.Configuration.DynamicConfigFile.Save (System.String filename) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.StackSizes.CreateDefaultConfig () [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    [2/27/2015 8:30:22 PM] [Oxide] 8:30 PM [Info] Stack Sizes: StackSizes by Looking For Gamers, has been started
     
  12. Plugin error :
    Code:
    > oxide.reload StackSizes
    [Oxide] 11:38 AM [Info] StackSizes plugin failed to compile! Exit code: -1073741515
    [Oxide] 11:38 AM [Info]
    [Oxide] 11:38 AM [Info] Plugin failed to compile: StackSizes (leaving previous version loaded)
    Grtz, No4h
     
  13. hi
    the plugin does not work with the new version of oxide.oxide refuses .cs
     
  14. plugin loads like nothing is the matter, but i cant actually stack higher then in game max
     
  15. Wulf

    Wulf Community Admin

    Check your logs for errors. It works fine, so you're either missing a file or dependency.
    [DOUBLEPOST=1425244178][/DOUBLEPOST]
    Update to the latest Oxide version. Most likely you were on an unsupported snapshot.
     
  16. Cant get it to work properly. i unloaded the plugin (oxide.unload StackSizes) removed the StackSizes.json, changed the StackSizes.CS File to stack cloth to 100000.

    it Works for Wood and stones, but metal fragments and cloth have their max at 10k.

    The error i get every oxide.reload doing the above is:
    Code:
    [Oxide] 11:22 PM [Info] Loaded plugin Stack Sizes v1.1.3 by Looking For Gamers <
    [email protected]>
    [Oxide] 11:22 PM [Error] JsonReaderException while calling LoadDefaultConfig: (J
    sonReaderException: After parsing a value an unexpected character was encountere
    d: {. Path '[13]', line 1, position 591.)
    [Oxide] 11:22 PM [Debug]   at Newtonsoft.Json.JsonTextReader.ParsePostValue () [
    0x00000] in <filename unknown>:0
      at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unkno
    wn>:0 8 ents, 131 slprs                                       0b/s in, 0b/s out
      at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (New
    tonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contr
    act, Boolean hasConverter) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (IL
    ist list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonA
    rrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerPrope
    [Oxide] 11:22 PM [Info] Stack Sizes: StackSizes by Looking For Gamers, has been
    started
     
    Last edited by a moderator: Mar 1, 2015
  17. Wulf

    Wulf Community Admin

    Don't modify the plugin itself, modify the .json config file. You corrupted it somehow by modifying it.
     
  18. Thanks for your reply, indeed i did after running over it, had a double entry for cloth.

    I still get the error, but everything works as intended, so i'm not going to investigate it further.
     
  19. This plugin require update!
    best regards :)
     
  20. [Oxide] 1:33 PM [Info] stacksizes plugin was compiled successfully in 914ms
    [Oxide] 1:33 PM [Info] Unable to find main plugin class: Stacksizes

    And it just doesnt works.... Does anybody have an idea?

    Thx