Black Market 2

by djmango

Sell and buy items/fluids/energy on the black market using trading chests/tanks/accumulators, choosing the frequency of exchanges and related fees. You can now sell your overproduction and buy things that you don't want to craft by yourself. You can also use these trading units as a paying shipment system.

10 days ago
0.17 - 2.1
26.2K

b Crash to Desktop

2 years ago
(updated 2 years ago)

Recent update crashes the game with the following error:
Error while running event BlackMarket2:on_gui_click (ID 1)
Invalid Quality ID: expected LuaQualityPrototype or string
stack traceback:
[C]: in function 'insert'
BlackMarket2/control.lua:1548:in function 'buy_trader'
BlackMarket2/control.lua:2704:in function<BlackMarket2/control.lua:2484>

Q:"How did it crash?"
A: Attempting to buy seemingly anything at any value.

2 years ago

Could you open an issue on github?

13 days ago

Fixed. The buy path handed the quality to the insert call as a bare number, which the game rejects with "Invalid Quality ID". It now looks the quality up by level first.

How to test: on 2.2.21 buy an item with a non-normal quality, then check the chest fills and the credits fall.

New response