Page 1 of 1

[2.0.66] Error while running event level::on_nth_tick(1)

Posted: Tue Sep 16, 2025 3:18 pm
by zsoltvaradi
On the menu screen I am consistently getting the following issue when a Nauvis scenario should show.
build 83840 expansion, win64

The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_nth_tick(1)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function '__newindex'
[string " local sim_planet = game.surfaces["nauvi..."]:78: in function 'on_tick'
[string " local sim_planet = game.surfaces["nauvi..."]:14: in function <[string " local sim_planet = game.surfaces["nauvi..."]:12>

Re: [2.0.66] Error while running event level::on_nth_tick(1)

Posted: Tue Sep 16, 2025 3:21 pm
by Bilka
Please provide the full log file, see 3638.

Re: [2.0.66] Error while running event level::on_nth_tick(1)

Posted: Tue Sep 16, 2025 5:05 pm
by zsoltvaradi
Providing log file.

Re: [2.0.66] Error while running event level::on_nth_tick(1)

Posted: Tue Sep 16, 2025 9:19 pm
by boskid
Thanks for the report. Log file indicates you have mods enabled. In general if mods are involved then we no longer care about menu simulations crashing because they are heavily scripted and if mods change essential entities that are involved in the simulation, then it may start behaving incorrectly. In this specific case i observed the issue to be nauvis_tank_building simulation that was failing because a tank was driven into factorio logo entity causing tank to be destroyed which later caused a script crash due to tank no longer being present. For 2.0.67 i made a miniscule change to make this specific simulation at least not crash if tank is destroyed which will fix the crash, but that still keeps the menu simulation not play the way it was supposed to.