Quantum Resource Distribution

by eliont

Special chest can send placed items to ship quantum storage unit and retrieve from it. Also works for player inventory. It's make resource management more like RTS for playing combat-oriented settings/mods like Warp Drive Machine. Item transportation works across each surface, but not between them. UPS-friendly. Works with factorissimo-2-notnotmelon_3.x.x.

Content
5 days ago
1.1 - 2.0
357
Logistics Logistic network Circuit network Storage

b [Crash]Cannot add to existing game

2 years ago
(updated 2 years 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.

2 years ago

Updated.