.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   FritzBot (http://forums.bots-united.com/forumdisplay.php?f=53)
-   -   add all custom bots at once? (http://forums.bots-united.com/showthread.php?t=5173)

onepercenter 19-04-2006 20:17

add all custom bots at once?
 
hello, first of, i would like to say this is the best thing ever!!! i rarely play online anymore lol, thank you so much, use are all awesome people.

i was just wondering is it possible to load all my bots at once instead of typing like /addbot mybot1; addbot mybot2; addbot mybot3; addbot mybot4 etc etc....

Edit: i forgot to mention this is enemy territory, not rtcw :)

Thank you very much. and keep up the great work.

onepercenter 19-04-2006 20:42

Re: add all custom bots at once?
 
i wonder if it is even possible, i hope it is, i have alot of bots :(

Valiant 19-04-2006 21:01

Re: add all custom bots at once?
 
I'm not sure if you can "Add All" in any sense of the word. Last time I heard, the botlimit was 32 anyway.

The way I go about it is, I just bind a key for addbot and mash it to fill in empty slots (in RTCW). In ET, you can specify the minimum amount of bots to be added as whatever number you want there to be - provided your maxplayers is high enough. All you have to do is click the Fritzbot box on the bottom of the host game screen and set the numbers to your liking.

onepercenter 19-04-2006 21:27

Re: add all custom bots at once?
 
i meant to add all my bots that i made in the C:\Program Files\Wolfenstein - Enemy Territory\fritzbot\bots folder.

the ones that i used

{
funname "^1_^7W^1_ ^7OnePercenter ^1#^71"
class 2 // Engineer
weapon 0 // Mp40
team 0 // Axis
}


if i could have all the bots in there like onepercenter.bot and the rest to come in just like it does normally but with my own bots.


I hope you can understand what i am asking. Thanks.

Valiant 19-04-2006 21:54

Re: add all custom bots at once?
 
I just didn't quite get your meaning there, sorry about that.

Yes what you're talking about doing is very simple really. All you have to do is make yourself a .cfg file in notepad and place it in your Etmain folder, fill it in with the commands you want such as:

Addbot onepercenter
addbot whoever
addbot theotherone

and so on, make sure there is no / at the front and that the name matches the filename of the .bot files.

Then when you're in game, all you should have to do is open your console and type /exec yourbots.cfg. So if you named the cfg file "Mybots" you'd type in /exec mybots.cfg for example. Alternatively you can make an autoexec.cfg in your Etmain and place the line:

Exec mybots.cfg

That should load up your custom botlist whenever the map starts (hopefully), and if you're going to use this method I would place the .cfg's in the fritzbot folder so that they don't kick in at unwanted times and flood your client with bad commands.

Though in either case you should prevent the default bots for each map from loading so that you're not frustrated trying to clear out the ones you didn't want. To do this set the minbots to 0 in the area I described earlier and leave the maxbots at 16 or whatever number you need. For a dedicated server, you probably can just add the exec command to your server.cfg to get the same result.

onepercenter 19-04-2006 23:14

Re: add all custom bots at once?
 
ty man, that answered my question perfectly, your the ownage :)

Infinite Death 20-04-2006 03:05

Re: add all custom bots at once?
 
is
{
funname "Whatever"
class 2 // Engineer
weapon 0 // Mp40
team 0 // Axis
}

the only thing you put in the file then save it as a .bot? also do you have to create seperate bot files per bot or can you do a whole bunch in one .bot file?

also im not exactly sure how to make a cfg file like you explained , i know how to exec a cfg just not sure how to set up one , is there a tutorial i can look at that explains all this?

CrapShoot 20-04-2006 03:35

Re: add all custom bots at once?
 
Each bot needs to be in it's own file.

For creating a custom config to /exec, look here:

http://wiki.bots-united.com/index.ph...d_Server_Setup

Infinite Death 20-04-2006 04:07

Re: add all custom bots at once?
 
thanks alot :)

Infinite Death 20-04-2006 04:53

Re: add all custom bots at once?
 
only one of my bots are joining, the rest come up with the messege "No closing brace in bot file or file to long!!!"

they all have closing braces they are all identical to the one bot that does join just different names any idea whats wrong?

Maleficus 20-04-2006 05:09

Re: add all custom bots at once?
 
Put your .bot file in a .zip, then attach to the forum here so I can see what it looks like - its really hard for me to diagnose stuff I can't see. ;)

Infinite Death 20-04-2006 05:20

Re: add all custom bots at once?
 
1 Attachment(s)
ok i attached one of my bots that wont load , the one that will load is exactly like this one just the name is different

CrapShoot 20-04-2006 05:50

Re: add all custom bots at once?
 
1 Attachment(s)
Yeah, there is some weirdness there. I couldn't see anything visibly wrong with that file, but I saw the same message.

Try the attached file, it should work. Then use it to create the others. The bot file is inside the zip, not just renamed like your attachment.

Maleficus 20-04-2006 05:56

Re: add all custom bots at once?
 
I think the problem is the text editor your using - use something like Notepad that won't add a bunch of hidden characters that may cause ET's text parsing code to choke.

I checked your file, and it was full of them.

Infinite Death 20-04-2006 05:59

Re: add all custom bots at once?
 
its working nicely now, thanks alot

edit: i was using wordpad but ill use notpad for the others now, thanks again

Maleficus 20-04-2006 06:03

Re: add all custom bots at once?
 
Wordpad and other editors can add a lot of formatting characters. Notepad won't.

CrapShoots version he sent didn't have all the formatting characters in it, and is why it works.

Infinite Death 20-04-2006 06:18

Re: add all custom bots at once?
 
yeah i noticed all the extra crap wordpad added in when i opened the others with notepad, would it mess up cfg files i make with wordpad? should i just do everything with notepad?

hobbit 20-04-2006 06:25

Re: add all custom bots at once?
 
Your best bet is to just use notepad. WordPad is a "Rich Text" editor that is kind of a lightweight version of Microsoft Word. Any text formatting (bold, italic, font, color, etc) will get encoded (non-visible to you) with bits of information that tell WordPad how to render it. All this formatting info will make the file unparseable in most cases.

Infinite Death 20-04-2006 08:10

Re: add all custom bots at once?
 
ahhh spent an hour or 2 making custom bots and now when i /exec my cfg file it loads about 5-6 of them and stops

Infinite Death 20-04-2006 21:30

Re: add all custom bots at once?
 
spent all day on this and still cant seem to figure out what i did wrong...

only thing in my cfg file is addbot commands and it loads a few of them but just suddenly stops, i have it set to maximum of 33 so i know its not cause of that.. i am lost :cursing:

Maleficus 20-04-2006 21:39

Re: add all custom bots at once?
 
Again - post the cfg here so I can see it, and also: look in the console and see what error msg is in there. If theres a problem, the code will usually complain about what it is.

Infinite Death 21-04-2006 05:21

Re: add all custom bots at once?
 
2 Attachment(s)
heres both my cfg and a screen shot of what the console said

had to change my cfg to a txt file to upload here wouldnt let me upload cfg file

hobbit 21-04-2006 05:46

Re: add all custom bots at once?
 
Looks like, at least part of the problem, is that the .cfg you have still has some of the rtf formatting in it. the last lines in the screenshot have the unknown cmd {\rtf1\ansi\....}.

Also, I don't know if you need to have sv_pure 0 set (I think you do) when loading your own bots from outside of a pk3 file. Anyways, try setting that and making sure you have your .bots files in the right directory.

EDIT: In looking again, the megaman.bot file probably has the rtf formatting in it.

Infinite Death 21-04-2006 06:03

Re: add all custom bots at once?
 
i tried the sv pure 0 thing but i get the same exact messege in the console and no bots load, i checked through all the bot files and found no rtf formatting in it like before, and now i tried to add a bot manually by typing in /addbot and its name and it tells me that the file doesnt exist.. lol

hobbit 21-04-2006 06:16

Re: add all custom bots at once?
 
1 Attachment(s)
I'd remove addbot megaman from your mybots.cfg file just to be safe. The screen shot looks like it is trying to load that one and encountering the rtf errors. (maybe you have a .pk3 file laying around with a bunk one in it?)

If you are certain that the bots are in the ~Fritzbot\bots directory, then there is one more thing I can think of to check. Sometimes when you save files from notepad it will sneakily add a '.txt' extension to it. Even if you name it "rabbitkiller.bot". And to make it worse, Windows will hide the .txt extension by default (along with other well known extensions) when you browse for it.

To Make sure that isn't the case, you can turn off this feature. In Explorer, under Tools, Folder options you will need to uncheck the "Hide extensions for known file types" option. Then browse your ~Fritzbot\bots folder to see if they have the .txt exension. If so, just remove the .txt.

Infinite Death 21-04-2006 06:36

Re: add all custom bots at once?
 
ok well now it loaded a few bots again... i deleted megaman and to my suprise he somehow still joined my game lol... 7 bots joined total and then the same message came back up..

hobbit 21-04-2006 06:50

Re: add all custom bots at once?
 
0_o

I may put together a bot editor / creator this weekend that will handle creating new bots, editing existing ones, packaging them up in a .pk3 file, and support creating configs.

It sounds like some other .bot files have rtf formatting in them too. Did you at one point create a .pk3 file with your bots in it? To troubleshoot them, just keep removing the bots from your config that are giving you trouble. (the one that is trying to be loaded just before the unknown cmd errors)

You may have megaman as the funname for one of your other bots (which would explain him joining)

Infinite Death 21-04-2006 06:55

Re: add all custom bots at once?
 
bot editor / creator would be most helpful and much easier for n00bs like me heh, thanks for your assistance with this tho i havent made any pk3 files with my bots in it

ill just delete all the ones that wont load and do one at a time and test it , thanks again for your help

hobbit 21-04-2006 06:56

Re: add all custom bots at once?
 
Sure thing. Sorry it isn't working for you yet :(

Maleficus 21-04-2006 15:20

Re: add all custom bots at once?
 
NOTE: you MUST set sv_pure to 0 BEFORE you start the map. After the map is running, the game won't change sv_pure's value until you start a new map.

sv_pure must be set to 0 or it won't read loose .bot files.

Infinite Death 21-04-2006 19:56

Re: add all custom bots at once?
 
Quote:

Originally Posted by Maleficus
NOTE: you MUST set sv_pure to 0 BEFORE you start the map. After the map is running, the game won't change sv_pure's value until you start a new map.

sv_pure must be set to 0 or it won't read loose .bot files.


before the map starts like before the warmup time is over? theres a thing in the advanced server setup says pure i changed it to no is that it? when i leave it on yes none of the bots load, when i turn it off goes back to 4-5 loading

onepercenter 21-04-2006 21:15

Re: add all custom bots at once?
 
Quote:

Originally Posted by Infinite Death
before the map starts like before the warmup time is over? theres a thing in the advanced server setup says pure i changed it to no is that it? when i leave it on yes none of the bots load, when i turn it off goes back to 4-5 loading

Yep you have to turn it to No, other then that you can only have the FritzBots load up.

Can someone explain how to add bots to a pk3?

Thanks.

ANFSCD 21-04-2006 21:37

Re: add all custom bots at once?
 
Extract the pk3 using winrar or winzip. Make the changes. Save the folder(s) as a zip file. Rename the .zip to .pk3.


All times are GMT +2. The time now is 13:34.

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