Skip to content

Commit

Permalink
Explained StateFlags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zohar Malamant committed Jan 11, 2014
1 parent 9d426d9 commit 858cead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Note: Steam will not run apps that don't have Linux support, but it will still d

When you tell Steam to download an app, it first checks whether a Linux version exists. If it doesn't exist, it tells you so ("[App] is not available on your current platform.") and doesn't do anything. If it exists, it creates an `appmanifest` file (which contains game meta-data: name, size on hard-disk, time of last update, etc), and then proceeds to download it.

I found that if the `appmanifest` file is created manually, Steam will still download the app regardless of platform. There are a minimum of three variables that have to be set in order for this to work. The first is the `AppID` -- the ID of the app you're trying to download. The second is the `Universe`. [Refer to the Valve Developer Wiki for more info.](https://developer.valvesoftware.com/wiki/SteamID#Universes_Available_for_Steam_Accounts) The last and the most magical one is the `StateFlags`. I couldn't find any documentation on this, but as far as I've figured out, setting this to `1026` tells the Steam client that this the app download has been paused but should be continued when Steam starts.
I found that if the `appmanifest` file is created manually, Steam will still download the app regardless of platform. There are a minimum of three variables that have to be set in order for this to work. The first is the `AppID` -- the ID of the app you're trying to download. The second is the `Universe`. [Refer to the Valve Developer Wiki for more info.](https://developer.valvesoftware.com/wiki/SteamID#Universes_Available_for_Steam_Accounts) The last and the most magical one is the `StateFlags`. Setting this to `1026` tells Steam that an update is required and that the update has been started previously. More info on `StateFlags` can be found [here](https://github.com/lutris/lutris/blob/master/docs/steam.rst). (Thanks to strycore for pointing this out.)

## Using the script

Expand Down

0 comments on commit 858cead

Please sign in to comment.