More than amount bought being given
When you buy a little more than a full stack, instead of having the quantity bought you get two full stacks for the price of what you bought. I will give a more telling example.
If a machine contains 10 wood stacks in my case the wood stacks are set at 50,000.
So the machine holds 10x50000 = 500000 wood.
I program the machine to sell 1000 logs at 1 RP (RP = item researchplan)
If I buy 50 stacks of 1000, I get 50,000 wood and pay 50 rp
But if I buy 51 stacks of 1000 I get 100 instead of 51 and I only cost 51 rp!
And in the machine 100,000 wood is missing
Which is a nasty glitch to me.
There is no problem if I exchange it for a normal in-game item such as scraps for example. This shows that it is when the plugin is requested that there is a problem.

I suspect the method of finding stacks in the machine's vault ignores the remaining value to be deducted to make the trade and instead takes a full stack.

Hoping to have been clear enough, if necessary I can make a video of the bug.

cordially

DanBosS

I can confirm this.

assuming this:
stacksize of 1000
having 3 full stacks of wood in the VM's inventory.

making a sell order of 1 wood for 1 rp

someone buys as low as 1001 wood, they receive 2k (and it's removed from the VM's inventory).

As said above, this only happens when trading items for RP. Any clue?

@Whispers88 Any clue ?
Thx.

Corrected with the last update ?
Thanks