TheChosenGOG: Hi mrkgnao,
Thanks for MaGog. I'd like to know the "manual way" for get the last version of a game without access to my library or if the game isn't in my library. Example Caesar III is 2.0.0.9 for GOG. I think everithing start from ID? Or is inside the source of the page of the game?
If I understand you correctly, you want to get
the version portion of the GOG file name.
First, note that this is not the same as
the displayed version.
See for example
Hand of Fate:
- The Windows displayed version is "1.3.7 (gog-10)", while the version portion of the file name is 2.6.0.10
- The Mac displayed version is "1.3.7 (gog-17)", while the version portion of the file name is 2.11.0.17
- The Linux displayed version is "1.3.7 (gog-12)", while the version portion of the file name is 2.9.0.12
The only correlation between the two are the last set of digit(s), 10 (Windows), 17 (Mac), 12 (Linux) in the example above, which should be the same.
Many older games do not have a displayed version, only a version portion of the file name (e.g. Caesar 3).
Now to your question: You want to get
the version portion of the GOG file name.
Well, the bad news is that in order to do that you need access to the file, which means that you can do it only for games you own. This is why, for example, if you check
Firewatch on MaGog you will not see the file name, since I do not own the game. MaGog only displays file names (and sizes and modification times) for games I own. The displayed version, on the other hand can be obtained even if you do not own the game, but as I already mentioned, many games do not have that information yet (and, knowing GOG, probably never will).
To get
the version portion of the GOG file name:
If you own a specific game, you can get the list of file URLs belonging to that game from:
https://www.gog.com/account/gameDetails/<span class="bold"><span class="podkreslenie">GAMEID</span></span>.json Then you need follow each of the URLs through all its redirections to find the actual file name.
Hope this helps.