It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
I own the GOG versions of Broken Sword: Director's Cut and Broken Sword II Remastered. Both came with the original versions, which I had to download and install myself. I manually added both in GOG Galaxy so I could track my playtime, but I can't seem to make shortcuts that launch GOG Galaxy, then the games.

The only way is to open Galaxy, find the games, then click "Play." I know how to make shortcuts the typical way using the game IDs in the game's directory, but neither of these manually added games have those IDs.

I tried searching for the IDs in the galaxy-2.0.db database file using DB Browser for SQLite, but that just showed the standard game IDs -- nothing for the two I added manually.

@TheOneThatGivesIn suggested a few years ago that using the directory names of recently manually added games in the "C:\ProgramData\GOG.com\Galaxy\webcache\52204040762894860\generic" directory might work instead of the game ID.
Broken Sword's code was 51141994713589530. I added it as follows...

"C:\Program Files (x86)\GOG Galaxy\GalaxyClient.exe" /command=runGame /gameId=51141994713589530 /path="D:\Games\GOG Galaxy\Games\Broken Sword - Shadow of the Templars"

...and got an error saying "Failed to load game database."

Any suggestions would be greatly appreciated!
This question / problem has been solved by Ice_Mageimage
I am quite sure you can't track time of manually added games.

Try not adding them manually but let Galaxy scan for GOG games in their parent directory.
avatar
cinematic6436: /gameId=51141994713589530
Try putting generic_ in front of the number and see if that works.

I wouldn't expect "Scan for GOG Games" do yield any results. These games are extras for other products and not part of the GOG catalog themselves.
I don't think adding the game manually works either, the only version that shows up in search in Galaxy is the Director's Cut.
avatar
cinematic6436: /gameId=51141994713589530
avatar
Ice_Mage: Try putting generic_ in front of the number and see if that works.

I wouldn't expect "Scan for GOG Games" do yield any results. These games are extras for other products and not part of the GOG catalog themselves.
You did it! I thought it didn't work at first because I only played for a couple of minutes, but after 5 minutes of gameplay each, the time's now accumulating under "Played." Thank you!

One last thing -- is there a way to reset how much time has been played back to zero?
avatar
cinematic6436: One last thing -- is there a way to reset how much time has been played back to zero?
There's no option to do that in GOG Galaxy. But since these games aren't part of the GOG catalog, it may be enough to manually edit your local database.

1. Exit GOG Galaxy.
2. Create a backup copy of the C:\ProgramData\GOG.com\Galaxy\storage folder for safekeeping.
3. Use something like SQLite Browser to open the galaxy-2.0.db file.
4. On the Browse Data tab, select the GameTimes table.
5. Find the game in question by the releaseKey column. It should be the same as the value of the gameId= shortcut parameter.
6. Double-click the value of the respective minutesInGame column to edit it.

Edit:
avatar
cinematic6436: Thank you!
You're welcome.
Attachments:
Post edited April 24, 2023 by Ice_Mage
avatar
cinematic6436: One last thing -- is there a way to reset how much time has been played back to zero?
avatar
Ice_Mage: There's no option to do that in GOG Galaxy. But since these games aren't part of the GOG catalog, it may be enough to manually edit your local database.

1. Exit GOG Galaxy.
2. Create a backup copy of the C:\ProgramData\GOG.com\Galaxy\storage folder for safekeeping.
3. Use something like SQLite Browser to open the galaxy-2.0.db file.
4. On the Browse Data tab, select the GameTimes table.
5. Find the game in question by the releaseKey column. It should be the same as the value of the gameId= shortcut parameter.
6. Double-click the value of the respective minutesInGame column to edit it.

Edit:
avatar
cinematic6436: Thank you!
avatar
Ice_Mage: You're welcome.
It looks like only the typical 10-digit GOG game IDs are in that database. Nothing starts with "generic_" or shows either of the 17-digit generic IDs.

Would unchecking "Game time tracking" in Settings>Game Features, playing for the already-recorded amount of time, then re-checking it basically have the same result I'm looking for?
Post edited April 24, 2023 by cinematic6436
avatar
cinematic6436: Would unchecking "Game time tracking" in Settings>Game Features, playing for the already-recorded amount of time, then re-checking it basically have the same result I'm looking for?
I suppose so.
Sometimes it'S good to be wrong :)
hi, I've just tried this trick, it didn't work for me.

I exported an SQL file to check if playtime was in another table, and it is also in GamePieces Table !
I edited playtime in both table, but when restartint GOG it still somehow restore the wrong playtime :( .

If I restart while offline, playtime is ok, but the playtime seems not increasing when playing. And as soon as I go online, the previous/wrong playtime is retrieved :( .

Is there anyway to force the local playtime over the "GOG cloud" ?