Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - trebiani

Pages: [1]
1
Technical Help: IN GAME bugs (after loading world) /
« on: February 24, 2005, 03:21:07 pm »
Quote
Originally posted by Karosh_Steinkatz You are using gcc 3.4.x, aren\'t you?
Open the file /src/common/util/heap.h and change all \'Get\' to \'this->Get\' and the one \'Top\' to \'this->Top\'


Yes, you are right - i\'m using gcc 3.4.3

I did a cvs update and i saw that the Get\'s and Top is allready changed - thanks! I\'m compling it right now.

No luck :-( here are the new errors:

Code: [Select]
C++ ./out/linuxx86/debug/src/common/util/eventmanager.o
In file included from src/common/util/eventmanager.h:26,
                 from src/common/util/eventmanager.cpp:30:
./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\' must 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 name is deprecated)

    g++ -c -o ./out/linuxx86/debug/src/common/util/eventmanager.o     -DCS_DEBUG -g3 -I/home/test/crystal/CS/include -I/home/test/crystal/cel/include -fexceptions  -I. -I./include -I./src/common -I./src/client -I./src/server src/common/util/eventmanager.cpp

...failed C++ ./out/linuxx86/debug/src/common/util/eventmanager.o ...


Code: [Select]
C++ ./out/linuxx86/debug/src/client/pscal3dcallback.o
In file included from src/client/pscal3dcallback.cpp:30:
src/client/pscal3dcallback.h:24:32: cal3d/animcallback.h: No such file or directory
In file included from src/client/pscal3dcallback.cpp:30:
src/client/pscal3dcallback.h:48: error: invalid use of undefined type `struct CalAnimationCallback\'
/home/test/crystal/CS/include/imesh/spritecal3d.h:99: error: forward declaration of `struct CalAnimationCallback\'
src/client/pscal3dcallback.cpp: In member function `virtual csPtr psCal3DCallbackLoader::Parse(iDocumentNode*, iLoaderContext*, iBase*)\':
src/client/pscal3dcallback.cpp:74: error: no matching function for call to `iSpriteCal3DFactoryState::RegisterAnimCallback(csString&, psCal3DCallbackEffect*, float&)\'
/home/test/crystal/CS/include/imesh/spritecal3d.h:325: note: candidates are: virtual bool iSpriteCal3DFactoryState::RegisterAnimCallback(const char*, CalAnimationCallback*, float)

    g++ -c -o ./out/linuxx86/debug/src/client/pscal3dcallback.o     -DCS_DEBUG -g3 -I/home/test/crystal/CS/include      -I/home/test/crystal/cel/include -fexceptions -I/home/test/crystal/cal3d  -I. -I./include -I./src/common -I./src/client -I./src/server src/client/pscal3dcallback.cpp

...failed C++ ./out/linuxx86/debug/src/client/pscal3dcallback.o ...

2
Technical Help: IN GAME bugs (after loading world) / CVS compile error
« on: February 23, 2005, 09:55:20 am »
i folowed this howto:
http://laanx.fragnetics.com/index.php?page=build_gentoo

and get many, many of these errors:
Code: [Select]
C++ ./out/linuxx86/debug/src/npcclient/pathfind.o
C++ ./out/linuxx86/debug/src/npcclient/pathmanager.o
In file included from ./src/common/util/eventmanager.h:26,
                 from src/npcclient/npcbehave.h:31,
                 from src/npcclient/pathmanager.cpp:29:
./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\' must 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 name is deprecated)
./src/common/util/heap.h:52: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' must be available
./src/common/util/heap.h: In member function `T* Heap::DeleteMin()\':
./src/common/util/heap.h:62: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' must be available
./src/common/util/heap.h:63: error: there are no arguments to `Top\' that depend on a template parameter, so a declaration of `Top\' must be available
./src/common/util/heap.h:76: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' must be available
./src/common/util/heap.h:76: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' must be available
./src/common/util/heap.h:80: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' must be available
./src/common/util/heap.h:81: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' must be available
./src/common/util/heap.h: In member function `T* Heap::FindMin()\':
./src/common/util/heap.h:92: error: there are no arguments to `Get\' that depend on a template parameter, so a declaration of `Get\' must be available

    g++ -c -o ./out/linuxx86/debug/src/npcclient/pathmanager.o     -DCS_DEBUG -g3 -I/home/test/crystal/CS/include    -I/home/test/crystal/cel/include -fexceptions  -I. -I./include -I./src/common -I./src/client -I./src/server src/npcclient/pathmanager.cpp

...failed C++ ./out/linuxx86/debug/src/npcclient/pathmanager.o ...


and this error:

Code: [Select]
C++ ./out/linuxx86/debug/src/client/pscal3dcallback.o
In file included from src/client/pscal3dcallback.cpp:30:
src/client/pscal3dcallback.h:24:32: cal3d/animcallback.h: No such file or directory
In file included from src/client/pscal3dcallback.cpp:30:
src/client/pscal3dcallback.h:48: error: invalid use of undefined type `struct CalAnimationCallback\'
/home/test/crystal/CS/include/imesh/spritecal3d.h:99: error: forward declaration of `struct CalAnimationCallback\'
src/client/pscal3dcallback.cpp: In member function `virtual csPtr psCal3DCallbackLoader::Parse(iDocumentNode*, iLoaderContext*, iBase*)\':
src/client/pscal3dcallback.cpp:74: error: no matching function for call to `iSpriteCal3DFactoryState::RegisterAnimCallback(csString&, psCal3DCallbackEffect*, float&)\'
/home/test/crystal/CS/include/imesh/spritecal3d.h:325: note: candidates are: virtual bool iSpriteCal3DFactoryState::RegisterAnimCallback(const char*, CalAnimationCallback*, float)

    g++ -c -o ./out/linuxx86/debug/src/client/pscal3dcallback.o     -DCS_DEBUG -g3 -I/home/test/crystal/CS/include     -I/home/test/crystal/cel/include -fexceptions -I/home/test/crystal/cal3d  -I. -I./include -I./src/common -I./src/client -I./src/server src/client/pscal3dcallback.cpp

...failed C++ ./out/linuxx86/debug/src/client/pscal3dcallback.o ...


can someone help me with that?
btw.: CS, cel and cal3d compiled without error!

greetigs,
treb

3
Technical Help: IN GAME bugs (after loading world) /
« on: February 14, 2005, 05:28:59 pm »
Quote
Originally posted by Karosh_Steinkatz
I\'m using gcc 3.4.3 and I don\'t have any problems. Get fresh checkouts of cal3d and CS and try to compile them again. But try \'jam -a\' on every project first, it may solve it.

i\'m not able to compile everything from the CVS and with a cal3d which is one week old i get many errors (see first posting in this thread) in planeshift.
from the crystalspace mailing list:
Quote

>> hi all!



>> /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
>> `.L245\' referenced in section `.rodata\' of
>> ./out/linuxx86/debug/libs/csutil/libcsutil.a(plugmgr.o): defined in
>> discarded section
>> `.gnu.linkonce.t._ZN16csReporterHelper7ReportVEP15iObjectRegistryiPKcS3_Pc\'
>> of ./out/linuxx86/debug/libs/csutil/libcsutil.a(plugmgr.o)


I\'ve been wrestling with this problem on and off for the last few days. It\'s a
bug in gcc and apparently it\'s currently fixed in gcc4.0 (which is currently
unreleased) or in gcc3.4.4, (which is also unreleased). I\'m not sure as to
the status of the gcc3.3 tree, but according to these bug reports it is also
affected:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16276
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625

Though there\'s apparently a patch that will fix it on gcc3.4.x, your distro
may or may not include the patch if they\'re distributing gcc3.4.3. By the
fact your current version is failing, it would appear they don\'t.  :)

4
hi all!

i know that there are many, many threads about planeshift and linux BUT: i can\'t get this thing running!!!

using this howto:
http://laanx.fragnetics.com/gentoo.php
with the latest cvs check-outs of cel, CS and planeshift and cal3d (1 week old!) i allways get this error:

DLERROR (/home/test/crystal/CS/sprcal3d.csplugin):
/home/test/crystal/CS/sprcal3d.so: undefined symbol:
_ZN8CalMixer13setTimeFactorEf

crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'crystalspace.mesh.object.sprite.cal3d\'
Error ID: crystalspace.spritecal3dfactoryloader.setup.objecttype
Description: Could not load the sprite.cal3d mesh object plugin!
[node: meshfact(name=carkarass),params]
DLERROR (/home/test/crystal/CS/sprcal3d.csplugin):
/home/test/crystal/CS/sprcal3d.so: undefined symbol:
_ZN8CalMixer13setTimeFactorEf
  WARNING: could not load plugin \'crystalspace.mesh.object.sprite.cal3d\'
Error ID: crystalspace.spritecal3dfactoryloader.setup.objecttype
Description: Could not load the sprite.cal3d mesh object plugin!
[node: meshfact(name=clacker),params]



crystalspace.graphics3d.shader.fixed:
  Multitexture units: whopping 8
DLERROR (/home/test/crystal/CS/sprcal3d.csplugin):
/home/test/crystal/CS/sprcal3d.so: undefined symbol:
_ZN8CalMixer13setTimeFactorEf

crystalspace.pluginmgr.loadplugin:
  WARNING: could not load plugin \'crystalspace.mesh.object.sprite.cal3d\'
Error ID: crystalspace.spritecal3dfactoryloader.setup.objecttype
Description: Could not load the sprite.cal3d mesh object plugin!
[node: meshfact(name=ylianm),params]

i could compile everything without any error!

is someone using the CVS version of planeshift, CS, cal3d and cel?
what gcc version are you using? (because there is a bug in gcc-3.4.3)

greetings,
treb

5
Technical Help: IN GAME bugs (after loading world) /
« 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 :-(

6
Technical Help: IN GAME bugs (after loading world) /
« 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!

7
Technical Help: IN GAME bugs (after loading world) /
« 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?

8
Technical Help: IN GAME bugs (after loading world) /
« 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 -

9
Technical Help: IN GAME bugs (after loading world) /
« 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?

10
Technical Help: IN GAME bugs (after loading world) /
« 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 ...

11
Technical Help: IN GAME bugs (after loading world) /
« 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

12
Technical Help: IN GAME bugs (after loading world) /
« 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 :-)

13
Technical Help: IN GAME bugs (after loading world) /
« 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

14
Technical Help: IN GAME bugs (after loading world) /
« on: February 10, 2005, 12:30:33 pm »
did the update with the java updater. same problem as ever:
Segmentation fault

15
Technical Help: IN GAME bugs (after loading world) /
« 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)

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?

Pages: [1]