Giter Club home page Giter Club logo

steam-appmanifest's Introduction

Steam AppManifest generator

This is a short python script that tricks Steam for Linux into downloading non-Linux apps.

Note: Steam will not run apps that don't have Linux support, but it will still download the data.

How it works

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. 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. (Thanks to strycore for pointing this out.)

Using the script

You need Python 3 and Python 3 GObject Bindings for the script to run.

  • Debian and Ubuntu (and derivatives) don't have these installed by default. The packages are python3 and python3-gi.
  • ArchLinux and derivatives can install python and python-gobject.
  • Fedora should have everything installed by default.

After you have installed these, download steam-appmanifest.py. Make the file executable ($ chmod +x steam-appmanifest.py) and start it. A dialog should appear. Type in your Steam Community ID in the top textbox and hit Refresh. Make sure your profile is publicly viewable. A list of titles should appear. Install the apps that you want by clicking the checkbox to the left of the Title (and AppID). After you finish, restart Steam.

Manual

I created the python script for ease of use. However, it is also possible to create the appmanifest files manually, without the script.

  1. Find the AppID of the app you're trying to download. This can be easily done by going on SteamDB and searching for it.
  2. Go to ~/.steam/steam/SteamApps or wherever your main SteamApps folder is.
  3. Create and open a new file called "appmanifest_APPID.acf", replace APPID with the actual AppID you found in Step 1.
  4. Copy and paste the following and replace APPID (the all-caps one) with the one you found in Step 1 and APPNAME with the folder name to download to:
    "AppState"
    {
      "AppID"  "APPID"
      "Universe" "1"
      "installdir" "APPNAME"
      "StateFlags" "1026"
    }

Save and restart Steam.

Disclaimer

This method isn't guaranteed to work. I've tested it on several games and they all seemed to download fine except for Civilization V, which just made an empty directory.

Steam won't download apps you don't own.

steam-appmanifest's People

Contributors

pinkwah avatar madeofmagicandwires avatar abigailbuccaneer avatar bertvandepoel avatar directhex avatar vash63 avatar dominionized avatar gokul avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.