Author Topic: Easy way to install Planeshift  (Read 17166 times)

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
Easy way to install Planeshift
« on: May 19, 2005, 05:35:56 am »
For those of you having difficulty compiling Planeshift on your own, I\'ve created a simple set of build scripts to automate the process. The scripts do the following:

- Checks for necessary dependencies
- Retrieve cal3d, crystalspace, cel and planeshift from CVS
- Compile all 4 programs to a local sandbox (no root access needed)
- Provides a wrapper script for running planeshift and settng proper environment variables

The scripts have been tested on x86 and x86_64 Gentoo, please feel free to contact me on irc in #planeshift-build if you have any problems, or reply to this thread.

You can get the latest version of the scripts here:
http://snafu.rabidgeek.com/~malverian/misc/easy_planeshift-1.2.tar.gz

Be sure to read the README file before proceding. For a primer, see the \"QUICK START\" section.

LATEST BUILD SCRIPT VERSION: 1.2

Just so people understand, to upgrade the scripts quickly when a new version is released all you have to do If you are in the directory with \"build\" and \"psrun\" is:

--------------------
cd ..
wget http://snafu.rabidgeek.com/~malverian/misc/easy_planeshift/easy_planeshift.tar.gz
tar -xvzf easy_planeshift.tar.gz
cd easy_planeshift
./build -version
--------------------

You do NOT have to rerun \"./build\" to be able to continue playing Planeshift.


*** Include the output of \"./build -diagnose\" when reporting problems


UPDATE: Ebuilds for Planeshift 0.3.011 are in Gentoo portage. Please see his thread for details: http://www.planeshift3d.com/wbboard/thread.php?threadid=18931&boardid=41&styleid=4
« Last Edit: December 12, 2005, 05:21:13 pm by malverian »

stiing

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Start me off
« Reply #1 on: May 20, 2005, 12:37:31 am »
I am really new to linux and would like to give this game a shot under Ubuntu AMD64 version. I realize you have created a script to install the game; however, what is the command to launch the script. Thank you

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #2 on: May 20, 2005, 01:03:00 am »
Please read the included file \"README\" from the tarball.

Note however that currently there are problems with Planeshift that cause the game to crash frequently on AMD64 machines.

oscar

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
(No subject)
« Reply #3 on: May 20, 2005, 09:07:45 pm »
Quote
Originally posted by malverian
NOTE! The binary installer on the website is out of date and does NOT work! The guides on Laanx are also out of date. See below for the fix.

You can get the latest version of the scripts here:
http://snafu.rabidgeek.com/~malverian/misc/easy_planeshift.tar.gz

Be sure to read the README file before proceding. For a primer, see the \"QUICK START\" section.


Hi,

The scripts look really fine. There was only one small glitch.
When checking automake version:
./check_deps.sh: line 57: [: 4-p6: integer expression expected
1.4-p6

Debian\'s (SID) automake-1.4 has a non integer minor version :)
I don\'t really know how it could be intelligently worked around.
Anyway it\'s cosmetic since the build commences undisturbed. The script is unable to detect the incorrect automake version.

No I figured one way. It would be to truncate the version number after a digit_dot_digit sequence. 1.4-p6 would become 1.4
perl -e \'$line=<>; if($line=~/(\\d\\.\\d)/){print \"$1\\n\"}\'
This does it. probably possible in sed too.

lynx_lupo

  • Veteran
  • *
  • Posts: 1431
  • Sorbus aria!
    • View Profile
    • Linux pri nas
(No subject)
« Reply #4 on: May 21, 2005, 10:14:09 am »
Odd, i looked that up, and in a shell, I couldn\'t make the line work, it always output more lines. So I added a head in there and another sed expression to cut anything else out:
autotool_version=`$autotool --version | grep \"^$autotool\" | head -n1 | sed -e \'s/.* //\'` -e \'s/-.*$//\'
"Amor sceleratus habendi"- Ovid
"First they ignore you, then they laugh at you, then they fight you, then you eat them." -Godzilla

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #5 on: May 21, 2005, 03:34:07 pm »
Very good catch from both of you. I have adjusted the scripts to accomodate your fixes. I tossed out the grep, as it is essentially pointless if using head. That was certainly a better way to do it to begin with. I also fixed the psrun script so that you can run it without being in its directory. Eg... \"/home/john/easy_planeshift/psrun psclient\". Just redownload and reextract the package over your current easy_planeshift directory. It won\'t overwrite anything vital.

Let me know if you\'ve got any more suggestions or run into any problems. I\'ve got a working autopackage (http://www.autopackage.org) package set up with the binaries in it, but I\'m debating over where I should host it. My bandwidth is limited.

Perhaps I will include the package generation script with the easy_planeshift release.

Anarstormae

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
errors
« Reply #6 on: May 21, 2005, 06:04:46 pm »
I had a problem with it trying to install binaries into:

./scripts/binaries

which caused the build to fail after crystalspace because configure would refuse to accept a relative pathname for --prefix.

I fixed this by hardcoding the pathname into line 8 of compile_all.sh and of course I had to update the equivelant line in psrun

Also, I had to change the value assigned to the CRYSTAL environment variable in psrun from:

${BinDir}/crystalspace/lib/crystal

to:

${BinDir}/crystalspace/lib/crystalspace


It seems to work now (touchwood). Updater is running as a type this...

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #7 on: May 21, 2005, 06:26:47 pm »
Curious how this was working at all! Thanks for pointing that out.. I fixed this problem in the tarball.

Baghe

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
Failed to load plugin
« Reply #8 on: May 21, 2005, 08:06:23 pm »
I managed to build PS on mandrake 10.0 setting this environment variable (otherwise i cannot buid cal3d):
export WANT_AUTOCONF=2.5
ran the updater without glitches,  i can see the splash screen (same picture and same music as before BTW?), but then it stops saying:

  psEngine initialized.
Creating psnetconnection 85b0e58!

crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'cel.physicallayer\'
Couldn\'t load plugin for PlLayer.

Any hint?
Thanks

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #9 on: May 21, 2005, 08:13:00 pm »
Are you using the \"psrun\" script to run the client? Eg... \"./psrun psclient\".

Baghe

  • Wayfarer
  • *
  • Posts: 8
    • View Profile
could'nt load plugin
« Reply #10 on: May 21, 2005, 08:47:39 pm »
Yes i\'m using your script.

I\'m currently rebuilding the whole stuff with your new script,  i have some problems regarding the automake version, mandrake has a perl script that \"should\"  detect the correct version of automake to use,  this may fail,  and this could  be the reason...
I tell you later

Kolarn

  • Wayfarer
  • *
  • Posts: 1
    • View Profile
(No subject)
« Reply #11 on: May 22, 2005, 01:23:47 am »
I am getting the following error after running ./build -initial.

Performing step scripts/compile_all.sh...
scripts/compile_all.sh: line 8: unexpected EOF while looking for matching ``\'
scripts/compile_all.sh: line 87: syntax error: unexpected end of file
scripts/compile_all.sh failed, exiting

lethe

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #12 on: May 22, 2005, 01:33:01 am »
did you download the file with windows?

malverian

  • Hydlaa Resident
  • *
  • Posts: 56
    • View Profile
(No subject)
« Reply #13 on: May 22, 2005, 02:54:37 am »
Alright, I\'m going to start versioning these things so I can tell if I\'ve fixed the problem already. Everyone, I give you easy_planeshift.tar.gz with \"./build -version\" command.

http://snafu.rabidgeek.com/~malverian/misc/easy_planeshift.tar.gz

(edited)
« Last Edit: May 22, 2005, 07:35:54 am by malverian »

AndyAWS

  • Traveller
  • *
  • Posts: 36
    • View Profile
(No subject)
« Reply #14 on: May 22, 2005, 03:36:26 am »