Difference between revisions of "Overgrowth Linux"

From Wolfire Games Wiki
Jump to: navigation, search
(Textures are missing. Loading screen shows a white box and the game appears in black and white)
(Errors about GLSL appear, mentioning GLSL versions.)
Line 63: Line 63:
  
 
This is another one that happens with Intel graphics on Linux.  Add #version 130 to the tops of all files that end with .vert or .frag, but ''not'' any of the files that end with .glsl, in the Overgrowth/Data/GLSL directory.  If you install mods that provide new shaders you may need to fix them as well.
 
This is another one that happens with Intel graphics on Linux.  Add #version 130 to the tops of all files that end with .vert or .frag, but ''not'' any of the files that end with .glsl, in the Overgrowth/Data/GLSL directory.  If you install mods that provide new shaders you may need to fix them as well.
 +
 +
You can use code:
 +
 +
<code>cd /usr/local/games/Overgrowth/Data/GLSL
 +
 +
for f in $(ls *.vert *.frag); do; echo -e "#version 130\n$(cat $f)" > $f; done</code>
  
 
==Textures are missing.  Loading screen shows a white box and the game appears in black and white==
 
==Textures are missing.  Loading screen shows a white box and the game appears in black and white==

Revision as of 17:33, 2 January 2014

The Linux version of Overgrowth has different dependencies which need to be fulfilled, otherwise the game won't run. Those dependencies can vary from distribution to distribution.

Installer

The Linux installer is a Bash script which loads a graphical installer. The shebang points to /bin/sh, but it will not work with every shell.

# readlink -f /bin/sh
/bin/bash

If the installer won't load and /bin/sh doesn't point to bash try to force using bash.

# bash overgrowth-xxx-linux.sh

root rights are not necessarily required to install Overgrowth. If you only have a single user on your system (that wants to play Overgrowth) it is not a bad idea to install it to your home directory, because then you do not have to start SUMLauncher as root user.

Distributions

Debian

This also includes Ubuntu, Mint etc.

Libraries

# apt-get install libfreeimage3
# apt-get install libalut0

Gentoo

Libraries

Overgrowth needs different libraries in order to work. This list might not be complete.

# emerge -av gnome-base/gconf
# emerge -av media-libs/freeimage
# emerge -av media-libs/freealut
# emerge -av media-libs/libpng:1.2

Groups

If your user is not already in this groups you have to add him. Otherwise the game may not start and it is even possible that X will completely crash.

# gpasswd -a your_user audio
# gpasswd -a your_user video

SUMLauncher

SUMLauncher does not work with dev-java/sun-jdk, you will need dev-java/icedtea-bin to use it.

# emerge -av dev-java/icedtea-bin
# eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea-bin-6 
  [2]   sun-jre-bin-1.6  system-vm
# eselect java-vm user set 1

Arch

You can install the package overgrowth from the AUR.

Libraries

If you install the AUR package all required libraries should be pulled in automatically. If you install Overgrowth manually or using SUMLauncher you will need to acquire the dependencies manually. The following should provide a good starting point:

# pacman -S --needed freeimage freealut sdl

SUMLauncher

You can install the package sumlauncher from the AUR.

Problems and solutions

Overgrowth currently has many severe bugs and issues on Linux. Luckily, there are fixes or workarounds for most of them. The below specifically assumes a199, so please upgrade before trying the suggestions here.


Errors about GLSL appear, mentioning GLSL versions.

This is another one that happens with Intel graphics on Linux. Add #version 130 to the tops of all files that end with .vert or .frag, but not any of the files that end with .glsl, in the Overgrowth/Data/GLSL directory. If you install mods that provide new shaders you may need to fix them as well.

You can use code:

cd /usr/local/games/Overgrowth/Data/GLSL

for f in $(ls *.vert *.frag); do; echo -e "#version 130\n$(cat $f)" > $f; done

Textures are missing. Loading screen shows a white box and the game appears in black and white

Overgrowth requires S3TC texture support, which is not enabled by default in open source graphics drivers. If you have this issue, you need to set up S3TC texture support. You can probably find out how by googling

S3TC <your distro here>

Also, you mey need to start with "LC_ALL=en_US" parameter e.g.: LC_ALL=en_US ./Overgrowth.bin.x86_64