Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 2.23 KB

version-detector-retriever.md

File metadata and controls

36 lines (27 loc) · 2.23 KB

gogtools - version detector and retriever

A windows, linux, and osx Python script which attempts to identify and list the versions of installed Gog games and DLC, as well as an option to compare versions online at Gog.

It is possible to check for installers and versions for a particular operating system - if a game or DLC is not available, this is shown too. By default, with no option set, the current operating system detected is used for querying for versions.

Requirements for this tool:

  • A Python3 version of 3.xx or later
  • "requests" package, either installed using "pip" or as linux package, something like python3-requests, on Debian for example.

Screenshot in Windows Powershell:

image

Example usages

Windows

  • python '.\gogtools-version detector.py' (no -i provided, uses the current folder of the script as root to scan for contents)
  • python '.\gogtools-version detector.py' -i "c:\GOG Games" (analyze folder starting from "c:\GOG Games")
  • python '.\gogtools-version detector.py' -d (ignore DLCs)
  • python '.\gogtools-version detector.py' -r -i "c:\GOG Games" (-r check Gog for current versions)
  • python '.\gogtools-version detector.py' -r -i "c:\GOG Games" -o osx (-o, check if osx, meaning OSX, installers are available)

Linux (perhaps also OSX)

  • python ./gogtools-version detector.py' -i /home/user/gogGames -r
  • python ./gogtools-version detector.py' -r -d (-r check for current Gog version, -d disable check for DLCs)

Option/Switches:

  • -i value: The input folder where all games and DLCs are installed/located to start analyze from, if not specified, uses the directory where the script is located.
  • -d: No value, disable DLC checks, also in conjunction with -r.
  • -r: No value, request the online Gog API for the current versions.
  • -o value: Use with -r to check for game/dlcs installers for one particular operating systems, possible value is windows, linux or osx.
  • -w: No value, generate output HTML file - filename example: gt-gvd-output_2024-09-20_21-50-00.html
  • -u: No value, print URLs to console/html
  • -c: Read gt-gid.json file created by gogtools-game-id-retriever.py