PyroFire232 / warptorio2

An updated / refined version of warptorio https://mods.factorio.com/mod/warptorio
8 stars 8 forks source link

entity cloned issues during warp? #11

Open baryluk opened 3 years ago

baryluk commented 3 years ago

During AntiElitz's event we were getting frequent issues with warptorio during the warp:

27403.685 Error MainLoop.cpp:1285: Exception at tick 3384600: The mod Warptorio2 (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_tick (ID 0)
The mod Warptorio2 (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event warptorio2::on_entity_cloned (ID 120)
__warptorio2__/control_main.lua:829: attempt to get length of local 'inv' (a nil value)
stack traceback:
    __warptorio2__/control_main.lua:829: in function 'y'
    __warptorio2__/lib/lib_control.lua:289: in function <__warptorio2__/lib/lib_control.lua:289>
    [C]: in function 'clone_entities'
    __warptorio2__/control_main.lua:986: in function 'Warp'
    __warptorio2__/control_main.lua:859: in function 'Warpout'
    __warptorio2__/control_main_helpers.lua:227: in function 'b'
    __warptorio2__/lib/lib_control.lua:281: in function <__warptorio2__/lib/lib_control.lua:281>
stack traceback:
    [C]: in function 'clone_entities'
    __warptorio2__/control_main.lua:986: in function 'Warp'
    __warptorio2__/control_main.lua:859: in function 'Warpout'
    __warptorio2__/control_main_helpers.lua:227: in function 'b'
    __warptorio2__/lib/lib_control.lua:281: in function <__warptorio2__/lib/lib_control.lua:281>

factorio-current.log

baryluk commented 3 years ago

We suspect the issue is when one player is dead (and not respawned yet), and other is teleporting between levels of the platform while in spidertron.

That is the theory, we experienced this crash few times, but with 16 players it is chaos, and hard to figure out exact conditions to trigger this.