No description
Find a file
ilumos f94fcf3ae6
Merge pull request #57 from jdmcmahan/fix-unique-constraint
Use bigInteger type for app ID columns to avoid overflow
2021-08-30 19:28:22 +01:00
.github/ISSUE_TEMPLATE Update issue templates 2021-08-30 17:21:36 +01:00
bootstrap/cache Adding required Laravel config files for app and cache 2017-12-09 01:01:10 +00:00
config Enabling debugging 2018-11-27 23:10:26 +00:00
docs/screenshots Fixing screenshots 2018-04-24 22:27:28 +01:00
framework/cache/data Adding cache folder required by Laravel 2018-11-27 23:11:44 +00:00
src Use bigInteger type for app ID columns to avoid overflow 2021-08-26 14:43:48 -05:00
.env.example Removing API key placeholder 2018-11-27 23:11:28 +00:00
.gitattributes Fix line endings in .gitattributes 2019-06-01 22:26:00 +01:00
.gitignore Rate limit requests made by steam:queue-users-recent-apps 2020-05-13 23:21:52 +01:00
composer.json Rate limit requests made by steam:queue-users-recent-apps 2020-05-13 23:21:52 +01:00
composer.lock Update dependencies 2020-05-17 13:32:50 +01:00
install.sh Simplify installation 2021-08-30 18:28:55 +01:00
lancache-autofill Switching from console app class to full app class 2017-12-09 01:05:15 +00:00
LICENSE License under GPLv3 2021-08-30 18:45:19 +01:00
README.md Simplify installation 2021-08-30 18:28:55 +01:00
Vagrantfile Support HyperV in Vagrantfile 2021-08-30 18:29:07 +01:00

lancache-autofill

Automatically fill a lancache with the content of your choosing, so that subsequent downloads for the same content will be served from the lancache, improving speeds and reducing load on your internet connection.

Features

  • Download the top popular free and/or paid apps on Steam
  • Download a specific app by ID
  • Choose which platform(s) apps should be downloaded for
  • Download one (or more) users recently played apps
  • Download using multiple Steam accounts
  • Check which apps will be downloaded
  • Alter the download queue as needed
  • Start downloading process and leave to run unattended
  • Check which apps downloaded successfully
  • Check which apps failed to download, and why
  • Retry downloading of some or all failed apps
  • Clear the temporary download directory

Screenshots

Queuing apps Starting the download process

Requirements

  • A working lancache
  • Ubuntu 18.04 x64, configured to download via the lancache
  • Sufficient disk space to (temporarily) store the downloaded content
  • Dependencies detailed in Installation section

Installation

  1. git clone https://github.com/zeropingheroes/lancache-autofill.git && cd lancache-autofill
  2. ./install.sh
  3. Get a Steam API key from http://steamcommunity.com/dev/apikey and add it to the .env file

Usage

$ ./lancache-autofill

Usage:

    lancache-autofill app:initialise-database
    lancache-autofill app:initialise-downloads-directory

    lancache-autofill steam:initialise
    lancache-autofill steam:authorise-account [<account>]
    lancache-autofill steam:update-app-list
    
    lancache-autofill steam:search-apps <app name>
    lancache-autofill steam:queue-app <app id> [<app id>...] [--windows=true] [--osx] [--linux]
    lancache-autofill steam:queue-popular-apps [<top X apps>] [--free] [--windows=true] [--osx] [--linux]
    lancache-autofill steam:queue-users-recent-apps <steam id 64> [<steam id 64>...] [--windows=true] [--osx] [--linux]
    lancache-autofill steam:queue-users-recent-apps <steam-ids.txt> [--windows=true] [--osx] [--linux]
    
    lancache-autofill steam:show-queue [<status>]
    lancache-autofill steam:start-downloading
    lancache-autofill steam:dequeue [--app_id=] [--platform=] [--status=] [--message=]
    lancache-autofill steam:requeue [status=failed] [--message=]

Limitations & Known Issues

  • Steam is the only supported platform currently
  • Paid apps can only be cached with access to a Steam account that owns them
  • No support for forcing download of 32 bit apps
  • Yes, it's written in PHP. No shame.

SteamCMD Errors

Error Possible Reason
ERROR! Timed out waiting for AppInfo update. Unknown
Login Failure: Rate Limit Exceeded (84) Unknown
ERROR! Failed to install (No subscription) Game not owned by any authorised accounts
Error! State is 0x202 after update job. Not enough space to download game
Error! State is 0x402 after update job. Update required but not completed - check network
Error! State is 0x602 after update job. Update required but not completed - check network

For other error codes, you can calculate the app's state(s) by converting the 0x000 code to decimal, and finding which AppState codes sum to the given code, which will give you some clues as to what's going on.

For example:

  • 0x402 to decimal = 1026
  • 1026 is the sum of:
    • 2: StateUpdateRequired
    • 1024: StateUpdateStarted

Reference