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
stable
Code: Select all
experimental
Code: Select all
console
Code: Select all
1.1.74
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:
Code: Select all
GET https://www.factorio.com/get-download/<ALIAS>/version.txt
Code: Select all
1.1.74
Code: Select all
versions.json
Code: Select all
{"stable":"1.1.74", "console":"1.1.70"}
Thanks!