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

×
Why don't you submit these patches for integration?
avatar
coffeecup: Why don't you submit these patches for integration?
I assume you are replying to me. Of course just posting doesn't give my a reply notice, but I obviously monitor this thread, anyway.

Read the first and last paragraphs. Everything I write is in the public domain, so if you care about the changes, you can submit them yourself.. I am not in a comfortable enough position to deal with the hassle.
2darktjm, thanks for info.
updating cache is really faster now :D
I typically run using this command:

lgogdownloader --download --platform w --no-color --no-unicode --save-serials --include all --save-changelogs --report --verbose --directory /mnt/d/_gog_downloads_/

One of the things I noticed is that I may have 3 or 4 versions of an installer in the directory if it has been updated.

Am I missing a command line option to remove older files?
There is not automatic command to remove file.

There is a command to list file on local drive that are not on GOG server. You need to remove files manually.

lgogdownloader --check-orphans
avatar
zahroc: lgogdownloader --download --platform w --no-color --no-unicode --save-serials --include all --save-changelogs --report --verbose --directory /mnt/d/_gog_downloads_/
You can put a lot of those options into ~/.config/lgogdownloader/config.cfg In fact, you should, so tthat you can do other things, like check-orphans, without having to duplicate your entire command line.

Am I missing a command line option to remove older files?
As Kygonn said, there is no automatic way to do this. What I do is semi-automatic:

lgogdownloader --check-orphans >/tmp/orph
# sanity check, in case the last cache update somehow screwed up badly
cat /tmp/orph
while read -r x; do /bin/rm "$x"; done </tmp/orph
Post edited July 13, 2020 by darktjm
yeeeee, sude- is commiting again to master branch :D
First of all - thank you for this tool and all your efforts to maintain/develop it. It's a great piece of code!

I want to make some changes in subdir settings, changing a bit a generic structure of my folders. For any chance - is there any option to make such reorganisation without re-downloading or moving all the existing files manually? Some --repair option being able to "recognize" existing files within a game directory and just move them into a proper subfolder?

edit: ok, I've made a small script to iterate over folders, create subfolders and move files into them, depending on a file's extension
Post edited October 05, 2020 by ciemnogrodzianin
has somebody managed to compile a windows executable (with mingw or cygwin)?
avatar
coffeecup: has somebody managed to compile a windows executable (with mingw or cygwin)?
I thought Windows 10 comes with some sort of Linux subsystem. Or is that just "Pro" versions?
avatar
coffeecup: has somebody managed to compile a windows executable (with mingw or cygwin)?
avatar
darktjm: I thought Windows 10 comes with some sort of Linux subsystem. Or is that just "Pro" versions?
Yes, I also managed it with Ubuntu 18.04 as a subsystem to compile and use lgogdownloader there, with a caveat: lgogdownloader just stops downloading mid-through due suddenly-closed connections. This behaviour is not exhibited on real Linux.

A real quasi-"native" binary with mingw or cygwin would be better,more compact and it would not need to load a whole other operating system for it.

I also tried it to do myself with mingw, but was confused with the whole mingw / msys distribution scheme and gave up. With Visual Studio C++ it is futile due a lack of compatible JSON modules (I got boost working, but not did not find a matching JSON library nor the htmlcxx library).

Today I looked into cywgin, I think if you get HTMLCXX (again) compiled, you will have good cards to get a version built, most other libraries (and CMake) is present there. Did not try it yet.
Post edited October 05, 2020 by coffeecup
avatar
coffeecup: has somebody managed to compile a windows executable (with mingw or cygwin)?
avatar
darktjm: I thought Windows 10 comes with some sort of Linux subsystem. Or is that just "Pro" versions?
You can use WSL on windows to run linux with command line only.
Captcha may be an issu without graphical interface.
As already said, lgogdownloader will build and run under WSL2, but downloading mysteriously fails after some time.

This is also not an option if you don't have Windows 10 (I reluctantly upgraded from 8.1, but there are still die hards not willing to update, I can understand why, but I had to due to Horizon Zero Dawn and Cyberpunk 2077).

Also, if you disable the Windows Store (this is not reversible), you cannot use WSL2 with Windows 10.
Post edited October 05, 2020 by coffeecup
avatar
coffeecup: As already said, lgogdownloader will build and run under WSL2, but downloading mysteriously fails after some time.

This is also not an option if you don't have Windows 10 (I reluctantly upgraded from 8.1, but there are still die hards not willing to update, I can understand why, but I had to due to Horizon Zero Dawn and Cyberpunk 2077).
I use it on WSL 2 with Ubuntu 20.4 and can download game without issu.
I have the problem of "mysteriously fail" on nativ Ubuntu 18.4 32bit : gog terminate my connexion if i try to download my large library. Probably dos attack protection.
avatar
Kygonn: I use it on WSL 2 with Ubuntu 20.4 and can download game without issu.
I have the problem of "mysteriously fail" on nativ Ubuntu 18.4 32bit : gog terminate my connexion if i try to download my large library. Probably dos attack protection.
This is exactly the issue my friend has with Windows 10 + WSL2 (Ubuntu 18.04). Maybe trying it out with the newer Ubuntu fixes the problem.