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 orOpera

×
arrow-down2arrowcart2close4fat-arrow-leftfat-arrow-rightfeedbackfriends2happy-facelogo-gognotificationnotifications-emptyownedremove-menusad-facesearch2wishlist-menuwishlisted2own_thingsheartstar
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