Telogistics

by S6X

Teleport items from planet to planet, as long as you can spare the electricity.

Content
3 days ago
2.0
954
Factorio: Space Age Icon Space Age Mod
Logistics

g Crash after 1.0.10 update

4 days ago
(updated 4 days ago)

Hi!

After updating to 1.0.10, my game now crashes:

Error while running event Telogistics::on_tick (ID 0)
'bar': real number expected got nil.
stack traceback:
[C]: in function 'set_bar'
Telogistics/control.lua:487: in function 'swap_machine_to_container'
Telogistics/control.lua:628: in function 'finish_teleport'
Telogistics/control.lua:609: in function 'teleport_failed'
Telogistics/control.lua:173: in function <Telogistics/control.lua:116>

This happens right after a teleport finishes. Going back to an older autosave, I found that just removing the teleporters and putting them back again fixed the issue, but it doesn't help my most recent save since a teleport job finishes almost as soon as the game loads. I tried using /tl_reset in the console but sadly it didn't help.

Edit
Manually rolled back to 1.0.7, removed the teleporters, updated the mod, then rebuilt the teleporters and this seems to have fixed it.

3 days ago

Oh, this one has been bothering Lua programmers for years unfortunately. It's arguably not a bug in my code or even in Factorio but a problem with the Lua C API itself, though they're probably never going to fix it.

Anyway... I'm glad you were able to work around it, and I've added a more robust workaround in 1.0.11 to prevent this kind of thing from happening again.

New response