[0.15.23] Lua "stale print" crash
Posted: Mon Jun 26, 2017 12:27 am
Not realizing I could simply use "game.print", I tried preserving the player's personal print function to be used in an event handler, like so:
/c local print=game.player.print script.on_event(defines.events.on_player_crafted_item, function() print("hello") end)
It could be any event, presumably (I first caused it using on_research_finished), but for this example crafting an item will then reliably cause the game to crash, even on a brand new map without any running mods.
I doubt this would be considered very high priority, but hey, a crash is a crash.
/c local print=game.player.print script.on_event(defines.events.on_player_crafted_item, function() print("hello") end)
It could be any event, presumably (I first caused it using on_research_finished), but for this example crafting an item will then reliably cause the game to crash, even on a brand new map without any running mods.
I doubt this would be considered very high priority, but hey, a crash is a crash.