Page 1 of 1

Question on Data.lua and data-updates.lua

Posted: Sat Jun 27, 2015 8:20 pm
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.

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

Posted: Sat Jun 27, 2015 8:23 pm
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.

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

Posted: Tue Jul 07, 2015 3:28 pm
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).