Jump to content

Home

Server command line vars and commands.


WedgieMan

Recommended Posts

Posted

I have a Win32 dedicated server running on my Windows 2000 machine. I'm hacing some trouble with a few things.

 

First off, I'm trying to add some bots. Below is what I have in my server cfg.

 

seta bot_nochat "0"

seta bot_fastchat "0"

seta bot_grapple "0"

seta bot_minplayers "1"

seta bot_thinktime "100"

seta g_spSkill "2"

 

addbot Reelo

addbot Chiss

addbot Admiral

addbot Ben_Kanobi

addbot Keiran

addbot Shadowtrooper

addbot Reborn

 

I executed the cfg, then joined the server with my other machine. I can see the bot names in the player list, but they aren't actually in the game.

 

 

I would also like to set the "Use Light Saber Only" option and allow full force powers. I want it to be a pure server with a 60 second warm-up and I want to cycle through the maps.

 

If anyone can help me with this, I would appreciate it.

 

Thanks!

Posted

WedgieMan,

 

Heh - I see you are as boggled by the bots as I am...

 

Something comes to mind for me - are you starting the map *before* you add the bots or *after*???

 

It stands to reason that adding the bot before the map is actually started could do something like that. I've never actually done it - but it is a start.

 

Also I noticed you have bot names in your cfg that I have not seen - if a bot name has not been defined to the server then typing a command like "Addbot Dark_Helmet" won't add a bot to your server. I know there are bot files floating around and if you have a bot named Ben_Kanobi in there you'll be ok. (BTW it's Kenobi..) :)

 

Also the bot_minplayers command is still cryptic to me - I'm not sure *exactly* what it does - as it seem to change funtion depending on what you have other vars and gametypes set to.

 

As far as the option to do the other things - add these to your config:

 

seta g_weaponDisable "65531"

seta g_forcePowerDisable "0"

seta sv_pure "1"

seta g_doWarmup "1"

seta g_warmup "60"

seta g_autoMapCycle "1"

 

Have fun!

 

CRCError

 

EDIT: Screwed up on part of the config.. :)

Posted

The function of bot_minplayers is to have the server dynamically change the number of bots to keep the total number of players no lower than the number you set. So, by setting bot_minplayers "1" you are telling the server, make sure there's at least "1" player (bot or human) in the game. So, when the server is empty, it'll add a bot and when the first human player joins it removes the bot.

 

Based on what you have, here's what's happening:

 

set bot_minplayers to 1 -- ok, you want 1 bot if there's nobody around

server adds a random bot to the game

addbot Reelo -- ok, ditch the first bot and have Reelo

addbot Chiss -- ok, ditch Reelo and add Chiss

addbot Admiral -- etc

addbot Ben_Kanobi -- etc

addbot Keiran --etc

addbot Shadowtrooper - etc

addbot Reborn -- etc

 

Then you join and the Reborn bot is removed because the server now has 1 player. So, if you really want those 7 bots in there, change the bot_minplayers to 8--the 7 bots plus you. Now, every time another human joins, one bot will be removed. If a human leaves a bot will be added if the total number of players is less than 8.

 

Hope that helps.

Posted

I believe that bot_enable "1" is the default. I do not have that set in my server.cfg nor is it present in the jk2mpconfig.cfg and yet I can easily add bots using the bot_minplayers setting and manually.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...