Posted July 08, 2015
etb: [gog installers should always be executed with the /nogui option.]
Machinarium is a flash progran and gog sells a copy that is embedded in a Windows flash player. But you can extract the .swf file and play with your native flashplayer*. This idea applies also to MacOS and Windows itself.
So, once you installed the game with Wine in a disposable wineprefix, or extracted the data with innoextract, go in the installation directory and execute this command:
$ dd if=machinarium.exe of=machinarium.swf bs=1 skip=4432896
dd will create the .swf file; you can delete all the other files if you want (not the directories!).
Move the installation directory elsewhere, delete the wineprefix and play with
$ flashplayer machinarium.swf
Otherwise you might make a small script file like:
------------------->
#!/bin/sh
cd "`dirname "$0"`"
/usr/bin/flashplayer machinarium.swf
-------------------<
flashplayer will put your saves in the same directory of all other macromedia flash programs, if you want to keep your saves with your game you can use a script file like this second one:
------------------->
#!/bin/sh
cd "`dirname "$0"`"
mkdir -p saves
HOME="$PWD"/saves /usr/bin/flashplayer machinarium.swf
-------------------<
flashplayer will make its files with settings and saves in two hidden directories inside ``saves''.
Otherwise you might want to keep the saves separated for each user:
------------------->
#!/bin/sh
cd "`dirname "$0"`"
mkdir -p "$HOME"/.machinarium/saves
HOME="$HOME"/.machinarium/saves /usr/bin/flashplayer machinarium.swf
-------------------<
Enjoy!
* http://get.adobe.com/flashplayer
There is a standalone Linux version on our site now so you don't have to go through all this anymore :)Machinarium is a flash progran and gog sells a copy that is embedded in a Windows flash player. But you can extract the .swf file and play with your native flashplayer*. This idea applies also to MacOS and Windows itself.
So, once you installed the game with Wine in a disposable wineprefix, or extracted the data with innoextract, go in the installation directory and execute this command:
$ dd if=machinarium.exe of=machinarium.swf bs=1 skip=4432896
dd will create the .swf file; you can delete all the other files if you want (not the directories!).
Move the installation directory elsewhere, delete the wineprefix and play with
$ flashplayer machinarium.swf
Otherwise you might make a small script file like:
------------------->
#!/bin/sh
cd "`dirname "$0"`"
/usr/bin/flashplayer machinarium.swf
-------------------<
flashplayer will put your saves in the same directory of all other macromedia flash programs, if you want to keep your saves with your game you can use a script file like this second one:
------------------->
#!/bin/sh
cd "`dirname "$0"`"
mkdir -p saves
HOME="$PWD"/saves /usr/bin/flashplayer machinarium.swf
-------------------<
flashplayer will make its files with settings and saves in two hidden directories inside ``saves''.
Otherwise you might want to keep the saves separated for each user:
------------------->
#!/bin/sh
cd "`dirname "$0"`"
mkdir -p "$HOME"/.machinarium/saves
HOME="$HOME"/.machinarium/saves /usr/bin/flashplayer machinarium.swf
-------------------<
Enjoy!
* http://get.adobe.com/flashplayer