Hey, we have forums!

Author Topic: Aquaria Linux Binaries  (Read 23956 times)

0 Members and 1 Guest are viewing this topic.

Offline GMMan

  • Giant Bit
  • ******
  • Posts: 254
  • "Uh... I'll be right here after you're done..."
    • View Profile
Aquaria Linux Binaries
« on: August 14, 2010, 05:41:15 pm »
For all those people who missed the Humble Indie Bundle but have a copy of Aquaria and want to be able to run it on Linux: I present you with the official Linux binaries from the HIB, compiled by icculus.
Download:  http://www.mediafire.com/file/mo2oig2uvk33y4e/aquaria-bin.tar.gz

IMPORTANT: This archive contains ONLY the binaries for Aquaria. There is NO GAME DATA! To get the game data, please copy and paste them from your purchased copy of Aquaria. (Not even the scripts are included, even though they are open source.)

To install, extract the archive to where your system install games. Rename the folder with out the "-bin". Place all of your game data inside the folder. Set the permissions on all of the files to whatever it's supposed to be and make launcher menu items for it. There's an icon you can use inside th folder. Then knock yourself out.
Follow me on Twitter: @gmman_bzflag

Offline dugan

  • Bit
  • ***
  • Posts: 13
    • View Profile
Re: Aquaria Linux Binaries
« Reply #1 on: September 01, 2010, 01:30:06 am »
Since Aquaria is now open source, the best way to get Linux binaries is to build them. This is probably why Linux binaries were never released, apart from the ones included in the Humble Bundle.

Your mirrored binaries will come in handy if the build fails.

Offline vincent

  • Mini Bit
  • **
  • Posts: 7
    • View Profile
Re: Aquaria Linux Binaries
« Reply #2 on: September 02, 2010, 03:41:42 am »
Just out of curiousity, I decided to try to build Aquaria for myself as well. The Humble Indie Bundle only released 32-bit binaries of Aquaria, and since I'm currently running 64-bit Linux, I wanted to see if I could get a 64-bit binary working on my laptop. Couldn't find any guides though, aside from the link above, but that didn't work without a few modifications...so I present to you all another guide for those who want to build Aquaria on Linux (Ubuntu 10.04/Linux Mint 9, and derivatives), and want to know exactly how! ;)

Code contained in code brackets need to be executed in a terminal.

1. Install some necessary packages; build-essential contains g++ and make, both of which are required for compiling Aquaria (and cmake). mercurial is needed in order to fetch Aquaria's source code. libopenal-dev is also needed, otherwise cmake complains about not being able to find openal.
Code: [Select]
sudo apt-get install mercurial build-essential cmake liblua5.1-0-dev libogg-dev libvorbis-dev libopenal-dev libsdl1.2-dev
2. Download Aquaria's source code. A directory called "aquaria" will be created in your Home folder.
Code: [Select]
hg clone http://hg.icculus.org/icculus/aquaria
3. Navigate to the newly created "aquaria" directory.
Code: [Select]
cd aquaria
4. A small change to CMakeLists.txt is necessary if you don't want a large binary with debug stuff included in. Open CMakeLists.txt with your preferred text editor (gedit/kate/leafpad/nano/vi/emacs,  etc.), e.g.
Code: [Select]
gedit CMakeLists.txt
Near the top of the file, you'll see this:

IF(NOT CMAKE_BUILD_TYPE)
    SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "None Debug Release RelWithDebInfo MinSizeRel" FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)

Change that to the following:


IF(NOT CMAKE_BUILD_TYPE)
    SET(CMAKE_BUILD_TYPE Release CACHE STRING "None Debug Release RelWithDebInfo MinSizeRel" FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)

Save, and close the file.

5. Generate a makefile with cmake. (If you don't have libopenal-dev, this is where you'll get stuck.)
Code: [Select]
cmake CMakeLists.txt
6. Compile Aquaria's source code. This may take a while, depending on your computer. On my Core 2 Duo laptop, the whole process took around 4 minutes only...compare that with the 2+ hours it takes me to compile a full Linux kernel.
Code: [Select]
make
Once it's finished, you'll find your newly created binary (named "aquaria", of course) in the aquaria directory created in step 2, i.e. ~/aquaria/aquaria. Copy that binary, and navigate to whichever directory that contains your game data and the original "aquaria" executable; I put all my Humble Indie Bundle games in a directory called ~/Games, so my Aquaria game data is in ~/Games/Aquaria. Rename the original "aquaria" binary to something like "aquaria_old", and paste your newly compiled binary here. Now try running Aquaria now...it should work without a problem.


Just to prove it worked:

vincent@vincent-laptop ~ $ file ~/Games/Aquaria/aquaria
/home/vincent/Games/Aquaria/aquaria: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
vincent@vincent-laptop ~ $ file ~/Games/Aquaria/aquaria_old
/home/vincent/Games/Aquaria/aquaria_old: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.18, not stripped

Hope this guide helps! :)
« Last Edit: May 13, 2011, 07:00:53 pm by vincent »

Offline Kloyd Niel

  • Mini Bit
  • **
  • Posts: 2
    • View Profile
Re: Aquaria Linux Binaries
« Reply #3 on: October 22, 2010, 02:37:20 am »
Hi vincent ,

Thanks for the codes that you provide.
I really appreciate this site for welcoming me here.thank you Guys. God Bless.


how to treat depression

Offline achurch

  • Bit Bit
  • ****
  • Posts: 90
    • View Profile
Re: Aquaria Linux Binaries
« Reply #4 on: April 03, 2011, 04:35:33 am »
One addendum to this (sorry for the gravedig, but this was just linked from another thread):

If you compile a new binary from the Icculus source code, you must replace your existing scripts with the scripts from the "game_scripts" directory. For example, if you have the game installed in "~/Games/Aquaria":

Code: [Select]
cp -a ~/Games/Aquaria/scripts ~/Games/Aquaria/scripts-original
cp -a game_scripts/scripts/* ~/Games/Aquaria/scripts/

(The first line creates a backup of the original scripts, just in case you need them in the future.)

If you don't update the scripts, there's at least one enemy (the Mantis Shrimp) which won't work correctly in the new executable.

Offline vincent

  • Mini Bit
  • **
  • Posts: 7
    • View Profile
Re: Aquaria Linux Binaries
« Reply #5 on: May 13, 2011, 07:04:39 pm »
It looks like there's been a new flurry of activity in the Icculus repository, so I've set up a PPA (which I'll update from time to time) for Ubuntu users who want the latest Aquaria binaries (no game data, of course) without having to compile them. Enjoy! :)

https://launchpad.net/~vincent-c/+archive/aquaria

Offline svenmeier

  • Mini Bit
  • **
  • Posts: 3
    • View Profile
Re: Aquaria Linux Binaries
« Reply #6 on: December 10, 2011, 06:46:54 pm »
Hi,

luckily I was able to aquire an official Aquaria build for Linux as part of a software bundle (I already bought the Windows version a few years ago).

In comparison to your binaries this version is performing much better. Do you know why graphics performance should be superior in the official build?

Thanks
Sven

Offline GMMan

  • Giant Bit
  • ******
  • Posts: 254
  • "Uh... I'll be right here after you're done..."
    • View Profile
Re: Aquaria Linux Binaries
« Reply #7 on: December 11, 2011, 11:04:41 pm »
It should be the same version, unless they have newer builds from the .deb/.tar.gz/.rpm packages. Also, this is a 32-bit build, so if you downloaded the 64-bit build the game might have better performance.
Follow me on Twitter: @gmman_bzflag