Quantum Resource Distribution deprecated

by eliont

Logistic buffer chest will send placed items to ship quantum storage unit if no logistic request set. If logistic request exist and can be fulfilled using stored items, items instead taken from storage and placed in chest inventory. It's make resourse management more like RTS for playing combat-oriented settings/mods. Compatible with multi-surface mods like SE. UPS-friendly.

Content
1 year, 3 months ago
1.1
186
Logistics Logistic network Circuit network Storage

b [Crash]Cannot add to existing game

1 year, 6 months ago
(updated 1 year, 6 months ago)

It appears that this cannot be added to existing games due to trying to check something that doesn't exist. I assume it is set to create the table when you create a game, but not check if it is there or not when loading a game?

Error while running event QuantumResourceDistribution::on_nth_tick(60)
QuantumResourceDistribution/control.lua:54: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
QuantumResourceDistribution/control.lua:54: in function 'update_gui'
QuantumResourceDistribution/control.lua:186: in function <QuantumResourceDistribution/control.lua:148>

Edit: it looks like this can be fixed by moving the checks from player creation to gui update function.

1 year, 6 months ago

Updated.