PlaneShift

Support => Technical Help: Problems BEFORE entering the game => Topic started by: fida on February 19, 2005, 09:10:11 am

Title: slow under linux
Post by: fida on February 19, 2005, 09:10:11 am
Hi, I\'m new here and I downloaded, installed and updated Planeshift under Linux, but I have serious problem- game is very slow. It takes 10 or more minutes to run a game. I have FC3, AMD 2000 XP+,256 Ram, Geforce4 MX440, please don\'t say that I have to play Planeshift under Wind... Thanks
Title:
Post by: fida on February 19, 2005, 02:30:22 pm
please
Title:
Post by: Karosh_Steinkatz on February 19, 2005, 02:40:13 pm
How do you define \"slow\"? 10 fps? 50fps? Further info about it would help. Also check if your OpenGL is set up correctly. Run \'glxinfo |grep direct\' in a shell to see if direct rendering is enabled.
Title:
Post by: fida on February 19, 2005, 04:23:58 pm
no i haven\'t open gl enabled, how can i do that
I can barely move mouse, while running client
Title:
Post by: confused on February 19, 2005, 04:45:30 pm
Software emmulation is very very slow even if not particle effects and the like are used.

Better get your OpenGL hardware acceleration sorted out, or you definitely fine the game very unplayable.
Title:
Post by: fida on February 19, 2005, 04:52:39 pm
ok but how can i use open gl?
Title:
Post by: confused on February 19, 2005, 06:30:58 pm
How new are you to Linux?

Have you downloaded the nVidia unified driver from nVidia website. You need to change down to run level 3 to install the driver. Once done you should have the GLX active with hardware acceleration enabled.

Then you can run ./pssetup to just to make sure OpenGL is used. Then run ./psclient and enjoy.
Title:
Post by: Luddrigo on February 19, 2005, 10:49:18 pm
Hello!

I have the same problem like the original poster, and I am clueless how to fix it.

My specs:

AMD Duron 1.2GHz
Geforce4 MX440
256MB RAM
Slackware 10 with the 2.6.10-kernel.

I know that my computer is far from top-of-the-line, but I don\'t feel that it should be this bad. The way it is now it takes forever just to move the mouse two inches on the screen.

I don\'t know how to display my fps ingame, so I don\'t have a clue about what it is.

I\'ve spent the entire day searching through different forums and I\'ve found this:

If I do a \"glxinfo |grep direct\" I get \"direct rendering = Yes\" This is good, right?

If I do a \"glxgears\" in a maximized window I get about 100fps. I know that this is a rather bad benchmarking-utility - but I guess it\'s bether than nothing. Is this normal?

If i play in 800x600, 15-bit, no sound, the game is infact playable inside the first town, but as soon as I leave the area and get the loading-map-screen it starts to \"lag\" horribly.

I don\'t get this:
\"Then you can run ./pssetup to just to make sure OpenGL is used.\"

How can you tell if OpenGL i used?
Title: Nvidia drivers
Post by: Tharizdun on February 20, 2005, 04:46:49 am
For those with nvidia video cards you will need to download nvidias proprietry drivers if you want decent 3d/opengl performance in planeshift. An opensource \'nv\' driver is also an option, while this is Free in the GNU/FSF sense, it does not have the performance of the proprietry driver.

These drivers are in two portions:

1. A kernel module. This must be loaded and memory-resident at the earliest opportunity ( ie at Boot ), and talks directly with the hardware. You should be able to view this with lsmod, and load it in with modprobe just like any other module. Without this loaded, part 2 of the driver will not function at all.


> lsmod
Module                  Size  Used by
nvidia               3465372  12

2. A userspace X11 driver. This is called \'nvidia\' and must be selected and loaded in your xorg.conf or XF86Config file ( if you are using xorg-x11 or xfree86 respectively ) , for example:

Section \"Device\"
        Identifier  \"Card0\"
        Driver      \"nvidia\"
        VendorName  \"nVidia Corporation\"
        BoardName   \"NV17 [GeForce4 MX 440]\"
        BusID       \"PCI:1:0:0\"
        VideoRAM    65536
        Option      \"RenderAccel\"       \"On\"
        Option      \"Connectedmonitor\"  \"CRT\"
EndSection

There are other adjustments that are also recommended in the \"options\" section of the x11 config files, see the nvidia documentation for the details of these.

The current version of the nvidia drivers is 6629, special versions of these are available for 64 bit intel and amd cpus, use these if applicable to your system. They are available from:

http://www.nvidia.com/object/linux.html

Once installed and running with the kernel module loaded and the x11 driver ( how this is done depends on the packaging system your distribution uses, you may ignore this method and install the drivers by hand using the documentation in the driver bundle ), you should see the nvidia information available via glxinfo:

> glxinfo | grep OpenGL

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 MX 440/AGP/SSE/3DNOW!
OpenGL version string: 1.5.2 NVIDIA 66.29
OpenGL extensions:

glxgears can be used to benchmark your system as a whole, the performance of which will depend on your cpu, videocard, driver revision, kernel and x11 options, and other factors -

> glxgears
9353 frames in 5.0 seconds = 1870.600 FPS
9343 frames in 5.0 seconds = 1868.600 FPS
9342 frames in 5.0 seconds = 1868.400 FPS
9350 frames in 5.0 seconds = 1870.000 FPS

For reference, this is an Athlon XP 2000+ under Xorg 6.8, Gnome 2.8, and a 2.6.10 kernel running on Gentoo linux.
Title:
Post by: Luddrigo on February 20, 2005, 11:09:03 am
I already had the nvidia-drivers, and I looked in xorg.conf and made sure that everything was in order. I didn\'t have VendorName, BoardName or BusID so I added those. I toyed around with nvidia-settings and nvclock.  My card now runs at 320MHz core and 430MHz memory. This was my maximum values while runing windows before strange colors, dots and \"flipping\" started to occur.

Well, when I run glxgear I now have around 1100 fps running it in the standard-size window. I haven\'t tried fullscreen yet. But the game STILL runs horribly slow and jerky.

It doesn\'t matter if I run it in fullscreen by pressing ALT+ENTER (btw, I only get 56Hz on my monitor by doing this, but that is another issue) or change the resolution to 800*600 with CTRL+ALT++ before starting the game. I get a warning when starting the game in 16 bit colordepth so I changed the colordepth of my desktop to 24 bit in xorg.conf but I don\'t feel a difference in game performance.

When I do \"glxinfo | grep OpenGL\" i get this:

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 MX 440/AGP/SSE/3DNOW!
OpenGL version string: 1.5.2 NVIDIA 66.29
OpenGL extensions:

Does this meen that I run the game in OpenGL-mode?

Is there any eyecandy that can be removed? I really don\'t care if the game looks like shit, as long as it don\'t run like shit. :)

Sorry for beeing such a noob. :(
Title:
Post by: Tharizdun on February 20, 2005, 01:01:12 pm
VendorName and BoardName arent necessary in a technical sense, they are for your own information, you could put anything in there.

BusID needs to be correct though, the BusID of PCI:1:0:0 means the AGP slot, which is addressed as though it was a PCI bus entity in most cases. If you have a PCI video card this will need to be different. You can discover the BusID via lspci:


>  lspci | grep VGA
0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440] (rev a3)


Your video driver definately sounds like its working properly now though, as evidenced by glxinfo and glxgears, 1100 fps is ok and shows that its definately using hardware-based opengl rendering.

Planeshift has its own color and resolution settings, these are set via pssetup. I use fullscreen, 1024x768@32bit color, and have enabled the Vertex Buffer Object feature. You can probably tweak it down by using a lesser res or changing the stencil threshold.

The last thing I can suggest is a recompile of the whole lot with CXXFLAGS that start to turn on compiler optimisations, \"-O2 -march=athlon-xp\" for example, with your arch added as appropriate.
Title:
Post by: Karosh_Steinkatz on February 20, 2005, 01:20:07 pm
The Vertex Buffers cause trouble sometimes, so I\'d recommend to leave them off. But to gain speed, you can reduce the view distance in the game options.
Title:
Post by: Luddrigo on February 20, 2005, 01:26:54 pm
Quote
Originally posted by Tharizdun
Your video driver definately sounds like its working properly now though, as evidenced by glxinfo and glxgears, 1100 fps is ok and shows that its definately using hardware-based opengl rendering.

Planeshift has its own color and resolution settings, these are set via pssetup. I use fullscreen, 1024x768@32bit color, and have enabled the Vertex Buffer Object feature. You can probably tweak it down by using a lesser res or changing the stencil threshold.

The last thing I can suggest is a recompile of the whole lot with CXXFLAGS that start to turn on compiler optimisations, \"-O2 -march=athlon-xp\" for example, with your arch added as appropriate.


Thank you!

I will download some other game to see if it runs smoothly.

I run the game in the lowest possible resolution already. I haven\'t tried to play with stencil treshold yet.

The recompile thing sounds interesting! How do I do that? I have the 250MB  PlaneShift_CBV0.3.006-3.x86.run file.

The only thing I\'ve done is to download the file, put it in /usr/local/games and then:
./PlaneShift_CBV0.3.006-3.x86.run

If I add -O2 -march=duron at the end it says:

Code: [Select]
bash-3.00$ ./PlaneShift_CBV0.3.006-3.x86.run -O2 -march=duron
Unrecognized flag : -O2
Makeself version 2.1.4
 1) Getting help or info about ./PlaneShift_CBV0.3.006-3.x86.run :
  ./PlaneShift_CBV0.3.006-3.x86.run --help   Print this message
  ./PlaneShift_CBV0.3.006-3.x86.run --info   Print embedded info : title, default target directory, embedded script ...
  ./PlaneShift_CBV0.3.006-3.x86.run --lsm    Print embedded lsm entry (or no LSM)
  ./PlaneShift_CBV0.3.006-3.x86.run --list   Print the list of files in the archive
  ./PlaneShift_CBV0.3.006-3.x86.run --check  Checks integrity of the archive

 2) Running ./PlaneShift_CBV0.3.006-3.x86.run :
  ./PlaneShift_CBV0.3.006-3.x86.run [options] [--] [additional arguments to embedded script]
  with following options (in that order)
  --confirm             Ask before running embedded script
  --noexec              Do not run embedded script
  --keep                Do not erase target directory after running
                        the embedded script
  --nox11               Do not spawn an xterm
  --nochown             Do not give the extracted files to the current user
  --target NewDirectory Extract in NewDirectory
  --tar arg1 [arg2 ...] Access the contents of the archive through the tar command
  --                    Following arguments will be passed to the embedded script


So I guess I need the source?

I feel kind of stupid now because I can\'t find the source from sourceforge.net or anywhere else...
http://sourceforge.net/project/showfiles.php?group_id=8351

I found the following link in the playerguide, but it just give me a 404.
http://www.planeshift.it/download/PSV0.3.003_linux.tgz

*confused*
Title:
Post by: Karosh_Steinkatz on February 20, 2005, 01:49:01 pm
Yes, these options are used when you compile it. Btw, look at the installer thread, a new version is available ;) If you don\'t want to download it again, get this archive (http://www.mortalsaviour.de/download/updater-007.tar.bz2) and extract it into your PS dir. Run the updater to get 0.3.007 then.
Title:
Post by: Luddrigo on February 20, 2005, 02:49:56 pm
Alright, I will give it a go.
Title:
Post by: Luddrigo on February 24, 2005, 11:37:09 am
Well, I found a slackware HOWTO on this forum and tried it out, but I got lots of errors and random crashes.

I downloaded the new installer and installed it instead and voila! The game actually runs smooth! It\'s not very fast and it\'s not very pretty - but I can play! Weeee!

Another Planeshift-related question. What should I get first when I\'m upgrading my computer. RAM or CPU? Both is pretty cheap nowadays, but I\'m unemployed ATM and suffer of severe lack of funds.  :(
Title:
Post by: Karosh_Steinkatz on February 24, 2005, 12:41:47 pm
256MB Ram is the lowest amount to run PS. Get at least another 256MB stick (or a 512MB one if you can afford it) and it should run much better. If you want to upgrade your CPU you may need a new mainboard aswell, and it could sum up to an amount which you can\'t afford. Just get the ram and if it\'s not enough get a new gfx card, like Geforce FX 5500 or 5700LE, they are pretty cheap (~75?)
Title:
Post by: Luddrigo on February 24, 2005, 01:37:08 pm
My mptherboard is a socket A one which supports up to 333MHz FSB. The fastest standard AMD-processor I can use should be the Athlon XP 3000+ Barton.

I will go for the extra RAM. I can probably but a PC3200 512BM for about 600SEK (About 85$ USD).

Hmm, Ithink this is about to go offtopic.

Anyway, thank you very much for your help. Now I finally have someting fun to do with my Linuxbox.  :P
Title:
Post by: John_Thazer on February 24, 2005, 02:37:15 pm
Quote
Originally posted by fida
Hi, I\'m new here and I downloaded, installed and updated Planeshift under Linux, but I have serious problem- game is very slow. It takes 10 or more minutes to run a game. I have FC3, AMD 2000 XP+,256 Ram, Geforce4 MX440, please don\'t say that I have to play Planeshift under Wind... Thanks


The only time I get this kind of thing is when I have 2 or more open accounts on Linux, it seems that permisions for Video Acceleration are messed up, although this problem is mainly for ATI Cards rather than nVideo...
Basically these symptoms are of not having \"3D Acceleration\" on...
Title:
Post by: fida on February 24, 2005, 03:15:08 pm
hi I finnaly instaled driver for graphic card, but loading time is still really high. Somebody told me, that I can build game from cvs, but I\'m quite new in linux, so I don\'t know, how to do this. I have fedora core 3, thanks Fida
Title:
Post by: fida on February 24, 2005, 08:18:53 pm
anybody? thanks
Title:
Post by: Tharizdun on February 26, 2005, 02:31:57 am
http://laanx.fragnetics.com/

Pick the appropriate \"Build\" link in the left hand box. For Fedora Core I would suggest using the gentoo build process, its generic enough that once you get the basics installed ( cvs, curl and so on ) it should apply just as well to redhat or fedora core.
Title:
Post by: fida on February 26, 2005, 07:12:21 am
ok, I have several questions- what is \"emerge\", is this working in fc3? and jam is special for gentoo, or it can be used in fedora core? thanks
Title:
Post by: Tharizdun on February 26, 2005, 07:52:12 am
\'emerge\' is the gentoo-specific way of installing software. You will need to install the bits the fedora way using rpm.

You can probably get the rpm packages from your install media, or download them from redhat for curl and cvs. They might be installed already on your system.. try looking in /usr/bin for these programs.

There are some jam rpms available from a few 3rd party sources, see

http://rpmfind.net/linux/rpm2html/search.php?query=jam&submit=Search+...

Try the RPM built for Mandrake Linux 10.1 perhaps, they ought to be similar enough to be fairly interchangable.

Jam is the tool that planeshift and its related software components ( cal3d, cs and cel ) use to build its code. Its an alternative to GNU make, which 99% of other Linux source-based software uses, and has nothing to do with specific distrubutions. Unlike rpm, emerge, apt-get and the like.
Title:
Post by: fida on February 27, 2005, 12:25:20 pm
where should I put
export CRYSTAL=/home/path/CS
in my .bashrc:

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
and I have to run this command
export LD_LIBRARY_PATH=/home/path/cal3d/src/cal3d/.libs/:$LD_LIBRARY_PATH
in terminal?

building Crystal space told me, that it cannot update one file, I hope it doesn\'t matter
Title:
Post by: fida on February 27, 2005, 12:38:17 pm
i tried cel configure and it said

configure: WARNING: Can not find cs-config in path you provided
no
configure: error:
*** Crystal Space could not be found. The latest version is always available
*** from http://www.crystalspace3d.org/
*** Also, be sure that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.

so where should I put that export commands?
Title:
Post by: Tharizdun on February 27, 2005, 01:54:05 pm
Anywhere in .bashrc is good, put them at the end after whatever the last line is now. Here are the relevant export statements I\'m using in my .bashrc:

export CRYSTAL=/home/myhomedir/planeshift-cvs/CS
export CEL=/home/myhomedir/planeshift-cvs/cel
export CSCONFPATH=/home/myhomedir/planeshift-cvs/cel
export LD_LIBRARY_PATH=/home/myhomedir/planeshift-cvs/cal3d/src/cal3d/.libs/:$LD_LIBRARY_PATH

Once they are in your .bashrc they will always be set properly after you first login, so there will be no need to manually export things via terminal.

You can test that they are set, for example:

echo $CRYSTAL

should return

/home/myhomedir/planeshift-cvs/CS

\'env\' and \'set\' also give you dumps of current environment variables.

Building cs-config is the last step you take in building CrystalSpace, once libs and plugins have been compiled. cel wont be able to locate this if the environment variable is not set, or if cs-config has not been compiled.
Title:
Post by: fida on February 27, 2005, 08:53:39 pm
i tried to compile planeshift cvs and
...failed updating 32 target(s)...
...skipped 11 target(s)...
...updated 301 target(s)...
so I thought, that is normal and i tried to run updater, but it wasn\'t nowhere!

Here is some reprt:

C++ ./out/linuxx86/debug/src/server/adminmanager.o
In file included from ./src/common/util/eventmanager.h:26,
                 from src/server/spawnmanager.h:35,
                 from src/server/adminmanager.cpp:35:
./src/common/util/heap.h: In member function `void Heap::Insert(T*)\':
./src/common/util/heap.h:51: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' m ust be available
./src/common/util/heap.h:51: error: (if you use `-fpermissive\', G++ will accept your code, but allowing the use of an undeclared nam e is deprecated)

    g++ -c -o ./out/linuxx86/debug/src/server/adminmanager.o     -DCS_DEBUG -g3 -I/home/internet/work/vyvoj/CS/include      -I/home/ internet/work/vyvoj/cel/include -fexceptions  -I. -I./include -I./src/common -I./src/client -I./src/server src/server/adminmanager.c pp

...failed C++ ./out/linuxx86/debug/src/server/adminmanager.o ...

thanks
Title:
Post by: kmare on February 27, 2005, 11:54:05 pm
you\'re using gcc 3.4 right? those errors won\'t show up with gcc 3.3 (check your gcc version with \"gcc --version\" ).
I\'m not a planeshift developer but I hope to fix those bugs tomorrow if I have some time, and will come back with a patch. Can\'t promise anything right now though.. :(
Title:
Post by: Karosh_Steinkatz on February 28, 2005, 12:00:51 am
Just edit the heap.h file with an editor and change all \'Get\' to \'this->Get\', the \'*Get\' to \'*this->Get\' and the one \'Top\' to \'this->Top\'.
Title:
Post by: fida on February 28, 2005, 05:45:13 pm
and where is the heap.h?
Title:
Post by: fida on February 28, 2005, 06:35:41 pm
i can give you more info abou errors:
[root@localhost CS]# jam plugins
...patience...
...patience...
...patience...
...found 3170 target(s)...
...updating 4 target(s)...
C++ ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.o
In file included from ./include/csgfx.h:39,
                 from ./include/crystalspace.h:22,
                 from ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.cpp:1169:
./include/csgfx/vertexlight.h: In constructor `csPointLightProc::csPointLightProc(iLight*, iMovable*, float)\':
./include/csgfx/vertexlight.h:121: error: invalid use of undefined type `struct iMovable\'
./include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
./include/csgfx/vertexlight.h: In constructor `csDirectionalLightProc::csDirectionalLightProc(iLight*, iMovable*, float)\':
./include/csgfx/vertexlight.h:162: error: invalid use of undefined type `struct iMovable\'
./include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
./include/csgfx/vertexlight.h: In constructor `csSpotLightProc::csSpotLightProc(iLight*, iMovable*, float)\':
./include/csgfx/vertexlight.h:208: error: invalid use of undefined type `struct iMovable\'
./include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
./include/csgfx/vertexlight.h: In member function `csColor csSpotLightProc::ProcessVertex(const csVector3&, const csVector3&) const\':
./include/csgfx/vertexlight.h:232: error: `distance\' undeclared (first use this function)
./include/csgfx/vertexlight.h:232: error: (Each undeclared identifier is reported only once for each function it appears in.)

    g++ -c -o ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.o -I. -I./include -I./include -Wall -Wno-unknown-pragmas -pipe -march=i586 -I/usr/local/include -fno-exceptions -g3 -DCS_DEBUG -fPIC -I/usr/include/python2.3 -DSWIG_GLOBAL -Wno-unused -Wno-uninitialized  ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.cpp

...failed C++ ./out/linuxx86/debug/plugins/cscript/cspython/cs_pyth.o ...
...skipped libcspycommon.a for lack of libcspycommon.a(cs_pyth.o)...
...skipped cspython.so for lack of libcspycommon.a...
...skipped _cspace.so for lack of libcspycommon.a...
...failed updating 1 target(s)...
...skipped 3 target(s)...


and
it is cel jaming:

C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.o
In file included from /home/internet/work/vyvoj/CS/include/csgfx.h:39,
                 from /home/internet/work/vyvoj/CS/include/crystalspace.h:22,
                 from ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:1202:
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In constructor `csPointLightProc::csPointLightProc(iLight*, iMovable*, float)\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:121: error: invalid use of undefined type `struct iMovable\'
/home/internet/work/vyvoj/CS/include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In constructor `csDirectionalLightProc::csDirectionalLightProc(iLight*, iMovable*, float)\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:162: error: invalid use of undefined type `struct iMovable\'
/home/internet/work/vyvoj/CS/include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In constructor `csSpotLightProc::csSpotLightProc(iLight*, iMovable*, float)\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:208: error: invalid use of undefined type `struct iMovable\'
/home/internet/work/vyvoj/CS/include/iengine/light.h:42: error: forward declaration of `struct iMovable\'
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h: In member function `csColor csSpotLightProc::ProcessVertex(const csVector3&, const csVector3&) const\':
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:232: error: `distance\' undeclared (first use this function)
/home/internet/work/vyvoj/CS/include/csgfx/vertexlight.h:232: error: (Each undeclared identifier is reported only once for each function it appears in.)
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp: In function `PyObject* _wrap_iClipper2D_Clip__SWIG_0(PyObject*, PyObject*)\':
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:40454: warning: unused variable \'ptr3\'
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp: In function `PyObject* _wrap_iClipper2D_Clip__SWIG_1(PyObject*, PyObject*)\':
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:40520: warning: unused variable \'ptr3\'
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp: In function `PyObject* _wrap_iClipper2D_Clip__SWIG_2(PyObject*, PyObject*)\':
./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp:40591: warning: unused variable \'ptr3\'

    g++ -c -o ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.o -I. -I./include -I. -Wall -g3 -DCS_DEBUG -fPIC -I/usr/include/python2.3 -I/home/internet/work/vyvoj/CS/include -DSWIG_GLOBAL  ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.cpp

...failed C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/blcel.o ...
C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/blpython.o
In file included from /usr/include/python2.3/Python.h:8,
                 from ./plugins/behaviourlayer/python/blpython.h:29,
                 from plugins/behaviourlayer/python/blpython.cpp:21:
/usr/include/python2.3/pyconfig.h:850:1: warning: \"_POSIX_C_SOURCE\" redefined
In file included from /usr/include/stdint.h:26,
                 from /home/internet/work/vyvoj/CS/include/cstypes.h:37,
                 from /home/internet/work/vyvoj/CS/include/csdef.h:27,
                 from /home/internet/work/vyvoj/CS/include/cssysdef.h:24,
                 from plugins/behaviourlayer/python/blpython.cpp:19:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
C++ ./out/linuxx86/debug/plugins/behaviourlayer/python/pytocel.o
In file included from /usr/include/python2.3/Python.h:8,
                 from ./plugins/behaviourlayer/python/blpython.h:29,
                 from plugins/behaviourlayer/python/pytocel.cpp:21:
/usr/include/python2.3/pyconfig.h:850:1: warning: \"_POSIX_C_SOURCE\" redefined
In file included from /usr/include/stdint.h:26,
                 from /home/internet/work/vyvoj/CS/include/cstypes.h:37,
                 from /home/internet/work/vyvoj/CS/include/csdef.h:27,
                 from /home/internet/work/vyvoj/CS/include/cssysdef.h:24,
                 from plugins/behaviourlayer/python/pytocel.cpp:19:
/usr/include/features.h:150:1: warning: this is the location of the previous definition
...skipped blpython.so for lack of blcel.o...
 and some other reports from jaming planeshift:
C++ ./out/linuxx86/debug/src/updater/md5.o
C++ ./out/linuxx86/debug/src/updater/registrycreator.o
...skipped updater for lack of libpsutil.a...
C++ ./out/linuxx86/debug/src/paws_generic/eedit.o
C++ ./out/linuxx86/debug/src/paws_generic/pawsgeneric.o
...skipped paws_generic for lack of libpsutil.a...
C++ ./out/linuxx86/debug/src/eedit/pawseedit.o


i don\'t know what to do
Title:
Post by: Karosh_Steinkatz on February 28, 2005, 06:45:40 pm
Quote
Originally posted by fida
C++ ./out/linuxx86/debug/src/server/adminmanager.o
In file included from ./src/common/util/eventmanager.h:26,
                 from src/server/spawnmanager.h:35,
                 from src/server/adminmanager.cpp:35:
./src/common/util/heap.h: In member function `void Heap::Insert(T*)\':

Just read what gpp spits out ;)

About the other errors: Have you tried to checkout a newer version of CS? Oh and if you got PS from cvs recently don\'t bother to compile it, since it has 2 big bugs. Better wait until those are fixed.

Edit: Oh and don\'t worry about the python stuff. It isn\'t used in PS anyway.
Title:
Post by: fida on February 28, 2005, 07:04:42 pm
and how will i upgrade ps with cvs? And when will be next version? and the bugs are so deadly, can you explain what do you mean exactly( i repaired heap.h and jaming planeshift works fine)? thanks
Title:
Post by: Karosh_Steinkatz on February 28, 2005, 07:15:33 pm
1. You get the message \"We have been dropped by the server (invalid error message)\" and the client quits.
2. The values in the status window are all 0.
Title:
Post by: Platyna on March 03, 2005, 03:12:29 pm
Building Planeshift from CVS increases performance because it is
optimized to your system. Well  CVS users always get all fixes (and screw
ups) first, but I\'ve compiled source from yesterday and it works fine for me.

Regards.
Title:
Post by: Tharizdun on March 04, 2005, 03:36:20 am
The \"We have been dropped by the server (invalid error message)\" has been fixed in CVS since the 1st of march:

*** 2005-03-01 by Andrew Craig
- NPC\'s don\'t send disconnect messages to clients. Was causing
  clients to be dropped.

I have not seen any repeat of the bug since I started using the code with the above change in it.

Also, the latest update claims to correct the lighting problem with the pitch-black nights in outdoor areas. I havent tried this fix yet, might do a cvs update and recompile later today though.
Title:
Post by: fida on March 04, 2005, 02:35:25 pm
how can I update planeshist with cvs? thanks
Title:
Post by: Tharizdun on March 05, 2005, 04:16:54 am
Easiest way is to go to the location that the cvs source was checked-out to, and run \'cvs -z9 update -dP\'. Its up to you whether you update the other parts ( cal3d, cs and cel ). If they are working stable and produce no errors when compiling perhaps its best to leave them be.

Then configure, recompile and update as per the build guide

./autogen.sh
./configure
jam -a
./updater -auto

The CVS update will pull down .xml files as well as source code. It will attempt to merge differences between what the current version on the server has, and your local copy has.. it sometimes fails to do this properly. Its not a problem though, as when you run the updater it will retrieve the newest .xml files from the planeshift server anyway.
Title:
Post by: fida on March 07, 2005, 08:44:55 pm
hi finaly i tried to update and this is the result:
[internet@localhost planeshift]$ ./updater --auto
Critical files () not found (Server only)
NOTIFY: psUpdaterEngine initialized.
Downloading registry...
0%....25%....50%....75%....100%
Loaded registry
Your updater version is newer than the server\'s..
SCF WARNING: 1 unreleased instances of class crystalspace.kernel.vfs!

I did exactly, what is written on laanx.fragnetics.com and when I tried to run the game, it looked like Molecular blue version.
Any ideas? thanks Fida
Title:
Post by: Karosh_Steinkatz on March 07, 2005, 09:08:12 pm
The CVS doesn\'t include the CB art and the updater in the current CVS is newer then the one on the server *sigh*

If you want to get the updater working, set the PS_NETVERSION in src/common/net/messages.h to 1023.
Title:
Post by: fida on March 08, 2005, 05:55:55 pm
sorry, i cannot find in message.h PS_NETVERSION and 1024, i just find 0x0030, but nothin else and I think it should be in #define
Title:
Post by: Karosh_Steinkatz on March 08, 2005, 09:53:17 pm
GAH!
Note to self: Don\'t write in a rush when you are at work.

What I meant to write was the UPDATER_VERSION in src/updater/updaterglobals.h, which you have to set to 1023 to get the updater to work with the current one on the server. But don\'t forget to increase it again after the server\'s one was updated ;)
Title:
Post by: lanser on March 09, 2005, 12:11:08 am
Going back to the original subject my system also slows down after 30-40mins from a usual 120+ fps down as low as 0.5 if I log out and in again its back to normal. glx gears give 2000+ in a window 250+ full screen.

amd 2500 barton
asus a7v8x
western 160gb
256 mb ram
audacity2
suse 9.1
nvidia 6629
1mb adsl
any suggestion gratefully received

John
Title:
Post by: Karosh_Steinkatz on March 09, 2005, 12:17:51 am
You should get more ram ;)
256MB is barely enough to play it, but the usual memory usuage of PS is ~500MB, so get at least another 256MB.
Title:
Post by: fida on March 09, 2005, 04:40:18 pm
sorry, that I bother again but it didnt work, it still says, that my version is newer then server\'s...
Title:
Post by: Karosh_Steinkatz on March 09, 2005, 04:46:27 pm
Did you recompile the updater after you changed the version? I know, this is a stupid question, but you never know  :rolleyes:
Title:
Post by: fida on March 09, 2005, 04:51:07 pm
so I have to run jam -a again?
Title:
Post by: Karosh_Steinkatz on March 09, 2005, 05:30:07 pm
Just run \'jam updater\', that will be enough.