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

This subforum contains all the issues which we already resolved.
zsoltvaradi
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Sep 16, 2025 3:06 pm
Contact:

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

Post 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>
Bilka
Factorio Staff
Factorio Staff
Posts: 3658
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

Please provide the full log file, see 3638.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
zsoltvaradi
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Sep 16, 2025 3:06 pm
Contact:

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

Post by zsoltvaradi »

Providing log file.
Attachments
factorio-current.log
(19.31 KiB) Downloaded 18 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4233
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
Post Reply

Return to “Resolved Problems and Bugs”