.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Releases, Installers, Docs & Coding (http://forums.bots-united.com/forumdisplay.php?f=48)
-   -   Release #2! (http://forums.bots-united.com/showthread.php?t=1639)

g4s 13-05-2004 08:14

Re: Release #2!
 
:D 8D :P
FINALLY... I can completely get rid of 2.5.
The "set flag" in wp menu now works!
Thank you sPlOrYgOn, you're the man! Great work! Keep it up!

sPlOrYgOn 13-05-2004 08:15

Re: Release #2!
 
WOW!
how completely STRANGE!
I didn't touch that stuff at all ???:(

[NvT]_KaszpiR_ 13-05-2004 08:40

Re: Release #2!
 
i preferred the sdk version :D
but thats no problem unless there are sources at all :D

sPlOrYgOn 13-05-2004 15:17

Re: Release #2!
 
you really should just try this version..
They turn a LOT better :D
make sure you use this version's cfgs if you do try it..

g4s 13-05-2004 15:34

Re: Release #2!
 
2 things

1. In botweapons.cfg, line 73, I think you made a typo, there are two 17 that one of these should be 20.
Quote:

0,2,1,4,5,6,3,12,10,24,25,13,11,8,7,22,23,18,21,17,19,15,17,9,14,16
2. If there are more than 240 names in botnames.txt, the game would crash when loading. There's no such limit in version 2.5. Did you mean to change this?

sPlOrYgOn 13-05-2004 15:41

Re: Release #2!
 
thanks, I didn't see that typo...
the first one from the left should be 20
Quote:

0,2,1,4,5,6,3,12,10,24,25,13,11,8,7,22,23,18,21,20 ,19,15,17,9,14,16
Well I didn't change anything with the names...
but the limit currently is 100...

g4s 13-05-2004 15:57

Re: Release #2!
 
hummm...100? Are you sure? But I have more than 200 names for bots, and it's working fine.

Just found another problem. If there are more than 235 names, the game crashes when I choose model. that is...

Number of names > 235 - crashes when choose model
Number of names > 240 - crashes when loading game

This had never happened when I use 2.5.

ahh.. I better start looking at the source and try to program... :P

sPlOrYgOn 13-05-2004 16:08

Re: Release #2!
 
but the array only holds upto 100 names....
maybe we need to dynamicly load memory for more names?

Pierre-Marie Baty 13-05-2004 18:36

Re: Release #2!
 
In the barebones PB2.6 source code, the bot names array was a dynamically allocated linked list, that could in theory grow as far as there were names to add to it. My first go at fixing the memory leaks and the slowmo issue was to get rid of as much dynamic memory as possible and turn all these linked lists into static arrays. I never thought one could need more than 100 botnames (since 32 players on a server is the maximum you can go anyway).

If you want to make it dynamic, I'm against linked lists. Better count the number of lines in botnames.txt and allocate once and for all enough memory for the bot names, and then fill the array. You mustn't forget to do the same for the used bot names array. And NEITHER must you forget to free them all along with the rest of the memory the bot uses (in ServerDeactivate() if I remember well).

!2SX! 19-05-2004 03:13

Re: Release #2!
 
i'm having trouble adding bots with this release, is this the right place to post?

hmm i'll post my question anyway to save time if it is, if not please tell me

i have this in my podbot.cfg file in place of the 7 addbot commands:

addbot 45 1 Bot1-45
addbot 75 1 Bot1-75
addbot 45 0 Bot2-45
addbot 75 0 Bot2-75


but it doesnt seem to be working.. all the bots just have names from the botnames.txt file, and not the names i specified. also, if i type one of those lines directly into the hlds console, nothing happens (even if i just type addbot).
any ideas?


All times are GMT +2. The time now is 16:49.

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