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.
- 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.
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 ifosx
, 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 iswindows
,linux
orosx
.-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
: Readgt-gid.json
file created bygogtools-game-id-retriever.py