Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to unpack installer (or corrupt installer)?
nitro322 Offline
Junior Member

Posts: 4
Threads: 1
Joined: Jun 2012
Reputation: 0
#1
Solved: 10 Years, 1 Week ago How to unpack installer (or corrupt installer)?

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:

$ 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:

$ 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.
(This post was last modified: 09-16-2013, 01:18 AM by nitro322.)
09-16-2013, 01:05 AM
Find
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#2
Solved: 10 Years, 1 Week ago RE: How to unpack installer (or corrupt installer)?

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
09-16-2013, 08:12 AM
Website Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#3
Solved: 10 Years, 1 Week ago RE: How to unpack installer (or corrupt installer)?

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

unzip ./AmneiaAMFP-1.0.0.sh

to get the actual game contents.

The next update will have "tweaks" to handle tmp dir oddities.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-19-2013, 08:24 PM
Website Find
nitro322 Offline
Junior Member

Posts: 4
Threads: 1
Joined: Jun 2012
Reputation: 0
#4
Solved: 10 Years, 1 Week ago RE: How to unpack installer (or corrupt installer)?

(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

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.
09-23-2013, 06:40 AM
Find




Users browsing this thread: 1 Guest(s)