Page 1 of 1

[0.14.22] Crash when using a script to place an entity

Posted: Mon Mar 27, 2017 3:55 pm
by Bilka
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.

Re: [0.14.22] Crash when using a script to place an entity

Posted: Mon Mar 27, 2017 4:25 pm
by Rseding91
Already fixed for 0.15. You'll get an error at startup now.

Re: [0.14.22] Crash when using a script to place an entity

Posted: Mon Mar 27, 2017 4:34 pm
by Bilka
Alright, thanks.

Re: [0.14.22] Crash when using a script to place an entity

Posted: Mon Mar 27, 2017 6:04 pm
by Rseding91
The problem has to do with the frame count and the explosion entity expecting their to be animations for the explosion to render.

Re: [0.14.22] Crash when using a script to place an entity

Posted: Mon Mar 27, 2017 6:51 pm
by Bilka
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.