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

×
avatar
Kalanyr: Hmm, there shouldn't be a dependency on f-string without an import for 2.7 since it doesn't exist in python 2. So I'm confused now

ETA - That's a mistake on my part. I need to fix that. But it should still work fine on Python 3.10
avatar
anarion321: Apologies, I don't think it's your mistake, I just uninstall all of my python and reinstalled only 3.10, seems to work now, so it must've been something bad at my end.

Only issue now it's that I have to reinstall multiple libreries and the OpenSSL must be a thrid party of another or something, cause pip don't find it

F:\GoG>pip3 install OpenSSL
ERROR: Could not find a version that satisfies the requirement OpenSSL (from versions: none)
ERROR: No matching distribution found for OpenSSL

But that's an issue about reinstalling libraries and such, I'll manage when I can.

Thanks a lot again and apologies for the trouble.
IIRC the pip name is pyOpenSSL
If you have gogrepoc handling extra updates strictly you'll get some weird messages on Darkest Dungeon 2, this is because for some reason it (and it's DLC) have completely empty extra DLC items, that just have a name, the messages are weird but harmless.
avatar
Kalanyr: [...]
[Unrelated to the quoted message but I wanted you to be notified of this message so I hit reply on one of your messages.]

You might want to check if gogrepoc can still download XML files because GOG changed something in its backend. Now you only have to follow one redirect instead of two to get the XML.

Depending on how you programmed the function to get the XMLs this might require a change in the code.
avatar
Kalanyr: [...]
avatar
Geralt_of_Rivia: [Unrelated to the quoted message but I wanted you to be notified of this message so I hit reply on one of your messages.]

You might want to check if gogrepoc can still download XML files because GOG changed something in its backend. Now you only have to follow one redirect instead of two to get the XML.

Depending on how you programmed the function to get the XMLs this might require a change in the code.
Thanks for the heads-up.
It shouldn't matter, I let the requests library handle background redirects transparently and only deal with the destination but I'll double check.
avatar
Kalanyr: Thanks for the heads-up.
It shouldn't matter, I let the requests library handle background redirects transparently and only deal with the destination but I'll double check.
It will only impact you if you paused in the chain of redirections to get the downloaded file's name (like I did). Otherwise, if you just follow the redirection until the end to download, it shouldn't impact you I think.

If people using your tool haven't complained that the metadata isn't getting retrieved, then you should be fine.
Post edited August 28, 2024 by Magnitus
Hi, does anyone else have problems running gogrepo.py? I get an error "failed to load product data (are you still logged in?)". After some digging, I found out that URL login.gog.com/login_check, referenced in the script, returns 404 not found error.

If I login through login.gog.com/login I get redirected to login.gog.com/login_check so it seems that the URL is OK. I tried to log in again, but I get this error. Does anyone have any idea what is wrong?
It worked OK in the middle of August this year.

19:11:51 | attempting gog login as 'user@domain' ...
19:11:53 | fatal...
Traceback (most recent call last):
File "D:\Documents\GamesGOG\gogrepo.py", line 1166, in <module>
main(process_argv(sys.argv))
File "D:\Documents\GamesGOG\gogrepo.py", line 1138, in main
cmd_login(args.username, args.password)
File "D:\Documents\GamesGOG\gogrepo.py", line 550, in cmd_login
with request(login_data['auth_url'], delay=0) as page:
File "D:\Documents\GamesGOG\gogrepo.py", line 167, in request
req = Request(url, data=enc_args)
File "C:\Program Files\Python310\lib\urllib\request.py", line 322, in __init__
self.full_url = url
File "C:\Program Files\Python310\lib\urllib\request.py", line 348, in full_url
self._parse()
File "C:\Program Files\Python310\lib\urllib\request.py", line 377, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'None'
Post edited September 27, 2024 by DSmidgy
high rated
avatar
DSmidgy: File "D:\Documents\GamesGOG\gogrepo.py", line 1166, in <module>
main(process_argv(sys.argv))
The gogrepo.py script has been unsupported for years.

What you are looking for is:
https://github.com/Kalanyr/gogrepoc

@Kalanyr: I think a new gogrepoc thread with you as the OP is long overdue.
Post edited September 27, 2024 by mrkgnao
This script works. Thank you.
avatar
DSmidgy: File "D:\Documents\GamesGOG\gogrepo.py", line 1166, in <module>
main(process_argv(sys.argv))
avatar
mrkgnao: The gogrepo.py script has been unsupported for years.

What you are looking for is:
https://github.com/Kalanyr/gogrepoc

@Kalanyr: I think a new gogrepoc thread with you as the OP is long overdue.
I really wanted to have a clean break ready first but given my workload and that the old script is broken now you're probably correct. I'm going to busy for the next couple of weeks but I'll put something together then.

In the meanwhile I guess if there's anything important you think needs to go in the first post toss it at me here.
Okay, I'm an idiot who's never used anything like this before. Does anyone have detailed step by step instructions on how to use this script to bulk download all offline installers? I only need to do that and I have a separate hard drive to install all my games onto, but I'll need instructions on how this stuff works. Thanks.
avatar
gameragodzilla: Does anyone have detailed step by step instructions on how to use this script
I'll copy what I wrote on Discord for another user.

For the first setup I used this:

python -m pip install --upgrade pip
pip install html5lib html2text pyOpenSSL requests six
gogrepoc.py login

--

Main usage
(customize all these according to your needs)
(I separate games from extras)

1- create\update the manifest ("-full" to do from scratch, but don't use it too frequently or during sales)
"skiphidden" avoids games you hid in your Gog library.

gogrepoc.py update -os windows -lang en -resumemode resume -nochangelogs -skiphidden -full


2- move old versions (if they exist) to the !orphaned dir, where you can choose to keep or delete them
"-dryrun" is a test mode that doesn't change anything. You can skip it if you prefer
You can decide if to keep or delete the orphaned stuff (I backup a few cases or patches, but delete the rest)

gogrepoc.py clean "G:\Games GOG" -dryrun


3- get the games (I skip older patches and 32 bit extra installers)

gogrepoc.py download "G:\Games GOG" -os windows -lang en -skipextras -skipgalaxy -covers -skipfiles patch_* setup_*_32_* setup_*_(32bit)* -dryrun


4- repeat the same process for extras, if needed
I use " -skipfiles" also here to avoid various stuff (e.g. other languages), but I omitted it here since it's quite long

gogrepoc.py clean "H:\Gog extras" -dryrun
gogrepoc.py download "H:\Gog extras" -dryrun -os windows -lang en -skipgames


(5)- check your files
I rarely use this because it's an extremely long process and it will be moot the next time you update
I don't recall if it needs params

gogrepoc.py verify "G:\Games GOG"
avatar
gameragodzilla: Okay, I'm an idiot who's never used anything like this before. Does anyone have detailed step by step instructions on how to use this script to bulk download all offline installers? I only need to do that and I have a separate hard drive to install all my games onto, but I'll need instructions on how this stuff works. Thanks.
My scheme is here:
https://www.gog.com/forum/general/gogrepopy_python_script_for_regularly_backing_up_your_purchased_gog_collection_for_full_offline_e/post3689
avatar
gameragodzilla: Okay, I'm an idiot who's never used anything like this before. Does anyone have detailed step by step instructions on how to use this script to bulk download all offline installers? I only need to do that and I have a separate hard drive to install all my games onto, but I'll need instructions on how this stuff works. Thanks.
avatar
mrkgnao: My scheme is here:
https://www.gog.com/forum/general/gogrepopy_python_script_for_regularly_backing_up_your_purchased_gog_collection_for_full_offline_e/post3689
I have all my games installed via GOG Galaxy since I have a ton of storage. It's mainly the offline installers specifically that I want backed up to a separate hard drive, including patches if I want different versions to play. Seems like the batch files mainly backup the games themselves? Unless I'm being stupid and missing something.
avatar
gameragodzilla: I have all my games installed via GOG Galaxy since I have a ton of storage. It's mainly the offline installers specifically that I want backed up to a separate hard drive, including patches if I want different versions to play. Seems like the batch files mainly backup the games themselves? Unless I'm being stupid and missing something.
They backup all the offline installers, all the patches, and all the bonuses/goodies/extras. Currently configured only for Windows English, but that can be changed.

P.S. The patches will not help you to play different versions because in the vast majority of cases what you get is the latest version of the offline installer and earlier version patches (which cannot be applied to the latest version, as they require an earlier version which is not supplied outside galaxy). In other words, in the vast majority of cases the patches are useless.
avatar
gameragodzilla: I have all my games installed via GOG Galaxy since I have a ton of storage. It's mainly the offline installers specifically that I want backed up to a separate hard drive, including patches if I want different versions to play. Seems like the batch files mainly backup the games themselves? Unless I'm being stupid and missing something.
avatar
mrkgnao: They backup all the offline installers, all the patches, and all the bonuses/goodies/extras. Currently configured only for Windows English, but that can be changed.

P.S. The patches will not help you to play different versions because in the vast majority of cases what you get is the latest version of the offline installer and earlier version patches (which cannot be applied to the latest version, as they require an earlier version which is not supplied outside galaxy). In other words, in the vast majority of cases the patches are useless.
The patches are something of an artifact of the days when GOG wouldn't necessarily upload new full game installers unless with every patch. I kinda wish they'd go back to it sometimes ( it's a lot more bandwidth efficient and the organisational hassle is relatively small, it's really annoying to have to download the 100+ GB of BGIIII *again* for a 44 MB patch ).