PlaneShift

Support => Technical Help: IN GAME bugs (after loading world) => Topic started by: Taffy on February 10, 2005, 02:31:06 am

Title: Problem with planeshift CVS server and Linux installer
Post by: Taffy on February 10, 2005, 02:31:06 am
Is there an alternative CVS server somewhere?
cvs -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/planeshift login
Logging in to :pserver:anonymous@cvs.sourceforge.net:2401/cvsroot/planeshift
cvs [login aborted]: unrecognized auth response from cvs.sourceforge.net: M PserverBackend::PserverBackend()Connect (Connection refused)

I first tried running the updater yesterday and I have tried many times since but I keep getting that error... The 3.006 installer worked fine for me (and I can start up the client etc) but when I try to connect to the server I get:
\"You are not running the correct version of Planeshift for this server.\"
Title:
Post by: Taffy on February 10, 2005, 02:59:17 am
From the sourceforge.net status page:
(  2005-02-09 08:58:54 - Project CVS Service )   As of 2005-02-09 there is an outage of anonymous CVS (tarballs, pserver-based CVS and ViewCVS) for projects whose UNIX names start with the letters m, n, p, q, t, y and z. We are currently working on resolving this issue.
Title:
Post by: Cha0s on February 10, 2005, 03:40:59 am
You can use my Java updater if you like (I\'d actually be interested to here how it works out as I\'ve not been able to test it on Linux). Since the files are not actually located on the CVS server you should be able to DL all the updates in the repository. My updater (I\'m not liable for anything bad that happens when you use it ;) ): Updater.jar (29 k) (http://www.world-of-cha0s.hostrocket.com/PSUpdater/Updater.jar)

Make sure you have Java version 1.4.2 or later (available from java.sun.com).

If that option doesn\'t work for you, the CVS should be back up in a few days (so I\'ve heard).
Title:
Post by: trebiani on February 10, 2005, 10:16:44 am
Quote
Originally posted by Cha0s
You can use my Java updater if you like (I\'d actually be interested to here how it works out as I\'ve not been able to test it on Linux). Since the files are not actually located on the CVS server you should be able to DL all the updates in the repository. My updater (I\'m not liable for anything bad that happens when you use it ;) ): Updater.jar (29 k) (http://www.world-of-cha0s.hostrocket.com/PSUpdater/Updater.jar)

Make sure you have Java version 1.4.2 or later (available from java.sun.com).

If that option doesn\'t work for you, the CVS should be back up in a few days (so I\'ve heard).


your java updater is running right now: Estimated time remaining: About 8 hours ....
i\'ll send you the results when it is finished!

thanx,
treb

p.s.: is it possible to see the source of your updater?
Title:
Post by: trebiani on February 10, 2005, 12:30:33 pm
did the update with the java updater. same problem as ever:
Segmentation fault
Title:
Post by: Androgos on February 10, 2005, 01:35:57 pm
Quote
Originally posted by trebiani
p.s.: is it possible to see the source of your updater?


Just decompile it.
Someone actually wrote that much code, for me? :)
Title:
Post by: derula on February 10, 2005, 02:28:55 pm
@Cha0s: well, your updater downloads _ALL_ data, wich means a redownload of _ALL_ data, even if it exists and is the same. eg art directory exists, but you updater gets all art data. perhaps this can be done in another way? well perhaps it only gets it because i run it in the wrong directory... where should i?

edit: oh yes it downloads into the wrong directory. how can i change that?
Title:
Post by: trebiani on February 10, 2005, 03:50:03 pm
what should i do to get rid of the seg-fault - any hints?

~/games/planeshift/planeshift $ ./psclient
crystalspace.maploader: Could not get model converter
crystalspace.maploader: Could not get model crossbuilder

planeshift.application.client:
  PlaneShift Crystal Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
LOG_ANY flag deactivated.
LOG_WEATHER flag deactivated.
LOG_SPAWN flag deactivated.
LOG_CELPERSIST flag deactivated.
LOG_PAWS flag deactivated.
LOG_GROUP flag deactivated.
LOG_CHEAT flag deactivated.
LOG_LINMOVE flag deactivated.
LOG_SPELLS flag deactivated.
LOG_NEWCHAR flag deactivated.
LOG_SUPERCLIENT flag deactivated.
LOG_EXCHANGES flag deactivated.
LOG_ADMIN flag deactivated.
LOG_STARTUP flag deactivated.
LOG_CHARACTER flag deactivated.
LOG_CONNECTIONS flag deactivated.
LOG_CHAT flag deactivated.
LOG_NET flag deactivated.
LOG_LOAD flag deactivated.
LOG_NPC flag deactivated.
LOG_TRADE flag deactivated.
LOG_SOUND flag deactivated.
LOG_COMBAT flag deactivated.
LOG_SKILLXP flag deactivated.
LOG_QUESTS flag deactivated.
LOG_SCRIPT flag deactivated.
Segmentation fault
Title:
Post by: Cha0s on February 10, 2005, 03:58:55 pm
Run the updater from the directory in which all your normal Planeshift files exist... I\'m not exactly sure how the Linux distro is set up, but run it from directory that contains all your cfg files (planeshift.cfg, psclient.cfg, etc.). As for updating the zip archives by entries instead of DLing the whole archive, run it from the command line (in the correct directory!!!) by typing:


java -jar Updater.jar ARGS (detailed below)

You can have up to 4 arguments at the moment which you can enter in place of ARGS, including:
Run without the GUI: \"nogui\"
Download individual zip entries instead the whole archive: \"zipentries\"
Update everything (including cfg files which aren\'t normally updated): \"updateall\"
Show debug messages when errors are encountered: \"debugmode\"

Example:
java -jar Updater.jar zipentries nogui
That would run the updater without the GUI and try to DL the zip entries. The compression is a little weird though, so the archive sizes don\'t come out quite right (i.e. the same as the repository). :\\

As for the code, I\'ll consider making it generally available, though for now you can get to it by decompiling (no comments or variable names though).

Androgos: who said I wrote it for you? :P
Title:
Post by: Diamondcite on February 10, 2005, 04:04:15 pm
@trebiani
Not  enough information, please do the following
$ gdb ./psclient
wait for it to segfault
> backtrace
Post results somewhere... to give a clue to as what\'s wrong.. also how much ram/swap do you have?

gdb = GNU Debug or something similar and should be easily installable on all systems.
Title:
Post by: derula on February 10, 2005, 04:20:42 pm
Cha0s: I ran at in the planeshift directory, but instead of downloading into that directory, it downloaded in the home directory (wich is 2 dirs above). i\'ll try from console.

edit: now that seems to work.
Title:
Post by: Cha0s on February 10, 2005, 04:21:35 pm
Oh, and as for the estimated time thing... It only becomes accurate about 5-10 minutes in (assuming an hour or so update) and that\'s cause I was lazy when I made my estimated time algorithm. Basically, it just takes the bytes DL/the time running (in seconds) as the average speed and divides the total updates (in bytes) by that. I might implement a better one today if I have enough time. If I do develop one, it\'ll probably use the last 5 amounts DLed over the last 25 seconds (it updates every 5 seconds) to calculate speed of DL. If anyone has any better suggests, I\'m open to them. :)
Title:
Post by: trebiani on February 10, 2005, 06:03:51 pm
Quote
Originally posted by Diamondcite
@trebiani
Not  enough information, please do the following
$ gdb ./psclient
wait for it to segfault
> backtrace
Post results somewhere... to give a clue to as what\'s wrong.. also how much ram/swap do you have?


thanx - now i know that my planeshift was using a different CS installation after setting CRYSTAL=path/to/CS, CEL=path/to/cel and CSCONFPATH=path/to/cel i get:

./psclient
crystalspace.maploader: Could not get model converter
crystalspace.maploader: Could not get model crossbuilder

planeshift.application.client:
  PlaneShift Crystal Blue
  This game uses Crystal Space Engine created by Jorrit and others
  0.99 r0 [Unix-x86-GCC]
LOG_ANY flag deactivated.
LOG_WEATHER flag deactivated.
LOG_SPAWN flag deactivated.
LOG_CELPERSIST flag deactivated.
LOG_PAWS flag deactivated.
LOG_GROUP flag deactivated.
LOG_CHEAT flag deactivated.
LOG_LINMOVE flag deactivated.
LOG_SPELLS flag deactivated.
LOG_NEWCHAR flag deactivated.
LOG_SUPERCLIENT flag deactivated.
LOG_EXCHANGES flag deactivated.
LOG_ADMIN flag deactivated.
LOG_STARTUP flag deactivated.
LOG_CHARACTER flag deactivated.
LOG_CONNECTIONS flag deactivated.
LOG_CHAT flag deactivated.
LOG_NET flag deactivated.
LOG_LOAD flag deactivated.
LOG_NPC flag deactivated.
LOG_TRADE flag deactivated.
LOG_SOUND flag deactivated.
LOG_COMBAT flag deactivated.
LOG_SKILLXP flag deactivated.
LOG_QUESTS flag deactivated.
LOG_SCRIPT flag deactivated.

LoadConfigFromFile:
  set
  set
  set
  set
  set
Invaild sound setting, setting to 100%

planeshift.application.client:
  psEngine initialized.
Creating psnetconnection 862eac0!
./psclient: symbol lookup error: /home/test/games/planeshift/CS/sprcal3d.so:
undefined symbol: _ZN12CalCoreModelC1ERKSs


.... what now?

p.s.: 1Gig RAM and 2Gig swap should do it :-)
Title:
Post by: trebiani on February 10, 2005, 06:08:08 pm
Quote
As for the code, I\'ll consider making it generally available, though for now you can get to it by decompiling (no comments or variable names though).


thanx for the nice tool and i usually ask before i decompile other peoples binaries. most of the time i get code with comments ....

cheers,
treb
Title:
Post by: Diamondcite on February 10, 2005, 06:10:17 pm
How was it installed? Was it installed from CVS or maybe the Unofficial binaries? Maybe a script?
Title:
Post by: trebiani on February 10, 2005, 06:14:04 pm
Quote
Originally posted by Diamondcite
How was it installed? Was it installed from CVS or maybe the Unofficial binaries? Maybe a script?

the linux installer from the official planeshift website. the cvs repository is unavailable - for 2 days now ...
Title:
Post by: Diamondcite on February 10, 2005, 06:16:36 pm
Check your cal3d and CS installations... was the LD_LIBRARY_PATH set?
Title:
Post by: Cha0s on February 10, 2005, 06:45:13 pm
Quote
Originally posted by trebiani
Quote
As for the code, I\'ll consider making it generally available, though for now you can get to it by decompiling (no comments or variable names though).


thanx for the nice tool and i usually ask before i decompile other peoples binaries. most of the time i get code with comments ....

cheers,
treb


Have you decompiled Java before? :P

The Java compiler puts in the stuff that\'s needed run the code, not everything in the source file, so a decompiled Java class file will have generic variable names and no comments. Also, you should probably extract the class files from the JAR first (jar xf Updater.jar). Then look around for a good Java decompiler. ;)
Title:
Post by: trebiani on February 11, 2005, 09:34:58 am
Quote
Originally posted by Cha0s
Have you decompiled Java before? :P
Then look around for a good Java decompiler. ;)


i used JAD. decompiling depends on how you compiled the code. if you left the debug information inside i\'ll get readable code.

JAD is quite old (but usefull!) - do you know a better one?
Title:
Post by: trebiani on February 11, 2005, 09:58:32 am
Quote
Originally posted by Diamondcite
Check your cal3d and CS installations... was the LD_LIBRARY_PATH set?


i made this startup script and the same error is still there:

#!/bin/sh
CRYSTAL=/home/test/games/planeshift/CS
CEL=/home/test/games/planeshift/cel
CSCONFPATH=/home/test/games/planeshift/cel
LD_LIBRARY_PATH=/home/test/games/planeshift/cal3d/lib:/home/test/games/planeshift/CS:$LD_LIBRARY_PATH

export CRYSTAL
export CEL
export CSCONFPATH
export LD_LIBRARY_PATH

cd planeshift
./psclient
cd -
Title:
Post by: trebiani on February 11, 2005, 01:58:47 pm
Quote
Originally posted by Cha0s
You can use my Java updater if you like (I\'d actually be interested to here how it works out as I\'ve not been able to test it on Linux).


i tried to get planeshift running under windowsXP. after using your updater i get: \"Something unexpected happened in PlaneShift ....\"

should the updater work under windows?
Title:
Post by: Cha0s on February 11, 2005, 10:18:25 pm
Yes. Did you run it with \"updateall\" from the command line?
Title:
Post by: derula on February 11, 2005, 10:53:27 pm
at last, planeshift cvs is back up!
Title:
Post by: trebiani on February 12, 2005, 09:34:16 am
Quote
Originally posted by Cha0s
Yes. Did you run it with \"updateall\" from the command line?

hm, no - did not know that i should ...
i\'ll try again!
Title:
Post by: trebiani on February 13, 2005, 11:28:26 am
i tried it with the updateall option but planeshift did not start. after installing again and using the official installer i was able to start it (using windows). with linux i still have no luck :-(
Title:
Post by: Wildboiz2 on February 14, 2005, 04:03:10 am
can anyone help me? When i try to play it says something like the server isn\'t running.
Title:
Post by: derula on February 14, 2005, 05:26:47 pm
select the laanx server instead of localhost when connecting -.-