Page 1 of 1

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

Posted: Fri Mar 15, 2019 6:28 pm
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 ?

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

Posted: Fri Mar 15, 2019 6:31 pm
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.

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

Posted: Fri Mar 15, 2019 6:41 pm
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

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

Posted: Fri Mar 15, 2019 6:46 pm
by Bilka
/c game.player.force.ghost_time_to_live = 60 * 60 * 30

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

Posted: Fri Mar 15, 2019 6:47 pm
by IIPoliII
Thanks a lot Bilka !