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
eiii: Thanks!
I fixed a typo there. It should be (after you run cat):

rm pack0.dzip.split*

avatar
ricki42: I just tested on Xubuntu 15.04, also latest nvidia drivers, no problems. Installer started, I chose a directory, it installed. When running, it initially complained about some missing libraries, so I went to the store page and copy-pasted the libraries listed under system requirements and installed those. Started just fine after that. Only played a minute or two right now.
Yep, we already figured out that post installation script merges three files there, and if you just extract the package without the installer running, you'll be left with those split files and the game obviously can't start properly. So from now on, pay attention to post-installation scripts if you don't use the installer.
Post edited August 18, 2015 by shmerl
avatar
shmerl: Yep, we already figured out that post installation script merges three files there, and if you just extract the package without the installer running, you'll be left with those split files and the game obviously can't start properly. So from now on, pay attention to post-installation scripts if you don't use the installer.
Ah, sorry, I misunderstood, I thought someone said the installer didn't work either.
avatar
shmerl: So it should be a common rule to always look in that script for GOG games, to understand what's going on. Normally I'd assume it would have nothing, but TW2 is an exception because it has one huge file, and for some reason they wanted to split it in 3 parts.
Which unfortunately makes the installer require another 10 GB of hard disk space during the installation. Not very smart. I guess they expect or use dumb file systems which cannot handle files larger than 4 GB. But it still doesn't make sense as the installer is already larger than 4 GB, so an old file system already would fail there.
avatar
ricki42: Ah, sorry, I misunderstood, I thought someone said the installer didn't work either.
It indeed does not work for me. But Debian is not officially supported, so ...
Post edited August 18, 2015 by eiii
avatar
shmerl: So it should be a common rule to always look in that script for GOG games, to understand what's going on. Normally I'd assume it would have nothing, but TW2 is an exception because it has one huge file, and for some reason they wanted to split it in 3 parts.
avatar
eiii: Which unfortunately makes the installer require another 10 GB of hard disk space during the installation. Not very smart. I guess they expect or use dumb file systems which cannot handle files larger than 4 GB. But it still doesn't make sense as the installer is already larger than 4 GB, so an old file system already would fail there.
Therefore I don't think it's the reason. It has to do more with compression I suspect. I.e. they for some reason don't want to have a huge single file inside the archive. May be it increases RAM needed for compression and decompression? I personally don't care about it much (I have 16GB RAM), but may be GOG triggered some cases which exceed minimum system requirements with that package? Just my guess, I have no idea really. Usually you can limit RAM consumption for the decompressor even for huge files, but that can increase decompression time.
Post edited August 18, 2015 by shmerl
At least the game seems to run for me too now. :)

Would have been easier when the programmers would have checked the return code of the open and dropped a message about the missing file. ;)
Wissaner!
aaaaaa
avatar
shmerl: I found it (thanks for pointing it out!). That's somewhat strange. See:

support/postinst.sh

What you need to do is:

cd game/CookedPC
cat pack0.dzip.split* > pack0.dzip
rm pack0.dzip.split*

I have no idea what that was needed for to begin with. Those files are huge and may be they don't want to have one single huge file inside the archive? Or may be Mojosetup doesn't handle that well?
Not a surprise for me, I had to do something similar for my custom DEB packages (splitting pack0.dzip) because of a filesize limitation with the .ar archives used in these packages.
I’d guess something similar happened with the .zip format used for MojoSetup installers.
avatar
vv221: I’d guess something similar happened with the .zip format used for MojoSetup installers.
They should switch to tar.xz really.

By the way, does anyone know the key combination for the Crypt of the Necrodancer to switch to fullscreen mode? I was only able to do it using window actions menu in KDE which is far from optimal. And the game has no fullscreen setting inside.
Post edited August 18, 2015 by shmerl
avatar
shmerl: They should switch to tar.xz really.
I’m not sure about this, but I think that xz-utils isn’t installed by default on Ubuntu LTS.
I don’t know how easy/hard it would be to embed unxz in MojoSetup installers.

Anyway, if they’re going to embed a non-standard archive format (+ unarchiver) in MojoSetup installers, lrzip would be *the* one to go with ;)
http://ck.kolivas.org/apps/lrzip/
avatar
vv221: I’m not sure about this, but I think that xz-utils isn’t installed by default on Ubuntu LTS.
I don’t know how easy/hard it would be to embed unxz in MojoSetup installers.
Probability of that is not any lower than non default pre-installed packages which they list in prerequisites, such s SDL2 or other stuff :) They can easily add xz-utils to that list. And it's a very useful package to have in general, so it's usually installed even if its not a default.

By the way, installers can check for missing prerequisites and report that to the user instead of exiting silently. Mojosetup and other used tools are open source so GOG can improve them if that feature is missing.

I'm not sure about rzip. Is it parallelizable? Current version of xz is multithreaded already (though the version in Debian is very outdated, I tried contacting the maintainer twice already to no avail).
Post edited August 18, 2015 by shmerl
avatar
shmerl: I'm not sure about rzip. Is it parallelizable? Current version of xz is multithreaded already (though the version in Debian is very outdated, I tried contacting the maintainer twice already to no avail).
lrzip, not rzip. lrzip is based on rzip but comes with many improvements.
It’s multithreaded, and from tests I run it seems to beat xz on both compression/decompression speed *and* compression ratio. If you don’t already know lrzip, you really should have a look at the README on the page I linked: there’s chances that you’ll adopt it quickly ;)
Post edited August 18, 2015 by vv221
avatar
vv221: If you don’t already know lrzip, you really should have a look at the README on the page I linked: there’s chances that you’ll adopt it quickly ;)
Sounds interesting. I'll run some benchmarks (using TW2 files ;)) to compare it to parallelized xz on my machine.

Some previous tests results were posted here (note, that xz I used then wasn't parallelized):
https://www.gog.com/wishlist/site/use_better_compression_for_linux_tarballs_for_example_tarxz

(Also, GOG royally messed up wishlist comments, so it might be hard to read them now).
Post edited August 18, 2015 by shmerl
avatar
vv221: I’d guess something similar happened with the .zip format used for MojoSetup installers.
avatar
shmerl: They should switch to tar.xz really.

By the way, does anyone know the key combination for the Crypt of the Necrodancer to switch to fullscreen mode? I was only able to do it using window actions menu in KDE which is far from optimal. And the game has no fullscreen setting inside.
I just use the global hotkeys control panel to bind that KWin action to F11.
avatar
shmerl: I found it (thanks for pointing it out!). That's somewhat strange. See:

support/postinst.sh

What you need to do is:

cd game/CookedPC
cat pack0.dzip.split* > pack0.dzip
rm pack0.dzip.split*
Thanks that worked.