[2.0.8] on_entity_logistic_slot_changed fired with nil event on game start/load

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
sparr
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

[2.0.8] on_entity_logistic_slot_changed fired with nil event on game start/load

Post by sparr »

Code: Select all

script.on_event(defines.events.on_entity_logistic_slot_changed, function(event)
  game.player.print(event)
end)
In hindsight, I realize that `game.player` was wrong here, but I think that's not relevant since I didn't let the event handler run to completion.

Running the game with the debugger and a breakpoint set on the middle line of the function, I saw the breakpoint trigger when loading a save. While at the breakpoint, the value of `event` was `nil`. I repeated this a few times. Then I started a new game and hit the breakpoint again. I did this a few times.

However, after I came here to post this and now that I go back to reproduce the failure again, I can no longer reproduce it. I don't know what changed.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14876
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.8] on_entity_logistic_slot_changed fired with nil event on game start/load

Post by Rseding91 »

Thanks for the report however without a way to reproduce this I don't think there's anything we can do.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Pending”