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
Sude: I forgot to mention that ignorelist support for --galaxy-install is already implemented.
I never used it myself so I actually forgot that I implemented it 6 years ago (672e6f8) xD
Ah, got it. Thanks again!
avatar
Sude: 3a5ebd1 Add options to select blacklist and ignorelist file
956e1f3 Add blacklist support for --galaxy-install
Ignore list seems to work fine! But something weird is going on with blacklist and galaxy update.

For example:

lgogdownloader --galaxy-platform w --delete-orphans --subdir-galaxy-install blade_of_darkness --galaxy-install 1176525525 --blacklist=blacklist.conf --verbosity 2

...
Skipping blacklisted file: ./blade_of_darkness/__redist/DirectX/Aug2009_XACT_x64.cab

This one got skipped fine.

But it still downloaded a ton of others like for example:

blade_of_darkness/__redist/DirectX/APR2007_XACT_x64.cab

And etc.

My blacklist file: blacklist.conf

Rp blade_of_darkness/__redist
Rp blade_of_darkness/__redist/.*
Post edited January 14, 2024 by shmerl
avatar
Sude: 3a5ebd1 Add options to select blacklist and ignorelist file
956e1f3 Add blacklist support for --galaxy-install
avatar
shmerl: Ignore list seems to work fine! But something weird is going on with blacklist and galaxy update.

For example:

lgogdownloader --galaxy-platform w --delete-orphans --subdir-galaxy-install blade_of_darkness --galaxy-install 1176525525 --blacklist=blacklist.conf --verbosity 2

...
Skipping blacklisted file: ./blade_of_darkness/__redist/DirectX/Aug2009_XACT_x64.cab

This one got skipped fine.

But it still downloaded a ton of others like for example:

blade_of_darkness/__redist/DirectX/APR2007_XACT_x64.cab

And etc.

My blacklist file: blacklist.conf

Rp blade_of_darkness/__redist
Rp blade_of_darkness/__redist/.*
a7de153 Fix blacklist for --galaxy-install
avatar
Sude: a7de153 Fix blacklist for --galaxy-install
Side question, but is it safe to iterate over a vector while erasing elements from it? I thought it's invalid and can unpredictably blow up in general.

UPDATE:

Ah, that's exactly it! You can't just do ++it or reuse "it" in any way if you are erasing vector elements. You need to assign "it" to the result of erase if you want to continue iterating.

https://en.cppreference.com/w/cpp/container/vector/erase

> Iterators (including the end() iterator) and references to the elements at or after the point of the erase are invalidated.
...
> Return value: Iterator following the last removed element.

So in your case you should do:

it = items.erase(it);

Instead of simply doing

items.erase(it);
Post edited January 15, 2024 by shmerl
avatar
Sude: a7de153 Fix blacklist for --galaxy-install
avatar
shmerl: Side question, but is it safe to iterate over a vector while erasing elements from it? I thought it's invalid and can unpredictably blow up in general.

UPDATE:

Ah, that's exactly it! You can't just do ++it or reuse "it" in any way if you are erasing vector elements. You need to assign "it" to the result of erase if you want to continue iterating.

https://en.cppreference.com/w/cpp/container/vector/erase

> Iterators (including the end() iterator) and references to the elements at or after the point of the erase are invalidated.
...
> Return value: Iterator following the last removed element.

So in your case you should do:

it = items.erase(it);

Instead of simply doing

items.erase(it);
That's true. 9779a0e assigns the iterator.
avatar
Sude: That's true. 9779a0e assigns the iterator.
Thanks, just tested it and it works nicely!
Has anyone compiled LGOGDownloader to run in Windows, and what does it run like if so?

The reason I ask, is because I have been advised that LGOGDownloader might be able to overcome my current download speeds with GOG, as it can supposedly specify other servers to use.

I am primarily a Windows user, and don't have an active install of any Linux flavor right now. That said, I always download Linux versions of the games I get from GOG, if available. And in recent times have been getting MAC versions as well, as my daughter uses that.
avatar
Timboli: Has anyone compiled LGOGDownloader to run in Windows, and what does it run like if so?
I've used it in WSL2.
I don't remember any problems.
avatar
brouer: I've used it in WSL2.
I don't remember any problems.
Thanks for that.
I've never done the WSL2 thing.

Sorry for the later reply, but for some reason I did not get a notification for this thread.
avatar
Timboli: I've never done the WSL2 thing.
Definitely give it a try if you have a Windows PC but actually prefer Linux user space.

WSL2 is so good, I keep my work laptop on Windows even though I don't have to.
That way I get the advantages of Windows Hello face-unlocking and a better Slack and Zoom experience. (They're still both shite. Just not as shite as on Linux.)
And I still have a full Linux command line with all the tools I'm used to there.

That said, Windows 11's desktop experience is increasingly annoying me in all sorts of little ways.
The day I hate it more than Gnome, I'll switch. But with the way Gnome is progressing, that day may never come. :D
avatar
brouer: Definitely give it a try if you have a Windows PC
My issue is, that I want to continue using my GUI or frontend for gogcli.exe, but maybe leverage LGOGDownloader for the downloading of larger files. I am not keen, to yet build another GUI, as I have already done that twice, first time was for gogrepo.py.

And of course, the programming language I use, AutoIt, is not going to work in a Linux environment anyway. So what I am really after, is a conversion of LGOGDownloader to a Windows executable.

At best, I am a good hobby programmer when it comes to using AutoIt, but not very good with other languages, else I would have built my own program for the GOG SDK or API.

I remain hopeful, that at some point Magnitus might add access etc to other GOG servers in gogcli.exe. Until then, I am forced to use Free Download Manager 5 for large game files from GOG. I can still verify them easy enough with my GUI, but it is a bunch of extra work, that I could do without.
avatar
Timboli: And of course, the programming language I use, AutoIt, is not going to work in a Linux environment anyway. So what I am really after, is a conversion of LGOGDownloader to a Windows executable.
Ah.
Well, I can see two options, then.

1. You can run Linux binaries from Windows by passing your Linux command to wsl.exe.
Whether you can capture the output, if needed, I don't know. Never tried.

2. You could install MSYS2 and try to build LGOGDownloader in that environment. There you have a lot of the utilities and libraries you'd have in a native Linux system, but it all compiles to real, native Windows executables.
I can't guarantee LGOGDownloader will build under MSYS2, but I've written a few utilities with MSYS2 myself with fairly extensive dependencies in the past.
avatar
Sude: snip
Hello Sude. Hope you're fine.
Im trying to download 'The Witcher Enhanced Edition' with the command:
lgogdownloader --download --game the_witcher --exclude p,e
But it end up trying to download all files/games/goodies with "the_witcher" in their name present in my library.

Is there any way I can force the program to download only one game of all the ones with the same name?
I remember being able to do that before with the same command, but now its not working. It seems to me that its why GOG changed something in their backend with some game names.
avatar
.Keys: (…)
If you only want to download content related to the first The Witcher game, you should use --game '^the_witcher$'.
Post edited February 22, 2024 by vv221
avatar
.Keys: (…)
avatar
vv221: If you only want to download content related to the first The Witcher game, you should use --game '^the_witcher$'.
Thank you very much!