ghost-time-to-live

Place to get help with not working mods / modding interface.
Post Reply
Lee_newsum
Filter Inserter
Filter Inserter
Posts: 433
Joined: Wed Jan 15, 2014 9:41 am
Contact:

ghost-time-to-live

Post 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.

kovarex
Factorio Staff
Factorio Staff
Posts: 7471
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: ghost-time-to-live

Post 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.

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: ghost-time-to-live

Post 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).

Post Reply

Return to “Modding help”

Who is online

Users browsing this forum: No registered users