I'm trying to create a standalone Config mod for my 3 Natural Evolution Mods. (Similar to what Bob has).
I got the everything working in data.lua and data-updates.lua, but my Control.lua does not seem to read the values from the Config mod.
In my Config Mod, I have this in the control.lua the following:
Code: Select all
Natural_Evolution.config.Single_Player_Only = true
Code: Select all
"dependencies": ["base >= 0.14", "Natural_Evolution_Config", "? EvoGUI"],
Code: Select all
if not Natural_Evolution then Natural_Evolution = {} end
if not Natural_Evolution.config then Natural_Evolution.config = {} end
if not Natural_Evolution.config.expansion then Natural_Evolution.config.expansion = {} end
if Natural_Evolution.config.Single_Player_Only then
require ("libs/EvoGUI")
end
How does the Control.lua differ from the data.lua in terms of reading a value in anther mod?
Thanks.