Page 1 of 1

Get mod version of other mods in the code

Posted: Sun Jun 23, 2019 11:07 am
by Linver
Hi all,
I was wondering if there's something like mods[mod_name] but for mod version like getModVersion(mod_name), because I and other modders got a case when this could be usefull.
Thank in advance for future answers :)

Re: Get mod version of other mods in the code

Posted: Sun Jun 23, 2019 11:23 am
by Bilka
Linver wrote: Sun Jun 23, 2019 11:07 am Hi all,
I was wondering if there's something like mods[mod_name] but for mod version
mods[mod_name] has the mod version as the value. During runtime you can use https://lua-api.factorio.com/latest/Lua ... ctive_mods.