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.

18 days ago
0.17 - 2.0
20.9K

b Crashedwhen adding a new order

2 years ago

Tried to create a new order on the MK1 buy chest. Mod immediately crashed.

Following errors came up.

1472.325 Error MainLoop.cpp:1284: Exception at tick 91811: The mod Black Market 2 (2.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event BlackMarket2::on_gui_click (ID 1)
BlackMarket2/control.lua:2691: attempt to index field 'coal' (a nil value)
stack traceback:
BlackMarket2/control.lua:2691: in function <BlackMarket2/control.lua:2408>

2 years ago

I am getting the exact same error. Also when I try to edit orders i notice that newly researched items are not present. And if I edit the order and press Confirm I get the same crash and error.

Love the mod tho, anyone able to help? I'm about as good at coding and understanding it as the famous fish trying to climb a tree.

2 years ago

Maybe it's best I do a fork of the project and try to fix it myself.

I'll do a follow-up here once I locate the problem.

2 years ago

Maybe it's best I do a fork of the project and try to fix it myself.

I'll do a follow-up here once I locate the problem.

I’m happy to merge into master once resolved

2 years ago

Great to see you are still active on the thread. Would you mind to contact me on Guilded, please? Would make a lot of things a lot easier for me.

https://www.guilded.gg/profile/dODaXgym

2 years ago

I got a lead on why that new order error happens. I was playing with the option of only buying researched items and I found out that coal is out of the list. Seeing as that is the default item that is added on new orders and it's not in the list of possible items, that might be the cause of the bug

2 years ago

sounds possible. if you could, could i see a list of mods also that was used? Will help to determine if a mod conflict was also at play or not.

2 years ago

I play with quite a lot of mods, is there an easy way to export the list? By the way I fixed it for myself by swapping the coal that is inserted when we press 'New order' for the 'ucoin' item in the control.lua code. It was exactly because coal was out of the item list for me

2 years ago

ok, will try that

thanks

New response