PDA

View Full Version : Metamod 1.17.2, CS1.5, Suse Linux 8.1


BoehserWolf
10-04-2004, 14:36
I tried to install JoeBot by editing the plugins.ini from metamod.
But everytime I try to run this plugin my server crashes.
I tried several so's, always the same. I decided to compile JoeBot myself, but I need some help I think.

I got the hl-sdk, metamod and joebot sources. I tried to fix the pathes of the config.mk:
SDKDIR = /files/cs/server/hlsdk/
JOEBOTDIR = /files/cs/server/joebot/
MMDIR = /files/cs/server/metamod/

Here is my Output:
make -C dlls OPT=release DLLTYPE=mm
make[1]: Entering directory `/files/cs/server/joebot/dlls'
make -C ../NNSim/som OPT=release
make[2]: Entering directory `/files/cs/server/joebot/NNSim/som'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/files/cs/server/joebot/NNSim/som'
make -C ../NNSim OPT=release
make[2]: Entering directory `/files/cs/server/joebot/NNSim'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/files/cs/server/joebot/NNSim'
gcc -I/files/cs/server/joebot//engine -I/files/cs/server/joebot//common -I/files/cs/server/joebot//pm_shared -I/files/cs/server/metamod//metamod -I/files/cs/server/joebot//NNSim/som -I/files/cs/server/joebot//NNSim -I/files/cs/server/joebot//dlls -DUSE_METAMOD -O2 -march=i586 -O2 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2 -c bot_client.cpp -o release/linux/mm/bot_client.o
cc1plus: warning: -malign-loops is obsolete, use -falign-loops
cc1plus: warning: -malign-jumps is obsolete, use -falign-jumps
cc1plus: warning: -malign-functions is obsolete, use -falign-functions
bot_client.cpp:41:22: meta_api.h: No such file or directory
In file included from bot_client.cpp:44:
bot_client.h:150: `MAX_REG_MSGS' was not declared in this scope
bot_client.cpp:66: `MAX_REG_MSGS' was not declared in this scope
bot_client.cpp: In function `void JBRegMsgs()':
bot_client.cpp:1325: `MAX_REG_MSGS' undeclared (first use this function)
bot_client.cpp:1325: (Each undeclared identifier is reported only once for each
function it appears in.)
bot_client.cpp:1326: `botmsgs' undeclared (first use this function)
bot_client.cpp:1331: `PLID' undeclared (first use this function)
bot_client.cpp:1331: `GET_USER_MSG_ID' undeclared (first use this function)
make[1]: *** [release/linux/mm/bot_client.o] Error 1
make[1]: Leaving directory `/files/cs/server/joebot/dlls'
make: *** [release] Error 2

the Output of ldd joebot_i386.so:
libstdc++-libc6.2-2.so.3 => not found
libdl.so.2 => /lib/libdl.so.2 (0x401b3000)
libc.so.6 => /lib/libc.so.6 (0x401b6000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

the Output of ldd joebot_mm_i386.so:
libstdc++-libc6.2-2.so.3 => not found
libdl.so.2 => /lib/libdl.so.2 (0x40180000)
libc.so.6 => /lib/libc.so.6 (0x40183000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

the Output of ldd joebot_i386.so:
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40181000)
libdl.so.2 => /lib/libdl.so.2 (0x40234000)
libc.so.6 => /lib/libc.so.6 (0x40237000)
libm.so.6 => /lib/libm.so.6 (0x40355000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40378000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Hope you can help me!

BoehserWolf
12-04-2004, 17:57
Nobody an idea?

cruft
13-04-2004, 02:36
It looks like it can't find your metamod header files:

bot_client.cpp:41:22: meta_api.h: No such file or directory In file included from bot_client.cpp:44:

Also, the released .so files were compiled with gcc 2.96 instead of 2.95. I understand 2.95 is probably better to compile against for compatibility's sake.

Onno Kreuzinger
13-04-2004, 18:27
Hi

@BoehserWolf
you probably only need some compat libs, the joebot_i386.so "only" misses some older libc, which is afaik aval. for suse 8.1 (go http://rpmfind.net).

working source code to compile can be found here:
http://filebase.bots-united.com/pafiledb.php?action=category&id=5

@cruft
nice to see you around, i heard of your realbot coding from stefan, nice job ideed.
as far as "normal" c/c++ code is concerned you can safely mix 2.96 and 2.95 binarys, i learned that the 2.96 is a backport of 3.x features to the 2.95 line. it was used by redhat to integrate advaced features into their kernels ahead of the gcc 3.x releases.
unless you compile the unpatched kernel or heavy stuff like mplayer it works for me almost without any glich for quite some time on my home server.
and that is a 24/7/365 tv video server i rely on :-)


cheers Onno

BoehserWolf
14-04-2004, 12:58
Thanks alot guys, I'm going to try and post if it works or not!

BoehserWolf
18-04-2004, 03:26
@ Onno: Maybe you can give me an exact help what I have to do, because I searched in rmpfind but didn't found anything. Also I searched along the whole google about this error but haven't found an answer.

Thanks alot!

Onno Kreuzinger
18-04-2004, 15:38
http://rpmfind.net/linux/rpm2html/search.php?query=compat&submit=Search+...

just search for compat on rpmfind.net, and try the rpm

BoehserWolf
19-04-2004, 23:58
Thanks alot, whithout you help I would not have found...

Now the bots work, but they seem the have a speedhack. They are all incredible fast. Is this because I'm using 1.5 or are there any hidden options?

I tried already to fix this by putting the botskill min and max to 0 but it was almost the same.

Thanks again.

cruft
20-04-2004, 08:31
Yes, I noticed this too along with a few other bugs in CS1.5. Expect to see a maintenance release soon.

@$3.1415rin
20-04-2004, 10:14
'incredible fast' in terms of movement, or in terms of reaction time ?

BoehserWolf
20-04-2004, 20:51
@ cruft: I'm glad to hear about a fix soon!

@$3.1415rin: They move so incredible fast. E.g. if you look at the map overview you can the bots running from one map edge into the other within 1 or 2 seconds. This is unplayable.

@$3.1415rin
20-04-2004, 21:01
the skill doesnt have anything to do with the speed. the skill adjusts the speeds of changing the view etc, but the speed of the player is set by the mod.


@cruft: can that be related to the different movespeed methods ? dunno, I'll try to reproduce it here, although it ran fine before release