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
[16.27] Crash when creating beam entity with bad arguments
-
- Burner Inserter
- Posts: 6
- Joined: Fri Mar 02, 2018 4:50 am
- Contact:
[16.27] Crash when creating beam entity with bad arguments
- Attachments
-
- log, dump and mods.zip
- (223.46 KiB) Downloaded 171 times
Re: [16.27] Crash when creating beam entity with bad arguments
Thanks for the report. It's now fixed for the next version of 0.16. The problem is you didn't define any body animation for the beam entity and it requires at least 1.
If you want to get ahold of me I'm almost always on Discord.