Programmatically resolving version aliases like stable/console/switch into version numbers?
Posted: Sat Dec 17, 2022 4:03 pm
Is there some endpoint to programmatically resolve Factorio version aliases like or or into firm version numbers like ?
I know there are these aliases on Steam but that information doesn't seem to be readily consumable by code. I'm looking to offer hosting for Switch players and would like to be able to automatically rebuild server images to keep up with the software running on their consoles.
An example of the type of thing I'm looking for: returning a response like . Or just a fixed-url with something like , or really anything that would be automation-friendly and not a burden to serve.
Thanks!
Code: Select all
stableCode: Select all
experimentalCode: Select all
consoleCode: Select all
1.1.74I know there are these aliases on Steam but that information doesn't seem to be readily consumable by code. I'm looking to offer hosting for Switch players and would like to be able to automatically rebuild server images to keep up with the software running on their consoles.
An example of the type of thing I'm looking for:
Code: Select all
GET https://www.factorio.com/get-download/<ALIAS>/version.txtCode: Select all
1.1.74Code: Select all
versions.jsonCode: Select all
{"stable":"1.1.74", "console":"1.1.70"}Thanks!