[0.17.13] Ghost time can't be set anymore (removed?)

Place to get help with not working mods / modding interface.
Post Reply
User avatar
IIPoliII
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Fri May 05, 2017 12:01 pm
Contact:

[0.17.13] Ghost time can't be set anymore (removed?)

Post by IIPoliII »

Hello,
I am maybe in the wrong section if it's the case i am sorry for it.

Some player asked me if i could move up the ghost time up to 30 minutes.

So i saw this post viewtopic.php?t=13485

But the command

Code: Select all

/c game.forces.player.ghosttimetolive = #
Does not work anymore and isn't avalible at Factorio Lua API

Any ideas ?

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

Re: [0.17.13] Ghost time can't be set anymore (removed?)

Post by Bilka »

The thread you linked is 4 years old, the game has changed a lot since then. Here is how you set it: https://lua-api.factorio.com/latest/Lua ... me_to_live

Note that ghost time to live is already 1 week for ghosts of destroyed entities and forever for blueprint ghosts, so setting it to 30 minutes would set it lower than before.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
IIPoliII
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Fri May 05, 2017 12:01 pm
Contact:

Re: [0.17.13] Ghost time can't be set anymore (removed?)

Post by IIPoliII »

oh okay thanks it is by my side then but do you have a complete command to set it to 30 minutes ^^' sorry for the bother

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

Re: [0.17.13] Ghost time can't be set anymore (removed?)

Post by Bilka »

/c game.player.force.ghost_time_to_live = 60 * 60 * 30
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
IIPoliII
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Fri May 05, 2017 12:01 pm
Contact:

Re: [0.17.13] Ghost time can't be set anymore (removed?)

Post by IIPoliII »

Thanks a lot Bilka !

Post Reply

Return to “Modding help”