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

×
high rated
[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
Post edited August 11, 2013 by etb
Wow! Thanks!
You are welcome :D
For me, the fact it tries to use the same "registry" as flash-the-web-plugin, a terrible screen management (got two screen, principal being 1366x768 and secondary 1280x1024, it automatically tries to open on primary but because of widescreen the interface buttons are *below* the bottom of the screen - fixing it requires an hexadecimal editor to edit the binary registry... until the game decides to lose this setting), makes me run the game from Wine...
Even if I brought the game directly from the editor to get the Linux version!
I'll probably keep buying directly from the editors when a Linux version exists, but really, really, flash is a poor platform on Linux (and from the other threads here, it's a poor platform for gaming in general)...
Post edited May 03, 2012 by petchema
Well... The reason why companies insist using closed and poor technologies instead of open and easy to port ones is a mystery to me.

But, as noted in the first post, you just need to change the evn variable HOME to put the savegames where your want.
Post edited May 04, 2012 by etb
Yes, thanks for pointing that out.; It solves the biggest issue I have with that platform; The screen resolution issue is more game-specific.
Did you write the instructions for a specific flash-player? I just use a browser in Linux.


The Machinarium.sol is the savegame-file of Machinarium. It's also compatible between Linux and Windows.

To make sure to find it, you can do the following, both times in the terminal:

sudo updatedb

sudo locate Machinarium.sol

the 'sudo'-command ensures, that you'll have root privileges for just one instruction.
As written in the footnote in the first post I wrote the instruction relative the official adobe flash player:

http://get.adobe.com/flashplayer

You can use the browser if you want, but the browser will use another flashplayer anyway (at least most browser do). About the save file the idea of replacing the HOME variable is so you do not mix it with other .sol file from sites and such.

If you want to try another flash player you might want to try gnash, if you do tell us the experience.

Edit: more explicit link
Post edited June 29, 2013 by etb
That download only includes a flashplayer.so and a usr-directory.

I tried Gnash and the performance was awful compared to browser-plugin-performance. It was working, but at about 4 fps.
avatar
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 :)
avatar
JudasIscariot: There is a standalone Linux version on our site now so you don't have to go through all this anymore :)
Is it like the Linux version that was distributed via Humble Bundle?

Because that one used an ancient 32bit bundled flash player which caused all kind of problems (performance and otherwise) for people on modern Linuxes.

That's why people started extracting the .swf file (and playing it in the browser) in the first place.
avatar
JudasIscariot: There is a standalone Linux version on our site now so you don't have to go through all this anymore :)
avatar
archy2: Is it like the Linux version that was distributed via Humble Bundle?
We would have noted on the game card that you would need to play the game via a browser if this was the case :)
avatar
archy2: Is it like the Linux version that was distributed via Humble Bundle?
avatar
JudasIscariot: We would have noted on the game card that you would need to play the game via a browser if this was the case :)
Playing it via a browser was the workaround, not how it was distributed (ancient 32bit bundled flash player.)
Post edited July 12, 2015 by Gydion
Thanks a lot ETB,
I had sound issues with the Linux version that GOG ships and it turns out they were related to the flashplayer they ship.
With my distributions flash player, plugin or standalone, sound is just fine.

GOG, please just ship the .flv and have a flashplayer as backup only.
Just in case you want to extract the swf from the Linux version:

dd if=Machinarium of=Machinarium.swf ibs=1 skip=(grep -abo FWS Machinarium|cut -f1 -d:|tail -1)

Taken from the amanita-design forums (I can't post links yet)


I recommend using "Flash Player Projector", you can download it from Adobe's "Debug downloads"