Random values/property in data.lua

Place to get help with not working mods / modding interface.
Post Reply
juiceDeLemon
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Apr 21, 2024 12:03 pm
Contact:

Random values/property in data.lua

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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13256
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Random values/property in data.lua

Post by Rseding91 »

Correct. Prototypes are not changeable after data stage finishes.
If you want to get ahold of me I'm almost always on Discord.

Gweneph
Inserter
Inserter
Posts: 33
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: Random values/property in data.lua

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

Post Reply

Return to “Modding help”