[0.14.22] Crash when using a script to place an entity
[0.14.22] Crash when using a script to place an entity
I changed the prototype of the portal-2 entity to be of the type explosion. The game did not throw any errors when I started. However, when I placed an entity that calls a script that builds the portal-2, the game crashed. To reproduce: Insert "portal-gun" into your inventory and ghost place it using the shift key. This will call the script that places portal-2.
- Attachments
-
- Portals_0.1.5.zip
- the mod
- (84.72 KiB) Downloaded 49 times
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [0.14.22] Crash when using a script to place an entity
Already fixed for 0.15. You'll get an error at startup now.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.14.22] Crash when using a script to place an entity
Alright, thanks.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [0.14.22] Crash when using a script to place an entity
The problem has to do with the frame count and the explosion entity expecting their to be animations for the explosion to render.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.14.22] Crash when using a script to place an entity
Yeah I accidently messed up the protoype of the animation in that test. I was trying to find an entity type that can be animated and have its render_layer changed but I wasn't succesful.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.