[16.27] Crash when creating beam entity with bad arguments
Posted: Fri Mar 02, 2018 5:16 am
What did you do?
Install this indevelopment mod, it's been changed to easily reproduce the crash. Start a new game with all default settings. At tick 100 two entities will be scripted to spawn at position {0,0}. Mouse over one of the entities and the mod will call surface.create_entity{name = "custom-beam", etc... }, this call crashes the game.
The mod makes the surface.create_entity call at either tas.lua:85 or tas.lua:93
What happened?
The game crashes every time at the surface.create_entity() call.
What did you expect to happen instead?
The surface.create_entity() call should return an error because of bad arguments, which the mod would catch with a lua xpcall()
I love this game, please reply if you need more information
Install this indevelopment mod, it's been changed to easily reproduce the crash. Start a new game with all default settings. At tick 100 two entities will be scripted to spawn at position {0,0}. Mouse over one of the entities and the mod will call surface.create_entity{name = "custom-beam", etc... }, this call crashes the game.
The mod makes the surface.create_entity call at either tas.lua:85 or tas.lua:93
What happened?
The game crashes every time at the surface.create_entity() call.
What did you expect to happen instead?
The surface.create_entity() call should return an error because of bad arguments, which the mod would catch with a lua xpcall()
I love this game, please reply if you need more information