Know the actual data stage

Place to get help with not working mods / modding interface.
User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

Know the actual data stage

Post by Linver »

Hi again!
Anyone know if exist a lua command or variable in data stages that give in what data stage the mod is?
Like: stage() -> "data-updates" "2"
I could implemnet it easily but I was wondering if already exist.
PyroFire
Filter Inserter
Filter Inserter
Posts: 356
Joined: Tue Mar 08, 2016 8:18 am
Contact:

Re: Know the actual data stage

Post by PyroFire »

Code: Select all

data.lua

data_stage=0
function GetDataStage() return data_stage end

Code: Select all

data-updates.lua

data_stage=1
function GetDataStage() return data_stage end

Code: Select all

data-final-fixes.lua

data_stage=2
function GetDataStage() return data_stage end

It otherwise does not already exist.
Post Reply

Return to “Modding help”