Get Factorio version in mod

Place to get help with not working mods / modding interface.
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Get Factorio version in mod

Post 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.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Get Factorio version in mod

Post by prg »

"base" in game.active_mods (assuming the base mod is enabled, which is somewhat likely)
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Re: Get Factorio version in mod

Post by moon69 »

Cool thanks :)
Post Reply

Return to “Modding help”