Frictional Games Forum (read-only)

Full Version: How to unpack installer (or corrupt installer)?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to package Amnesia: AMfP for my distribution (gentoo), but I'm having trouble non-interactively unpacking the files from the installer. This appears to be a makeself 2.1.5 installer, which supports (or is supposed to support) the --tar argument to unpack the files. However, when attempting to do so, I get the following:

Code:
$ sh ~/download/Amnesia\ -\ A\ Machine\ for\ Pigs/AmnesiaAMFP-1.0.0.sh --tar xfv
basename: extra operand ‘A’
Try 'basename --help' for more information.
./
./startmojo.sh
./bin/
./bin/linux/
./bin/linux/x86_64/
./bin/linux/x86_64/guis/
./bin/linux/x86_64/guis/libmojosetupgui_gtkplus2.so
./bin/linux/x86_64/guis/libmojosetupgui_ncurses.so
./bin/linux/x86_64/mojosetup
./bin/linux/x86/
./bin/linux/x86/guis/
./bin/linux/x86/guis/libmojosetupgui_gtkplus2.so
./bin/linux/x86/guis/libmojosetupgui_ncurses.so
./bin/linux/x86/mojosetup

The basename error occurs inside the script - not sure why, but it may be related to this problem. Although some files were extracted, this doesn't include the game data. In fact, it's only about 1 MB total worth of extracted files.

As an alternative, I tried using the --target option to specify where the extract files should be placed:

Code:
$ sh ~/download/Amnesia\ -\ A\ Machine\ for\ Pigs/AmnesiaAMFP-1.0.0.sh --target ~/temp/AmnesiaAMFP-1.0.0
basename: extra operand ‘A’
Try 'basename --help' for more information.
Creating directory ~/temp/AmnesiaAMFP-1.0.0
Verifying archive integrity... All good.
Uncompressing Mojo Setup..............
Collecting info for this system...
Operating system: linux
CPU Arch: x86_64
trying mojosetup in bin/linux/x86_64

But, it again only extracts a small number of files (same as before, with the addition of "frontendstarted"). It tries to kick off the installers, but fails with an error message that states:

PANIC
Failed to start. Is your download incomplete or corrupt?

So, I checked to see if maybe that was the case, but the MD5 checksum for my downloaded installer exactly matches the MD5 checksum provided by Humble Bundle (I purchased this through tthe Humble Store):

bc92782fafc84475dff306906184e060

I can, however, interactively install and play the game just fine (at least through the first level).

So, I'm stuck right now. Is there a bug in the installer that breaks this functionality for some reason? Is the version provided to the Humble store somehow corrupt? Is there some other method I should be using instead to do this?

Would appreciate any feedback. Thanks.
MD5 is correct.

I don't know that much about Linux, but a common problem with the installer in the past has been:
1. There has not been enough free space on temp or where you want to extract it.
2. It needs executable permissions for the temp (or is that writeable, can't 100% remember).

Have you checked the suggestions in this thread? http://www.frictionalgames.com/forum/thread-22830.html
So.. what this installer is, is a "makeself" wrapped mojosetup for 32bit and 64bit linux. (thus higher chances of it running).

the actual "game content" is actually appended to the END of the .sh file as a simple zip. You should be able to simply run

Code:
unzip ./AmneiaAMFP-1.0.0.sh

to get the actual game contents.

The next update will have "tweaks" to handle tmp dir oddities.
(09-19-2013, 08:24 PM)Urkle Wrote: [ -> ]the actual "game content" is actually appended to the END of the .sh file as a simple zip. You should be able to simply run

Code:
unzip ./AmneiaAMFP-1.0.0.sh

to get the actual game contents.
Thanks, Urkle. That did the trick. Sorry for the delay in response - have been away from my computer for a bit.