on_post_entity_died event.ghost is nil for vehicles

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
User avatar
_CodeGreen
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Sat Mar 05, 2022 11:30 am
Contact:

on_post_entity_died event.ghost is nil for vehicles

Post by _CodeGreen »

As the title says, the event has a field for ghosts yet it is not populated for vehicles.
With vehicles only now leaving ghosts on death in 2.0, this part of the implementation seems to have been overlooked :P
My Mods | If you can't make it perfect, make it adjustable
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4012
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: on_post_entity_died event.ghost is nil for vehicles

Post by boskid »

Tested on 2.0.42. Cannot reproduce.
03-26-2025, 08-12-07.png
03-26-2025, 08-12-07.png (157.08 KiB) Viewed 191 times
User avatar
_CodeGreen
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Sat Mar 05, 2022 11:30 am
Contact:

Re: on_post_entity_died event.ghost is nil for vehicles

Post by _CodeGreen »

I tried more than once and wasn't able to get it to work, but for some reason today it's perfectly fine. I'm guessing I was miraculously being an idiot and not using /cheat (thus the ghost wasn't spawning) every single time I tested reading the field, even though that's something I was frequently doing while testing the mod I was working on. Sorry about that!
My Mods | If you can't make it perfect, make it adjustable
Post Reply

Return to “Pending”