Some instructions for installing on Linux

(1/3) > >>

flan_suse:
UPDATE: I created an installer script to simplify the process. See my post below. I recommend it over the manual method, which is prone to making mistakes.

Here is the post: http://forum.amanita-design.net/index.php?topic=1259.msg8213#msg8213








I made a post on another message board about running Machinarium under Linux.

I hope this helps some other Linux users, and if you see any mistakes, please share the corrections!

Here is a link to that forum post: http://forums.linuxoutlaws.com/viewtopic.php?f=2&t=3314#p55020

It looks better in my original post on the other message board due to formatting.

Here is a copy + paste of what part of the message looks like:

Quote from: flan_suse

========== Machinarium ==========

This game is entirely point and click Flash-based, but it's a work of art in of itself. Here is what I did to get it to work. You need to first extract the .tar.gz archive.

Code:

tar xfvz Machinarium_full_en.tar.gz



Rename the directory, and then with root privileges, copy the entire contents into /opt/machinarium/. With rsync, the backslashes (or missing backslashes) make a big difference! I left out the backslash in the source directory on purpose. Why rsync instead of cp? Because if anyone's looking over your shoulder, they'll think you've got tech creds. "Wow, rsync? That sounds complicated!"

Code:

mv Machinarium machinarium
sudo rsync -rt --progress machinarium /opt/



You can safely remove the original directory after rsync finishes.

Next you'll need to correct the file permissions.

Code:

sudo chmod 755 /opt/machinarium/Machinarium
sudo chmod 644 /opt/machinarium/{00,01,10,11}/*



Now you need to create a .desktop menu shortcut that specifies /opt/machinarium as the working directory. If you don't do this, you will only see a black screen when you run the game, unless you cd into /opt/machinarium/ first. It's more convenient to create a menu shortcut that does this for you anyways. Make a file called machinarium.desktop and save it in $HOME/.local/share/applications/ if you want it accessible by the current user only. If you want it to be globally visible, save it as root under /usr/share/applications/. Here is what my machinarium.desktop file contains. Notice the Path= line.

Code:

[Desktop Entry]
Name=Machinarium
GenericName=Flash-based story game
Comment=Flash-based story game
Path=/opt/machinarium
Exec=/opt/machinarium/machinarium_launcher.sh
Icon=/opt/machinarium/machinarium_icon.png
NoDisplay=false
StartupNotify=true
Terminal=false
Type=Application
Categories=Game;LogicGame;



To add a nice touch, download an icon and save it, as root, under /opt/machinarium/machinarium_icon.png. The above .desktop shortcut already points to this file as the "Icon", so it should show up in your menu. Here is the icon that I used: http://darkhavans.deviantart.com/art/Machinarium-Dock-Icon-141463511

Code:

sudo cp Machinarium_Dock_Icon_by_Darkhavans.png /opt/machinarium/machinarium_icon.png



You must create a simple launcher to get around the "black screen" issue. This launcher is already referenced in the above .desktop file in the Exec= line. Under /opt/machinarium/, make a new file called machinarium_launcher.sh and add these contents within.

Code:

#!/bin/bash

### Simple launcher for Machinarium.
### Fixes issue with black screen, mouse clicks, and working directory.

# Change the working directory to match the executable's directory
cd /opt/machinarium/

# Now launch the Machinarium executable, with a fix for some mouse issues
GDK_NATIVE_WINDOWS=true /opt/machinarium/Machinarium

exit 0



Now make this launcher executable.

Code:

sudo chmod +x /opt/machinarium/machinarium_launcher.sh



Try running the game from the menu now.

The game developers recommend that you disable Flash hardware accleration for better performance. I find this to be true, strange as it may sound. You can test this out for yourself. Right-click the screen, go to Settings, then uncheck hardware acceleration. When you launch the game, it will say "Press ESC to exit full screen." This is not the game displaying the message; it's Adobe Flash. You see the same message when you full screen a YouTube video. ESC does not exit full screen. After clicking on the title, you need to bring your mouse cursor towards the bottom of the screen to access the options and controls. Try to disable full screen mode as soon as you can! We know how Flash and Linux aren't best of friends, and this games run much better in windowed mode. You can also try lowering the quality under the View options after you enter windowed mode.

If you use BleachBit, make sure to add this folder to your whitelist, or else you'll lose your saved games and preferences. If you prefer, you can also just exclude Flash cookies from being deleted, since this is how the game stores user settings and saves.

Code:

/home/username/.macromedia/Flash_Player/#SharedObjects/XXXXXXXX/#localWithNet/opt/machinarium/Machinarium/

Enjoy!

flan_suse:
Just updated the post again.

I realized that the spaces in the code sections can mess up the menu launcher. The bash script shouldn't have preceeding spaces if you want the menu shortcut to work.

I fixed this now, and so copying/pasting the code sections should work with no problems now.

juppes:
hello,

hope you read this by any chance...
First of all thanks a lot for posting this here. I closely followed everything in your instructions, but unfortunately I cannot launch Machinarium on my machine. It is visible in the menu with the nice icon, but the same thing happens as if I would cd to /opt/machinarium and launch Machinarium from there. I just briefly get some screens, among which Adobe Flash Player, but the launching process stops.

thank you for trying to help me. I am running Kubuntu 10.04 64bit on my machine.

nicolas:
Quote from: juppes on August 05, 2011, 01:47:01 pm

I am running Kubuntu 10.04 64bit on my machine.

Hi,
On a 64-bit Ubuntu, you have to install the ia32-libs package to play. Just type the following in a terminal then try to launch the game again, it should work. ;)
Code:

sudo apt-get install ia32-libs

juppes:
hi,

thank you for replying so quickly. I tried to install ia32-libs, but my system says that it is already installed and that there is no newer version of it.
Does that mean I cannotrun Mchinarium on my computer, then?

Navigation

[0] Message Index

[#] Next page