Author Topic: Linux client  (Read 19859 times)

teal

  • Traveller
  • *
  • Posts: 17
    • View Profile
(No subject)
« Reply #15 on: December 25, 2004, 12:05:55 pm »
I compiled it finally too. But I\'ve got no Server\'s in the Server\'s list :(

kronon

  • Hydlaa Resident
  • *
  • Posts: 146
    • View Profile
(No subject)
« Reply #16 on: December 25, 2004, 12:10:49 pm »
maybe this will work for some people

NOTE: You need jam installed first to make this work.

installation script just put  the text below into install.sh and then go into console (go to the correct dir)and put in as command sh install.sh.
Code: [Select]
HOME_DIR=$1


if [ $HOME_DIR ] && [ $2 ]
then

##Cal 3d
echo \"WARNING: You have to be root to run this script\"

if [ $2 = 0 ]
then
cvs -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/cal3d login
fi
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cal3d co cal3d
cd cal3d
./autogen.sh
./configure --enable-debug --prefix=$HOME_DIR/development/cal3d
make
make install
export LD_LIBRARY_PATH=$HOME_DIR/development/cal3d/lib:$LD_LIBRARY_PATH
cd $HOME_DIR/development

##Crystal Space

if [ $2 = 0 ]
then
cvs -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/crystal login
fi
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/crystal co CS
cd CS
./configure --enable-debug --with-libcal3d=$HOME_DIR/development/cal3d --enable-new-renderer
jam
export CRYSTAL=$HOME_DIR/development/CS
#./walktest --recalc --relight
cd $HOME_DIR/development

##CEL

if [ $2 = 0 ]
then
cvs -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/cel login
fi
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/cel co cel
cd cel
export CSCONFPATH=$HOME_DIR/development/cel/
./configure --disable-jamtest --enable-debug --enable-new-renderer
jam
export CEL=$HOME_DIR/development/cel/
cd $HOME_DIR/development

##Planeshift

if [ $2 = 0 ]
then
cvs -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/planeshift login
fi
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/planeshift co planeshift
cd planeshift
./autogen.sh
./configure --enable-debug --enable-new-renderer
jam -aq
echo \"Installation complete\"

else

echo \"Usage: update.sh url_to_installation_location option_nr\"
echo \"\"
echo \"Option nrs\"
echo \"0 install for first time\"
echo \"1 already installed once\"
echo \"\"
echo \"Reminder: First install Jam before running this script.\"

fi


PS needs variables to know where all the libs are so you need to put this into you console when you run an planeshift program
Code: [Select]
HOME=\"url to the dir you installed all the file in (not the planeshift dir but the one below)\"
export LD_LIBRARY_PATH=$HOME/development/cal3d/lib:$LD_LIBRARY_PATH
export CRYSTAL=$HOME/development/CS
export CEL=$HOME/development/cel/


ALSO DO THE FOLLOWING THINGS TO MAKE PS WORK
Download
http://laanx.fragnetics.com/updater_hidden/root/updaterconfig.xml
user: psteam
pass: p1ane

replace updaterconfig.xml in your planeshift dir with the downloaded one.

To get the laanx server into the server list do the following:
Go to your planeshift dir.
Edit the data/servers.xml file with a texteditor
change the file to the following
Code: [Select]




Run the updater before playing the game (yes it will take alot of time. so take some coffee). Withouth this the game has no picture, music, models, world maps, everything.

P.S. Please run planeshift in a debugger so that when the game crashes you can send the devs a backtraces
a good debugger is gdb.
start client with
1). gdb psclient
2). run
stop client with
3).quit
backtrace client with
4).backtrace (backtrace if able will be dumped into your console)
P.S.S. Post a message if this didn\'t work.

UPDATES:
1). Removed the stuff about mysql that isn\'t needed
2). Added the server file so you get the correct server
3). Posted request to run planeshift in debugger for better feedback to the devs.
4). Forgot to tell that you need to run the updater for game content.
5). Changed stuff a bit so that you don\'t have to get back to your computer to press enter a couple of times.
« Last Edit: January 17, 2005, 05:46:54 pm by kronon »

teal

  • Traveller
  • *
  • Posts: 17
    • View Profile
(No subject)
« Reply #17 on: December 25, 2004, 12:22:49 pm »
Hello there!

Nice Post. It\'s really good. It works nicely but the only error I get is, that I\'ve got no Servers in the Server\'s List. (only the localhost thingy)

btw: why should I make a mysql_Database when there\'s no server?

kronon

  • Hydlaa Resident
  • *
  • Posts: 146
    • View Profile
(No subject)
« Reply #18 on: December 25, 2004, 01:17:07 pm »
You shouldn\'t.
I thought that maybe the client wouldn\'t run for some kind of strainge compiler reason when you didn\'t have mysql. I mentioned mysql so that if things didn\'t work people could find out why:).

Any ways I\'ll mod my post with info on how to get the laanx server into your list:).

teal

  • Traveller
  • *
  • Posts: 17
    • View Profile
(No subject)
« Reply #19 on: December 25, 2004, 01:23:17 pm »
yeah thx that would be cool. please can you PM me the that too. I\'m off to friends now and i will be back on my computer tomorrow, so i will not be able to test it today.

peeg

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 560
    • View Profile
(No subject)
« Reply #20 on: December 25, 2004, 01:45:42 pm »
ok guys.
i just started to download and compile the whole stuff.
i\'m planning to creat a loki-installer for PS:CB using the loki-setup-tools. maybe the devs could make it available on the homepage when its done.
well, lets see...
[ PSde ] - Join the german community!
Peeg Chaoswind - Mentor in The Rangers Of Yliakum

kronon

  • Hydlaa Resident
  • *
  • Posts: 146
    • View Profile
(No subject)
« Reply #21 on: December 25, 2004, 01:55:38 pm »
that would be cool 8)

Parts

  • Hydlaa Resident
  • *
  • Posts: 74
    • View Profile
(No subject)
« Reply #22 on: December 25, 2004, 04:15:44 pm »
The update server must be swamped today; it\'s positively crawling along. :(
The all new: bounce-gaming.net

clawtros

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #23 on: December 25, 2004, 04:23:29 pm »
Is anyone else having problems getting that updaterconfig.xml file, or am I just typing the password in wrong?

kronon

  • Hydlaa Resident
  • *
  • Posts: 146
    • View Profile
(No subject)
« Reply #24 on: December 25, 2004, 04:34:08 pm »
If it realy doesn\'t work (I must confess that it\'s an real securerty issue) Than I\'m willing to include the file into my howto:).

clawtros: It always whas. Max I got whas 33kbs (My cable max is 400kbs).
« Last Edit: December 25, 2004, 04:35:12 pm by kronon »

Asraniel

  • Hydlaa Resident
  • *
  • Posts: 94
    • View Profile
(No subject)
« Reply #25 on: December 25, 2004, 04:42:48 pm »
any one got it to work under mandrake 10.1?

clawtros

  • Wayfarer
  • *
  • Posts: 6
    • View Profile
(No subject)
« Reply #26 on: December 25, 2004, 04:45:17 pm »
Makes sense.  I can wait for it. ;D

Kaneda

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
(No subject)
« Reply #27 on: December 25, 2004, 05:32:48 pm »
@ Asraniel: I\'m trying to get it to run under 10.0, but no succes.
I installed cal3d (cvs) and the Crystal Space (& devel) rpm, but after I do \"jam\" I get a lot of output, but no ps-client in my dir. I tried the cvs CS version, but planeshift configure keeps saying the CS isn\'t set up correctly.

I hope they fix linux support soon, VERY soon....

peeg

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 560
    • View Profile
(No subject)
« Reply #28 on: December 25, 2004, 05:51:51 pm »
hey guys.
i downloaded and compiled planeshift completly from CVS. i am using the art-dir from a windows-installation.
CS\'s walktest runs fine.
When i start  psclient  graphics are very deformed. my mouse draws a trace when i move it an all graphics seem to \"overlap\".
i\'m missing the psupdater too.
any hints?
[ PSde ] - Join the german community!
Peeg Chaoswind - Mentor in The Rangers Of Yliakum

Ginga

  • Traveller
  • *
  • Posts: 17
    • View Profile
(No subject)
« Reply #29 on: December 25, 2004, 06:04:16 pm »
Quote
Originally posted by Kepto
The big question I have is why CB was released for Microsucks BEFORE  a stable Linux release! This gives the Microsucks players an unfair advantage of \"getting ahead\" in CB while we are out of the loop!


yes, it\'s not fair, specially when you use free software to discriminate free software users, I agree with you X(

anyway, I got the source compiled and the data via updater tool, could play for a while but goes slooooow with my pentium 1\'8GHz, 384MB RAM system, and it\'s not very playable. graphics are nice, though.. I tried to play again today but the servers are down, so I\'m writing here to fill my spare time...