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

×
The title says it all. Whenever I try to run innoextract on the setup files for Gothic or Gothic 2, I get this error:

boost::filesystem::directory_iterator::construct: No such file or directory [system:2]

I've also tried using the --gog option but to no avail. The version of innoextract that I'm using is 1.9.

I'm not entirely sure if there are any other game titles with which this exact issue can be reproduced, but they are the only ones where I've encountered them (I don't own Gothic 3 on GOG, but I'm willing to bet it's the same story with that game too). Could this possibly be fixed by the GOG team anytime soon? Or in case there's nothing wrong with the way these games are packaged by GOG, can somebody report what's the issue on my end?
avatar
eidmar: The title says it all. Whenever I try to run innoextract on the setup files for Gothic or Gothic 2, I get this error:

boost::filesystem::directory_iterator::construct: No such file or directory [system:2]

I've also tried using the --gog option but to no avail. The version of innoextract that I'm using is 1.9.

I'm not entirely sure if there are any other game titles with which this exact issue can be reproduced, but they are the only ones where I've encountered them (I don't own Gothic 3 on GOG, but I'm willing to bet it's the same story with that game too). Could this possibly be fixed by the GOG team anytime soon? Or in case there's nothing wrong with the way these games are packaged by GOG, can somebody report what's the issue on my end?
I just downloaded V1.9 of InnoExtract and put the executable together with the Gothic installer in a directory.. Here is the result.

D:\test>innoextract.exe -g "setup_gothic_1.08k_hotfix_(26654).exe"
Extracting "Gothic" - setup data version 5.6.2 (unicode)
- "app\_work\DATA\scripts\system\"
- "app\Saves\Current\"
Opening "setup_gothic_1.08k_hotfix_(26654)-1.bin"
- "__redist\ISI\scriptinterpreter.exe"
- "manual.pdf" [en-US]
- "Readme.htm" [en-US]
- "Readme_patch_108k.htm" [en-US]
[... List of files to long to post completely...]

Works just fine. Gothic 2 works fine as well.
avatar
eidmar: The title says it all. Whenever I try to run innoextract on the setup files for Gothic or Gothic 2, I get this error:

boost::filesystem::directory_iterator::construct: No such file or directory [system:2]

I've also tried using the --gog option but to no avail. The version of innoextract that I'm using is 1.9.

I'm not entirely sure if there are any other game titles with which this exact issue can be reproduced, but they are the only ones where I've encountered them (I don't own Gothic 3 on GOG, but I'm willing to bet it's the same story with that game too). Could this possibly be fixed by the GOG team anytime soon? Or in case there's nothing wrong with the way these games are packaged by GOG, can somebody report what's the issue on my end?
avatar
Geralt_of_Rivia: I just downloaded V1.9 of InnoExtract and put the executable together with the Gothic installer in a directory.. Here is the result.

D:\test>innoextract.exe -g "setup_gothic_1.08k_hotfix_(26654).exe"
Extracting "Gothic" - setup data version 5.6.2 (unicode)
- "app\_work\DATA\scripts\system\"
- "app\Saves\Current\"
Opening "setup_gothic_1.08k_hotfix_(26654)-1.bin"
- "__redist\ISI\scriptinterpreter.exe"
- "manual.pdf" [en-US]
- "Readme.htm" [en-US]
- "Readme_patch_108k.htm" [en-US]
[... List of files to long to post completely...]

Works just fine. Gothic 2 works fine as well.
Thanks for the quick reply. Well then it seems that the issue might be on my end after all. I forgot to mention that I only tried this on a linux machine. From what the error message says it's possible that there is something wrong with the way the boost library is packaged on my linux distribution (Guix). If there's anyone who could test this on another distro it would be great (I'm too lazy to spin up a VM myself).
Post edited June 17, 2023 by eidmar
Works fine for me on Fedora.

If I had to debug this, I would start by looking at which file it is looking for and failing to find. This is easily done with strace:

strace -f --trace=%file --status=failed innoextract ~/Downloads/setup_gothic_1.08k_hotfix_\(26654\).exe
avatar
clarry: Works fine for me on Fedora.

If I had to debug this, I would start by looking at which file it is looking for and failing to find. This is easily done with strace:

strace -f --trace=%file --status=failed innoextract ~/Downloads/setup_gothic_1.08k_hotfix_\(26654\).exe
Thank you! With the help of the command you provided I was able to figure out 2 things:

1) When I initially tried to extract the games, I didn't provide a full path to the exes. For some reason this gave me an error that wasn't really all that useful. After the full path was provided, the error message became much more clear:

Extracting "Gothic" - setup data version 5.6.2 (unicode)
- "app/_work/DATA/scripts/system/"
- "app/Saves/Current/"
Stream error while extracting files!
└─ error reason: could not open slice 0: "setup_gothic_1.08k_hotfix_-1.bin": iostream error
If you are sure the setup file is not corrupted, consider
filing a bug report at https://innoextract.constexpr.org/issues
Done with 1 error.

2) After analyzing this error message and the command you provided I finally realized that the filenames for my *.exe and *.bin files didn't quite match. For some reason, while downloading the *.exe file, my browser omitted the numeric string inside the parentheses and so the filename became setup_gothic_1.08k_hotfix_.exe instead of setup_gothic_1.08k_hotfix_(26654).exe. After renaming the file to what it should have originally been, everything finally went smoothly and without any errors.

Thanks again to both of you. Much appreciated.
Post edited June 17, 2023 by eidmar
With GOG's flawed update system, what can also happen sometimes, when you download a game with several installer files, is that your download can be screwed if the update occurred in the midst of you downloading. I've seen this happen a few times, and you really need to be paying attention or your downloads are worthless.

Say for instance, you download a game that has seven BIN files and an EXE.
By the time you get to download the 4th BIN file for instance, GOG have updated the game, and so BIN files 4, 5, 6 & 7 will have different version names and not be compatible with the first few files you downloaded (EXE, BIN files 1, 2 & 3).

The only solution, providing you've noticed the issue, is to download the EXE and BIN files 1, 2 & 3 again. If you haven't detected the change due to an update, and just backup the downloaded files for installing at a later date, your backup is likely worthless, without doing more downloading ... by which time it might be a different version again, and so your previous backup is entirely worthless.

The moral of the story, is to always pay attention when downloading the Offline Installers ... check the versions of files match for all.
Post edited June 18, 2023 by Timboli