[1.1.30] market price bug with repeated element

This subforum contains all the issues which we already resolved.
Honktown
Smart Inserter
Smart Inserter
Posts: 1041
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[1.1.30] market price bug with repeated element

Post by Honktown »

If a market offer is made and has two of the same items (perhaps more), the result is the second item amount is shown (and is the amount taken) but the "minimum" amount to purchase and quantity of purchases is based on the first item price. If the "minimum" is not met, the offer cannot be purchased, even when the gui is showing a different amount.
code to reproduce
result_with_50_ore.png
result_with_50_ore.png (89.37 KiB) Viewed 3071 times
The api pages don't say what is expected for an offer used in add_market_item, but if it is a list of ingredients, then there could be different expectations... 1) error on repeated items (as ingredients do in prototypes) or 2) collapse items into one quantity (if a fluid with temperature can be a market price, this would not work).
I have mods! I guess!
Link

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2898
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.30] market price bug with repeated element

Post by boskid »

Thanks for the report. It is a minor issue but i fixed it anyway for 1.1.32.

Post Reply

Return to “Resolved Problems and Bugs”