.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Forum (http://forums.bots-united.com/forumdisplay.php?f=36)
-   -   Wip 10? (http://forums.bots-united.com/showthread.php?t=1468)

skirecs 22-04-2004 02:58

Wip 10?
 
Don't mean to be pushy, but I am eager for WIP 10, so any hints when it may release?

ParkerLewis 22-04-2004 09:16

Re: Wip 10?
 
heads : ''soon''
tails : ''when it's done''

rex 22-04-2004 13:17

Re: Wip 10?
 
think it will be within two weeks:)
before Stefan goes on holidays
i'm going for tails

stefanhendriks 22-04-2004 18:05

Re: Wip 10?
 
i am not gonna say a date here :P :D

davek 22-04-2004 22:40

Re: Wip 10?
 
:'(


4 chars

Onno Kreuzinger 22-04-2004 22:53

Re: Wip 10?
 
well i tried the cvs version ,but it looks like the linux compilers do not like your coding style ;)
Code:

    bot_client.cpp: In function `void BotClient_CS_SayText(void*, int)':
    bot_client.cpp:708: name lookup of `c' changed for new ISO `for' scoping
    bot_client.cpp:697:  using obsolete binding at `c'
    make: *** [bot_client.o] Error 1

cheers

/edit
b.t.w. both compilers (older 2.95 and newer 3.2 had this error)

/edit 2
ok, i fixed these small issues and added the new objects to the makefile, but now i get this error:
Code:

  gcc-2.95.3 -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -march=i586 -O2 -w -I"/usr/src/hl_bot_build/metamod-
  1.17/metamod" -I"/usr/src/hl_bot_build/hlsdk-2.3/multiplayer/common" -I"/usr/src/hl_bot_build/hlsdk-2.3/m
  ultiplayer/dlls" -I"/usr/src/hl_bot_build/hlsdk-2.3/multiplayer/engine" -I"/usr/src/hl_bot_build/hlsdk-2.
  3/multiplayer/pm_shared" -c ChatEngine.cpp -o ChatEngine.o
  ChatEngine.cpp: In method `void cChatEngine::set_sentence(char *, char *)':
  ChatEngine.cpp:435: implicit declaration of function `int _strupr(...)'
  make: *** [ChatEngine.o] Error 1

and i ask for permission to have write access to the realbot cvs, to check in these small changes and perhaps later a small linux readme or two

stefanhendriks 22-04-2004 23:57

Re: Wip 10?
 
Well, i did not try it on Linux. Thats always a later issue. Btw, the botsaytext could have one of those bugs like:

for (int i = 0; ...)

should be:

int i;
for (i=0; ...)

btw , access granted

Onno Kreuzinger 23-04-2004 00:07

Re: Wip 10?
 
yeah google told me too, i have fixed those errors, but the last one still remains :
ChatEngine.cpp:435: implicit declaration of function `int _strupr(...)

/btw i commited my changes

stefanhendriks 23-04-2004 08:35

Re: Wip 10?
 
hmm, well thats to make all things upper case. I bet in linux they do not know that function like that. Perhaps you can find anything on google about that. I will look into that later. Gotta go for school ;)

Onno Kreuzinger 23-04-2004 12:42

Re: Wip 10?
 
*g* well i did find out what to change, i'st rather that this function is MS specific, in ISO C++ there is no function doing toupper for cstring's, so i used ifdefs and the transform function.
eg: transform (str22.begin(),str22.end(), str22.begin(), tolower);
instead of: _strupr(str22);
compiling w/o errors on linux and commited to cvs

Onno Kreuzinger 23-04-2004 12:58

Re: Wip 10?
 
.... hmm but is does not work in the linux server, it gets a memmory access error and bails out....

perhaps cruft can take some time here ;)

stefanhendriks 25-04-2004 22:09

Re: Wip 10?
 
depends on where it bails out? You could try the bot without the chatengine. You can disable that by setting the max produced sentences for the chatengine to -1 or something.

Onno Kreuzinger 26-04-2004 10:00

Re: Wip 10?
 
oh and where to change ?
i'm not yet familiar with the realbot code ;)

stefanhendriks 26-04-2004 17:58

Re: Wip 10?
 
sorry ;) its in the game class.

game.cpp

you can find in cGame::init

somewhere there is a line saying:

iMaxSentences=5;


change that into:

iMaxSentences=-1;

Onno Kreuzinger 26-04-2004 18:09

Re: Wip 10?
 
ok, hlds still crashes, this time i used strace:
Code:

meta list
 Currently loaded plugins:
          description          stat pend  file                          vers          src  load  unlod
  [ 1] RealBot                  RUN  -        realbot_mm_i386.  v3043        ini  Chlvl ANY 
 1 plugins, 1 running
 realbot
 
 ============================================================================
 REALBOT: Unknown command.
 Valid commands are:
 help, add, remove, skill, max
 
 ============================================================================
 
 realbot add
 L 04/26/2004 - 18:08:18: FATAL ERROR (shutting down): EDICT_NUM: bad number 1
 FATAL ERROR (shutting down): EDICT_NUM: bad number 1
 [WIFEXITED(s) && WEXITSTATUS(s) == 255], 0, NULL) = 5951
 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
 --- SIGCHLD (Child exited) ---
 wait4(-1, 0xbfffeadc, WNOHANG, NULL)        = -1 ECHILD (No child processes)
 sigreturn()                                                        = ? (mask now [])
 rt_sigaction(SIGINT, {0x807c8a0, [], 0x4000000}, {0x80701a0, [], 0x4000000}, 8) = 0
 rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
 rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
 rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
 rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
 write(1, "Add \"-debug\" to the ./hlds_run c"..., 102


stefanhendriks 26-04-2004 18:35

Re: Wip 10?
 
I think i know what is wrong. Can't tell where yet, but it says it has a bad edict number. So somewhere it probably wants to return INDEXENT(0) or something.

Btw, i also changed your #elseif into #else, because MSVC does not like #elseif for some reason. Updating now... (and going to hunt that bug down too)

edit:
does it also crash with NO bots in it? So just run the server and wait a bit.

does it crash immidiatly after adding one bot? Or the next round?
btw, there is also a reallog.txt created in the server dir... that could also perhaps tell something?

Onno Kreuzinger 26-04-2004 19:20

Re: Wip 10?
 
is does not crash without bots in the game, only when i add a bot it instantly chrashes

sparky99 04-09-2012 03:32

Re: Wip 10?
 
I get this on Joebot 1.6.5.2 which is supposed to be 1.6.5.3. What in the code for realbot was changed so I can get my joebot blighter to re-compile and not crash?

TA.

Whistler 09-09-2012 15:39

Re: Wip 10?
 
http://code.google.com/p/csrealbot
realbot has also been unmaintained for a long time though


All times are GMT +2. The time now is 08:39.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.