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 (optional). It's make resource management more like RTS for playing combat-oriented settings/mods. Compatible with multi-surface mods like Space Exploration - item transportation works on surface, but not between them. Should be UPS-friendly because using events to track entities, not find_entities_filtered.

Content
1 year, 1 month ago
1.1
1.13K
Logistics Logistic network Circuit network Storage

b tick outside of range

1 year, 1 month ago

Is there a way to solve the problem below while playing the game?

Error while running event QuantumResourceDistribution2::on_nth_tick(60)
Value (2147522895.632476) outside of range. The data type allows values from -2147483648 to 2147483647 in property tree at ROOT[15].count
stack traceback:
[C]: in function 'newindex'
__QuantumResourceDistribution2
/functions.lua:160: in function 'set_combinator'
QuantumResourceDistribution2/control.lua:412: in function <QuantumResourceDistribution2/control.lua:376>

1 year, 1 month ago

Never encountered such issue, send me you save so i can take a look.

1 year, 1 month ago

I think it's because the maximum capacity of the item has been exceeded, so no more items are added to storage, so no error occurs.

It seems that the storage amount is limited.

mod setup > quantum resource distribution > quantum storage capacity > set 9999999999

1 year, 1 month ago

When I tested it, the error occurred when the quantity of one item exceeded 2147483647. I think it would be a good idea to limit max capacity

1 year, 1 month ago

Lol, so it's literally lua number overflow, congrats, you accumulated so much resources that no number can hold XD

Ok, i will look into it, thanks.

New response