.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   HPB_bot (http://forums.bots-united.com/forumdisplay.php?f=35)
-   -   botman's bot10 for linux (http://forums.bots-united.com/showthread.php?t=224)

lharc 05-01-2004 21:36

botman's bot10 for linux
 
Hi !
I've started to create my own bot, and started by using botman's code,
specifically bot10 source. This wasn't easy as the sources was spread
around places (sdk2.2/linuxpatch/bot10src) and further fixes needed with the source to compile on linux and be language strict.

So I have archived together botmans source with the valve sdk2.2 with
botmans linuxpatch and my small fixes to the source, to be able to compile clean and easy (not -Wall clean yet :-).

My tar file is located at:
http://hmn.servebeer.com/game/hl/linuxbot10.tar.gz

Now my version of the bot10 (.so file) introduces some small bugs into the
game and the game crashes sometime, if I use the original bot10 file
by botman it works nice.

I have an output of the server when it crashes here:
http://hmn.servebeer.com/game/hl/bot10-valgrind.txt

Anyway I didn't thought it would be this hard to atleast bootstrap
someone elses code to start begin coding my own modifications.

cheers/lharc

Pierre-Marie Baty 05-01-2004 22:17

Re: botman's bot10 for linux
 
congratulations! :)

I bet your crash problems will vanish away if instead of testing the edict_t pointers validity with
Code:

if (pEdict == NULL)
  // invalid entity

you do it like this instead
Code:

if (FNullEnt (pEdict))
  // invalid entity

</hint> ;)


All times are GMT +2. The time now is 14:25.

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