RailJump (轨道跃迁站) deprecated


一个独立的太空电梯Mod,允许火车和玩家在配对的传送门之间瞬间移动。美术资源和设计灵感来源于Earendel的Space Exploration,https://mods.factorio.com/mod/space-exploration。在此表示感谢。至于zzzzz是我随便填写的名字,因为AI告诉我可以确保最后加载,我也不知道为什么,现在修改已经来不及了

Content
5 days ago
2.0
158
Transportation Trains Logistic network Circuit network Cheats

g crash

17 days ago

I dont know what exactly happened when the server crashed. However, it crashed twice, and with the same patterns: first the Kux-PersonalTeleport mod tried to do something and then the Railjump mod crashed. I dont know if that is just a coincidence or the kux mod invalidated the something that Railjump use

79918.642 Script @Kux-PersonalTeleport/control.lua:650: on_built_entity
79927.227 Script @Kux-PersonalTeleport/control.lua:650: on_built_entity
80064.030 Info AppManager.cpp:303: Saving to _autosave1 (non-blocking).
80064.119 Info AsyncScenarioSaver.cpp:177: Saving process PID: 3048581
80068.910 Info ChildProcessAgent.cpp:61: Child 3048581 exited with return value 0
80068.910 Info AppManager.cpp:304: Saving finished
80140.030 Error MainLoop.cpp:1468: Exception at tick 24520500: The mod RailJump (a fake SE space elevator) (1.0.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event zzzzz::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__zzzzz
/control.lua:492: in function <zzzzz/control.lua:344>
80140.030 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod RailJump (a fake SE space elevator) (1.0.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event zzzzz::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__zzzzz
/control.lua:492: in function <zzzzz/control.lua:344>"
80140.030 Info ServerMultiplayerManager.cpp:808: updateTick(24520500) changing state from(InGame) to(Failed)
80140.043 Quitting: multiplayer error.

17 days ago

I dont know what exactly happened when the server crashed. However, it crashed twice, and with the same patterns: first the Kux-PersonalTeleport mod tried to do something and then the Railjump mod crashed. I dont know if that is just a coincidence or the kux mod invalidated the something that Railjump use

79918.642 Script @Kux-PersonalTeleport/control.lua:650: on_built_entity
79927.227 Script @Kux-PersonalTeleport/control.lua:650: on_built_entity
80064.030 Info AppManager.cpp:303: Saving to _autosave1 (non-blocking).
80064.119 Info AsyncScenarioSaver.cpp:177: Saving process PID: 3048581
80068.910 Info ChildProcessAgent.cpp:61: Child 3048581 exited with return value 0
80068.910 Info AppManager.cpp:304: Saving finished
80140.030 Error MainLoop.cpp:1468: Exception at tick 24520500: The mod RailJump (a fake SE space elevator) (1.0.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event zzzzz::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__zzzzz
/control.lua:492: in function <zzzzz/control.lua:344>
80140.030 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod RailJump (a fake SE space elevator) (1.0.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event zzzzz::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__zzzzz
/control.lua:492: in function <zzzzz/control.lua:344>"
80140.030 Info ServerMultiplayerManager.cpp:808: updateTick(24520500) changing state from(InGame) to(Failed)
80140.043 Quitting: multiplayer error.
Hello, thank you for the detailed report and the log.

I have analyzed the code for version 1.0.10 and identified the cause. The crash happens because the old power maintenance logic in on_tick tries to access the portal's inventory without first checking if the entity is still valid. It seems the "Kux-PersonalTeleport" mod (or another event) invalidated the portal entity, and my old code crashed when trying to read it.

This issue has been completely fixed in version 1.3.8.

In the latest version (1.3.8), I rewrote the main loop to include a strict safety check (if struct.entity and struct.entity.valid) before executing any logic. This prevents the "LuaEntity invalid" crash even if the portal is removed by another mod.

Please update the mod to version 1.3.8, and the issue will be resolved.

if sitll crash,i will find out wtf happen

17 days ago

cool, thx!

New response