Page 1 of 1

Random values/property in data.lua

Posted: Sun Apr 21, 2024 12:21 pm
by juiceDeLemon
I'm writing my first mod. It is about this reddit post https://www.reddit.com/r/factorio/comme ... are_button

I thought it would be easy and could make this in one day (lol) From my knowledge, you can't change data in data.lua in runtime/only static values can exists.

Is it really impossible?

Re: Random values/property in data.lua

Posted: Sun Apr 21, 2024 1:52 pm
by Rseding91
Correct. Prototypes are not changeable after data stage finishes.

Re: Random values/property in data.lua

Posted: Wed May 29, 2024 11:41 pm
by Gweneph
you can modify the whole surface's solar output. https://lua-api.factorio.com/latest/cla ... multiplier
This is probably the only meaningful way to modify the output anyway, as large number of independently fluctuating random variables would just average out.