Page 1 of 1

Dependency Validation

Posted: Sun May 29, 2016 2:14 am
by Ranakastrasz
I would like scripts and prototype data to be able to validate whether or not a mod is enabled. Currently, you have to look for a unique prototype from that mod, and check if it exists, or hope the mod author added in a definition for the mod on their own.

I would prefer being able to just use something like this.

Code: Select all

if mod["base"] then
else
end
or something similar.

Re: Dependency Validation

Posted: Sun May 29, 2016 8:00 am
by daniel34
Mod changes in 0.13 [Modding discussion]
Rseding91 wrote:With 0.13 nearing and the list of changes getting closer to being "final" I figured now is a good time to let everyone know about breaking changes coming to the mod API in 0.13.

- Added LuaGameScript::active_mods - a table of active mod names to mod versions.