Page 1 of 1

Get Factorio version in mod

Posted: Mon Jul 17, 2017 9:13 am
by moon69
Is it possible to get the information from Factorio Help-About in a mod?

Ideally all of it, but at least the 0.15.30 version number...

Code: Select all

Release: Steam
Version: 0.15.30 (build 30727, win64, steam)
What is the difference between "Release: Steam" and the 'steam' in the version string?

Thanks.

Re: Get Factorio version in mod

Posted: Mon Jul 17, 2017 4:13 pm
by prg
"base" in game.active_mods (assuming the base mod is enabled, which is somewhat likely)

Re: Get Factorio version in mod

Posted: Sat Jul 22, 2017 4:20 pm
by moon69
Cool thanks :)