Question on Data.lua and data-updates.lua

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1455
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Question on Data.lua and data-updates.lua

Post by TheSAguy »

I think I know the answer, but wanted to confirm,

Everything in Data.lua and data-updates.lua gets loaded when you start a game, so I can't make anything in there dynamic, correct?

Let's say I wanted to give biters more life or damage or resistance as the evolution factor goes up, that would not be possible.
My only choice would have to have multiple types of biters and have higher versions spawn like they are currently doing, correct?

Thanks.
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Question on Data.lua and data-updates.lua

Post by orzelek »

Sadly you are correct.
Only stuff we can change during the game are the parts of entity and tech etc. that are on lua object interfaces for those.
SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: Question on Data.lua and data-updates.lua

Post by SirRichie »

To answer the other side of the question and for clarity:
You cannot have dynamic code in the data.lua (and its variants).
Post Reply

Return to “Modding help”