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

This subforum contains all the issues which we already resolved.
Post Reply
Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post 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.
Attachments
Portals_0.1.5.zip
the mod
(84.72 KiB) Downloaded 48 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13175
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Problems and Bugs”