[1.1.53] Corpse TTL set to uint max vanishes instantly

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

[1.1.53] Corpse TTL set to uint max vanishes instantly

Post by Muppet9010 »

The time_to_live for a character-corpse is listed as uint32. However if you put a max uint32 value the corpse vanishes instantly.
https://wiki.factorio.com/Prototype/Cha ... me_to_live
Assume the same issue exists for regular corpse.

In my testing I found that the vanishing is somewhere above 4,200,000 and below the max of 4,294,967,295. i.e. 4,294,967,000 still causes it to instant vanish.

From another modders test they believed it looks like the corpse time_to_live is added to current game tick and then wraps around the max uint32 and so becomes a low number and thus vanishes.

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

Re: [1.1.53] Corpse TTL set to uint max vanishes instantly

Post by Bilka »

Hey, this is fixed in 1.1.54 which was released about two hours ago.
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”