Page 1 of 1

ghost-time-to-live

Posted: Sat Apr 19, 2014 7:46 am
by Lee_newsum
i am working fix this BUG https://forums.factorio.com/forum/vie ... =23&t=3052 AND YES IT IS A BUG TO ME :evil:

this is waht i have.

Code: Select all

data.raw["type"]["ghost-time-to-live"].modifier = 60 * 60 * 5
what am not doing?

thanks for your help.

Re: ghost-time-to-live

Posted: Mon Apr 21, 2014 2:56 pm
by kovarex
The ghost-time-to-live is modifier, its value can be different for any force(player) and change.
It is stored similar way as the shooting bonuses, unlocked recipes etc.

There is not currently way to access these modifiers from lua, but we should definitely do it, I'm adding this to the todo list.

Re: ghost-time-to-live

Posted: Mon Apr 21, 2014 5:03 pm
by FreeER
kovarex wrote:There is not currently way to access these modifiers from lua
Hm, not sure about accessing (ie. reading the value) but a technology (using the modifier type "ghost-time-to-live") that gets enabled through control.lua should work to set it (it could be set to 'researched' in oninit/onload for instant effect of course).