1. try to reload it or delete your plugin file its call cs and place the new one that wulf place
     
  2. Great Plugin. Problem though, after the recent update for some reason i had to delete plugin and put back in. Now its not creating a .json file so i can edit. Any help would be great.
     
  3. Wulf

    Wulf Community Admin

    Check your oxide/logs for errors and try the version I posted on the previous page.
     
  4. I posted a fix a couple pages ago for the NREs you would get when using both commands. See Stack Size Controller | Page 39 | Oxide for attachment.
    Code:
    //Lines 81-95
                if (items.Count == 0)
                {
                    SendReply(player, "Syntax Error: That is an incorrect item name. Please use a valid shortname.");
                    return;
                }
                else
                {
                    if (items[0].condition.enabled && items[0].condition.max > 0) { return; }                Config[items[0].displayName.english] = Convert.ToInt32(stackAmount);
                    items[0].stackable = Convert.ToInt32(stackAmount);                SaveConfig();                SendReply(player, "Updated Stack Size for " + items[0].displayName.english + " (" + items[0].shortname + ") to " + stackAmount + ".");
                }
    Instead of "items[0].shortname == args[0]," it's already finding a count from the list.
    Code:
    //Line 114ish
                int stackAmount = 0;            if (int.TryParse(args[0], out stackAmount) == false)
                {
                    SendReply(player, "Syntax Error: Stack Amount is not a number. Syntax Example: /stackall 65000");                return;
                }
    Check for an actual number as argument.
    Code:
    //Lines 154-168
                if (items.Count == 0)
                {
                    Puts("Syntax Error: That is an incorrect item name. Please use a valid shortname.");
                    return;
                }
                else
                {
                    if (items[0].condition.enabled && items[0].condition.max > 0) { return; }
                  
                    Config[items[0].displayName.english] = Convert.ToInt32(stackAmount);
                  
                    items[0].stackable = Convert.ToInt32(stackAmount);                SaveConfig();                Puts("Updated Stack Size for " + items[0].displayName.english + " (" + items[0].shortname + ") to " + stackAmount + ".");
                }
    Basically same thing as first fix but for console command.
    Code:
    //Line 182ish
                int stacksize;
              
                if (!(int.TryParse(arg.Args[0].ToString(), out stacksize)))
                {
                    Puts("Syntax Error: That's not a number");
                    return;
                }
    Basically same thing as second fix but for console command, with some slight inconsistencies.
     
  5. Wulf

    Wulf Community Admin

    Would you prefer to maintain it? I don't think the original author is. Might have to create a new submission though as the current is bugging out.
     
  6. It did create a new .json file, Thank you. Now getting it to actually stack is another lol Server reset needed to take effect?
     
  7. Sure, I'll maintain it.
     
  8. Wulf

    Wulf Community Admin

    Go ahead and submit a new resource and I'll redirect to it.
     
  9. Submitted, but forgot to remove resource id. Will it keep the same id or change?
     
  10. Wulf

    Wulf Community Admin

    I'm sure there are plenty of changes to be made to it yet. ;)

    Stack Size Controller for Rust | Oxide