Vending machine not showing the max stack I have set it to be.Solved

So this puzzles me greatly. I'm attempting to edit the vending machine in outpost, specifically the resource exchange. What I'm finding is that I have set these to have a max stack of 300, a respawn time of 3 seconds and refil of 5. What it's actually giving though are stacks of 300, 600 and 2,000.

Attached are images of the settings that I'm using, and also what is showing. If anyone has any clue as to why this could be happening, I'd be very happy to hear as I think I've lost a patch of hair from scratching my head, and the rest is turning grey from the confusion. 

Thanks,
Christopher.

https://imgur.com/UHJFtgP

https://imgur.com/8fdYkiP

 

This happens because the vending machine has 2 listings for wood, and 2 listings for stone. The way vending machines work in vanilla is that there is a single container which determines the stock. When you sell the same item for multiple quantities, the amount stocked will be reflective of whichever item requires more stock.

In that image, the vending machine has 300000 wood, which allows selling 1000 wood 300 times, or to sell 500 wood 600 times, regardless of the currency used.

Some have asked for the plugin to circumvent this, by providing different pools of stock per listing. Doing so poses a significant technical challenge because the client plays an important role, and the client code cannot be modified. In particular, the amount that the player can type into the text box is determined by the client's awareness of the stock container. We can't selectively tell the client that each listing has different stock, so a user experience issue would happen where either the player cannot purchase the full stock in bulk, or they would appear to be able to purchase the full anount but would be blocked or limited.

NKXTQs24ExGTuL8.jpg WhiteThunder

This happens because the vending machine has 2 listings for wood, and 2 listings for stone. The way vending machines work in vanilla is that there is a single container which determines the stock. When you sell the same item for multiple quantities, the amount stocked will be reflective of whichever item requires more stock.

In that image, the vending machine has 300000 wood, which allows selling 1000 wood 300 times, or to sell 500 wood 600 times, regardless of the currency used.

Some have asked for the plugin to circumvent this, by providing different pools of stock per listing. Doing so poses a significant technical challenge because the client plays an important role, and the client code cannot be modified. In particular, the amount that the player can type into the text box is determined by the client's awareness of the stock container. We can't selectively tell the client that each listing has different stock, so a user experience issue would happen where either the player cannot purchase the full stock in bulk, or they would appear to be able to purchase the full anount but would be blocked or limited.

Ahhhh this makes sense. Thank you for getting back to me so quickly with this answer. I've managed to fix this from your advice, the only important ones for me was the wood -> stone and vice versa. 

Thank you again for saving my sanity with your time,
Christopher.

Locked automatically