.:: 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)

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 13:52.

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