Stacksize

Moved

Total Downloads: 4,775 - First Release: Jan 24, 2016 - Last Update: Jul 27, 2017

5/5, 6 likes
  1. {
    [Info("Stacksize", "Noviets", "1.1.1")]
    [Description("Stacksize")]

    class Stacksize : HurtworldPlugin
    {
    void OnServerInitialized() => Loaded();
    void Loaded()
    {
    LoadDefaultConfig();

    GlobalItemManager GIM = Singleton<GlobalItemManager>.Instance;

    GIM.GetItem(48).GetType().BaseType.GetProperty("MaxStackSize").SetValue(GIM.GetItem(48) as IItem, (int)Config["Arrows"], null);

    }
    protected override void LoadDefaultConfig()
    {
    if(Config["Arrows"] == null) Config.Set("Arrows", 50);

    SaveConfig();
    }
    }





    why Arrows only one? My English is bad
     
  2. Download the plugin again mate
     
  3. Can you please help me its my first time with plugins but if i put everything in it doens't work. Im hosting a Server on Nitrado. . net so can you pm or add me i hope you can help me.
     
  4. Adding Rough Diamond and Cut Diamond to the list?
     
  5. I think Noviets Died in a Plugin somewhere, because no reply on anything
     
  6. I'm still alive! I've just been busy :p

    Will be doing a few updates today. Hold tight
     
  7. 15:00 [Error] Stacksize.cs(123,77): error CS1061: Type `System.Reflection.PropertyInfo' does not contain a definition for `SetVaule' and no extension method `SetVaule' of type `System.Reflection.PropertyInfo' could be found. Are you missing an assembly reference?

    any solution? i just put the new items in like Rough Diamond and Cut Diamond .

    EDIT : Got it ;) i just had a space inside the new code :D
    i Uploaded it for you if you want to use it.
    USE AT OWN RISK!
     

    Attached Files:

    Last edited by a moderator: Jul 25, 2016
  8. It seems when i change the amount that car panels can stack it changes them in the Vehicle to the value i make them stack-able to.
    [​IMG]
     

    Attached Files:

  9. Noviets updated Stacksize with a new update entry:

    1.1.2

     
  10. Why do you have arrows set to 1? lol it caused a lot of confusion for me at first.
     
  11. i have a error while compiling what is the problem????
     
  12. Post your error. How are we to know how to fix the problem if we do not know what it is?
     
  13. @Noviets and @Wulf I hope you guys don't have any problems with that I've updated the Stacksize plugin Everything is just the same only what I have done is updated the Kanga objects not more feel free to take a look on it if you want Oh ps and its working aswell
     

    Attached Files:

  14. Noviets updated Stacksize with a new update entry:

    1.1.3

     
  15. Greetings, I am unable to set it up so designs or paints will stack. Im not getting any errors or such. Any help would be greatly appreciated.
     
  16. @Noviets

    Could you please update the Stacksize plugin because alot of stuff doesn't stacksize anymore
     
  17. @Wulf
    Could you mabye update the stacksize plugin.
    Because alot of staff isn't stacking anymore.
     
  18. Wulf

    Wulf Community Admin

    I'm not sure where @Noviets is, but it's on the list.
     
  19. Try uninstalling and reinstalling the plugin, as I have had no issues with it as of yet.
     
  20. That is the funnyst part I that that yesterday 6 times and still it isn't working