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
vv221: What’s the distribution you’re using?
On Debian it’s as simple as running 'apt-get install lgogdownloader' as root.
avatar
Maxvorstadt: I`m using Mint 18.1 "Serena" with Mate desktop.
I can confirm that it is in the repositories in Mint too, as I'm using the exact same distro as Maxvorstadt (down to the de-only difference is that mine is in Greek) -just checked with synaptic. However, the version it has is 2.26-1ubuntu1, so it's rather quite behind the current one, that appears to be 3.2. So, there still is a problem if someone wants to use the new version as soon as it becomes available...

P.S. I personally don't use this program though, as I don't download games all that often, and usually go to places with faster internet connection to do the downloading...
avatar
Sude: So I cleaned up large part the code and pushed the current code to git.

It has lots of changes
$ git diff --cached --shortstat
18 files changed, 1491 insertions(+), 702 deletions(-)

https://github.com/Sude-/lgogdownloader/commit/f2e8dde

Website login code was changed to Galaxy login.
You probably want to --login to generate Galaxy login tokens.
Galaxy login tokens are saved to $XDG_CONFIG_HOME/lgogdownloader/galaxy_tokens.json

Config is now global in "Globals" namespace. I'm planning on splitting the config to smaller individual parts so this is probably going to change in the future.

I added 2 options to test some galaxy features. They are hidden from --help text so users don't think these are final or even working properly.
--galaxy-show-builds "product_id" - shows game builds for product id
--galaxy-show-builds "product_id/build_index" - shows some more info about specified game build

--galaxy-install "product_id" - installs the first build for product id (same as "product_id/0")
--galaxy-install "product_id/build_index" - installs a specified build, you can get the build index with --galaxy-show-builds

--list-details shows the numerical product id that you can use with --galaxy-show-builds and --galaxy-install

Galaxy support is limited to only English language Windows builds.
Only generation 2 builds are supported. GOG hasn't updated many older games to generation 2 builds yet. So expect to see "Only generation 2 builds are supported currently" error message a lot when testing this.
I haven't tested if this works with DLCs. Most likely it fails to install DLCs or just crashes when it encounters one.

It can't resume partial file downloads at this moment.

New dependencies:
boost-iostreams
Hi there, thanks for doing all this, it looks like a lot of time. I have a problem, I was able to use lgogdownloader for a while and now it just seems impossible for different reasons. I've taken some lessons but to be honest I'm baffled by most of the coding and don't even know how to apply it. When I switched from 14.04 to 16.04 it all went to Heilheim and installing back 14.04 doesn't allow me to install a lot of i386 libraries nor it allows me to use lgogdownloader.
This is what I get:
alfonso@alfonso:~$ lgogdownloader --login
Email: alfonso.1236@gmail.com
Password:
HTTP: Login successful
API: Login successful
*** Error in `lgogdownloader': double free or corruption (fasttop): 0x0000000001f99fc0 ***
Abortado (`core' generado)
alfonso@alfonso:~$

I've read what you've posted on this thread, should I try to copy that code into gedit or iv? I'm lost, please help me.
avatar
AAAlfonz: Hi there, thanks for doing all this, it looks like a lot of time. I have a problem, I was able to use lgogdownloader for a while and now it just seems impossible for different reasons. I've taken some lessons but to be honest I'm baffled by most of the coding and don't even know how to apply it. When I switched from 14.04 to 16.04 it all went to Heilheim and installing back 14.04 doesn't allow me to install a lot of i386 libraries nor it allows me to use lgogdownloader.
This is what I get:
alfonso@alfonso:~$ lgogdownloader --login
Email: alfonso.1236@gmail.com
Password:
HTTP: Login successful
API: Login successful
*** Error in `lgogdownloader': double free or corruption (fasttop): 0x0000000001f99fc0 ***
Abortado (`core' generado)
alfonso@alfonso:~$

I've read what you've posted on this thread, should I try to copy that code into gedit or iv? I'm lost, please help me.
Build a debug build and get a backtrace from it with gdb

wget https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz
tar -xvzf lgogdownloader-3.2.tar.gz
cd lgogdownloader-3.2
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
make
gdb ./lgogdownloader
run --login
when it crashes type "bt" and copy the output of it here
Hello, guys.

Thanks Sude for all your great work.

I wrote a simple GUI client that uses lgogdownloader. If anyone interested you can find it here:
Hi Sude,

Thanks for this awesome tool!

I have successfully downloaded a lot of games. However some files fail to download:

$ lgogdownloader --download --game the_witcher_3_wild_hunt_game_of_the_year_edition_game --directory <dir>

Some example output:

2017-Apr-06 16:27:27 [Thread #0] Begin download: setup_witcher3_en_goty_2.0.0.51-5.bin
2017-Apr-06 16:27:27 [Thread #3] Download complete (Failure when receiving data from the peer): setup_witcher3_en_goty_2.0.0.51-3.bin
2017-Apr-06 16:27:27 [Thread #3] Begin download: setup_witcher3_en_goty_2.0.0.51-6.bin
2017-Apr-06 16:27:27 [Thread #1] Download complete (Failure when receiving data from the peer): setup_witcher3_en_goty_2.0.0.51-2.bin
2017-Apr-06 16:27:27 [Thread #1] Begin download: setup_witcher3_en_goty_2.0.0.51-7.bin
2017-Apr-06 16:27:28 [Thread #2] Download complete (Failure when receiving data from the peer): setup_witcher3_en_goty_2.0.0.51-4.bin
2017-Apr-06 16:27:28 [Thread #2] Begin download: setup_witcher3_en_goty_2.0.0.51-8.bin
2017-Apr-06 16:27:28 [Thread #0] Download complete (Failure when receiving data from the peer): setup_witcher3_en_goty_2.0.0.51-5.bin

This seems to happen randomly for some games and they never complete downloading.

Am I doing something wrong ?

Edit:

I am running Arch Linux with version 3.2 from the AUR:

$ lgogdownloader --version
LGOGDownloader 3.2

I ran the command you requested in response to nstgc's post:

$ lgogdownloader --download --game the_witcher_3_wild_hunt_game_of_the_year_edition_game --directory <dir> --repair --verbose

I can't post links yet so:

stdout: pastebin dot com /bMYa61C0
stderr: pastebin dot com /KvC9QMwC

Thanks!
Post edited April 06, 2017 by Mezenir
Hi Sude,

would it be possible to add an option to lgogdownloader to preserve the timestamps of downloaded files. Apparently GOG's interface allows to retrieve that information as files downloaded with wget keep their original timestamp.
would be really neat, if the timestamps are preserved on downloading.

I would suggest that if an already correctly downloaded file would not be redownloaded, but lgogdownloader would just adjust the timestamp.
high rated
avatar
eiii: Hi Sude,

would it be possible to add an option to lgogdownloader to preserve the timestamps of downloaded files. Apparently GOG's interface allows to retrieve that information as files downloaded with wget keep their original timestamp.
avatar
coffeecup: would be really neat, if the timestamps are preserved on downloading.

I would suggest that if an already correctly downloaded file would not be redownloaded, but lgogdownloader would just adjust the timestamp.
6b8d5ff Preserve timestamps
For some reason lgogdownloader is not showing The Witcher 3 with --list.
Post edited June 08, 2017 by shmerl
Hey,

I was wondering if it's possible to set different language options for different games. I prefer playing games in the original language, Which would be German for Gothic or Deponia for example.

greetings, SIlly

Edit: Nevermind, that's all well possible
Post edited June 11, 2017 by sillyname2
avatar
Sude: 6b8d5ff Preserve timestamps
Thank you very much!

I almost had missed this because of the Summer Sale. I probably will try it out at the end of the sale. As far as I can see it does not require an additional option and is just the standard behavior now, right?
avatar
AAAlfonz: Hi there, thanks for doing all this, it looks like a lot of time. I have a problem, I was able to use lgogdownloader for a while and now it just seems impossible for different reasons. I've taken some lessons but to be honest I'm baffled by most of the coding and don't even know how to apply it. When I switched from 14.04 to 16.04 it all went to Heilheim and installing back 14.04 doesn't allow me to install a lot of i386 libraries nor it allows me to use lgogdownloader.
This is what I get:
alfonso@alfonso:~$ lgogdownloader --login
Email: alfonso.1236@gmail.com
Password:
HTTP: Login successful
API: Login successful
*** Error in `lgogdownloader': double free or corruption (fasttop): 0x0000000001f99fc0 ***
Abortado (`core' generado)
alfonso@alfonso:~$

I've read what you've posted on this thread, should I try to copy that code into gedit or iv? I'm lost, please help me.
avatar
Sude: Build a debug build and get a backtrace from it with gdb

wget https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz
tar -xvzf lgogdownloader-3.2.tar.gz
cd lgogdownloader-3.2
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
make
gdb ./lgogdownloader
run --login
avatar
Sude: when it crashes type "bt" and copy the output of it here
Thanks Sude, to be honest it didn't work, I think it was my kernel, I had to install cmake and it didn't help much at first. I ended up deleting every file regarding lgogdownloader, and made a fresh install. Now the downloader is working fine, but when I download the witcher it doesn't download the full shell and it's not letting me install much... I don't know man I'm gonna make a fresh install with ubuntu 16.04 and will work from there, see what happens. Thanks.
Hey SUDE, long time... anyway, I'm having issues again after a fress ubuntu 16.04 install. I was only able to install lgogdownloader through the ewbud8 ppa since it doesn't let me install the 3.2 version. Using the ppa I keep getting a failed login, like so:

Timeout was reached
Failed to find url for login form
Failed to get login token
HTTP: Login failed

which wasn't happening when I was using ubuntu 14.04 but I started having too many graphics issues and kernel issues to so, I updated. Not sure what's going on and hope you can help me, now I have 4 games and only been able to download and play one, grim fandango.

I get this when I try to run the wget:

.2.tar.gz
--2017-06-25 11:28:25-- https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz
Resolviendo sites.google.com (sites.google.com)... 172.217.8.110
Conectando con sites.google.com (sites.google.com)[172.217.8.110]:443... conectado.
Petición HTTP enviada, esperando respuesta... 302 Moved Temporarily
Ubicación: https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attredirects=0 [siguiente]
--2017-06-25 11:28:40-- https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attredirects=0
Reutilizando la conexión con sites.google.com:443.
Petición HTTP enviada, esperando respuesta... 302 Moved Temporarily
Ubicación: https://ec615f07-a-62cb3a1a-s-sites.googlegroups.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attachauth=ANoY7crbnbXccTllFu4gpSwvkUDz4Ev5F6VV1RUNm58uyNLwj0GMByXQuQ_WZ3UwMM-oYvtclyhHh8Tj83_t5GIKSsy2Cq7MRVPpVwdo_kt-1py9RI2VPZaSLGrT1jUO0byLNZunG6pQmLBt1gwdSvSqNHbVBHDZYb7dNh5RKh5czRCiUrDO8MDgGFRdgzN36u6TdzhZFAzYvhtlHCD9oH1rJj-_ZUXEZtyIhTDavi1kq_ZwzJvXuFo%3D&amp;attredirects=0 [siguiente]
--2017-06-25 11:28:40-- https://ec615f07-a-62cb3a1a-s-sites.googlegroups.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attachauth=ANoY7crbnbXccTllFu4gpSwvkUDz4Ev5F6VV1RUNm58uyNLwj0GMByXQuQ_WZ3UwMM-oYvtclyhHh8Tj83_t5GIKSsy2Cq7MRVPpVwdo_kt-1py9RI2VPZaSLGrT1jUO0byLNZunG6pQmLBt1gwdSvSqNHbVBHDZYb7dNh5RKh5czRCiUrDO8MDgGFRdgzN36u6TdzhZFAzYvhtlHCD9oH1rJj-_ZUXEZtyIhTDavi1kq_ZwzJvXuFo%3D&amp;attredirects=0
Resolviendo ec615f07-a-62cb3a1a-s-sites.googlegroups.com (ec615f07-a-62cb3a1a-s-sites.googlegroups.com)... falló: Fallo temporal en la resolución del nombre.
wget: no se pudo resolver la dirección del equipo “ec615f07-a-62cb3a1a-s-sites.googlegroups.com”

help please
avatar
AAAlfonz: ...
Judging by that wget output, there may be something wrong with either your DNSs or your ISP in general.

I've just tried it and had no problem resolving that googlegroups.com URL:
$ wget -c https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz
--2017-06-25 20:48:26-- https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving sites.google.com... 216.58.210.174, 2a00:1450:4003:804::200e
Connecting to sites.google.com|216.58.210.174|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attredirects=0 [following]
--2017-06-25 20:48:27-- https://sites.google.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attredirects=0
Reusing existing connection to sites.google.com:443.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ec615f07-a-62cb3a1a-s-sites.googlegroups.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attachauth=ANoY7crQ9bBalBzrUMatfllSuHNJs67N9qa00K-RIc5Zdyg4Co4jNd0627u2rVpV8EUPEmXciEYWApBxImcUGCQ7703rACf42AUAgDMUOt02tKbRJi7oSwYd9BtMuXvn6eAQqUsdDhLpOrzQaeuz2AXj12nb94lHK025W_vDzRG9_z6-CR7Ja8YDpUvsaVOBY4gR4m6dot5uCOUOvnqGj-5Yo8Bl4-ybXwzJDCOofRfbzK1ra-2d6nQ%3D&amp;attredirects=0 [following]
--2017-06-25 20:48:27-- https://ec615f07-a-62cb3a1a-s-sites.googlegroups.com/site/gogdownloader/lgogdownloader-3.2.tar.gz?attachauth=ANoY7crQ9bBalBzrUMatfllSuHNJs67N9qa00K-RIc5Zdyg4Co4jNd0627u2rVpV8EUPEmXciEYWApBxImcUGCQ7703rACf42AUAgDMUOt02tKbRJi7oSwYd9BtMuXvn6eAQqUsdDhLpOrzQaeuz2AXj12nb94lHK025W_vDzRG9_z6-CR7Ja8YDpUvsaVOBY4gR4m6dot5uCOUOvnqGj-5Yo8Bl4-ybXwzJDCOofRfbzK1ra-2d6nQ%3D&amp;attredirects=0
Resolving ec615f07-a-62cb3a1a-s-sites.googlegroups.com... 108.177.15.137, 2a00:1450:400c:c0c::89
Connecting to ec615f07-a-62cb3a1a-s-sites.googlegroups.com|108.177.15.137|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68438 (67K) [application/x-gzip]
Saving to: ‘lgogdownloader-3.2.tar.gz’

lgogdownloader-3.2.tar.gz 100%[========================================================================================================= ============>] 66.83K 307KB/s in 0.2s

2017-06-25 20:48:28 (307 KB/s) - ‘lgogdownloader-3.2.tar.gz’ saved [68438/68438]
avatar
AAAlfonz: ...
Resolviendo ec615f07-a-62cb3a1a-s-sites.googlegroups.com (ec615f07-a-62cb3a1a-s-sites.googlegroups.com)... falló: Fallo temporal en la resolución del nombre.
yep, like muntdefems already said it looks like a dns error. Question is do you write your posts with said ubuntu? then that's weird because I don't think you can use the internet at all without resolving dns queries.
Anyway, just as a try you could try using the google domain name servers like so:

sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf
Post edited June 25, 2017 by mchack