Way to get major and minor version in mod?
Way to get major and minor version in mod?
Basically I want to prepare for a new function being available, by saying if version <18.x use function A, version >18.x+.01 use function B. I could write an on_nth_tick check if the pcall returns an error or something, but that's a going to be more complicated than using the game version.
I have mods! I guess!
Link
Link
Re: Way to get major and minor version in mod?
https://lua-api.factorio.com/latest/Lua ... ctive_mods / https://lua-api.factorio.com/latest/Lua ... ctive_mods can be used to get base mod version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Way to get major and minor version in mod?
Awesome, thanks.Bilka wrote: ↑Wed Feb 12, 2020 4:03 pmhttps://lua-api.factorio.com/latest/Lua ... ctive_mods / https://lua-api.factorio.com/latest/Lua ... ctive_mods can be used to get base mod version.
I have mods! I guess!
Link
Link