Eternal Posted October 14, 2012 Posted October 14, 2012 Ok so I started write a bunch of VSTRs for my server yesterday, and it's almost complete. But for some reason my bot vstr isn't working the way it should be.seta BOTS "say ^3Bots:^5_on,_off"seta BOTS_ON "addbot tavion 5 s 0;wait 20;amrename tavion ^7D^1!^7oxi^0DE ^7Recruiting;wait 20;amforceteam 7D^1!^7oxi^0DE ^7Recruiting f;wait 20;amsleep 7D^1!^7oxi^0DE ^7Recruiting;wait 20;amtele 7D^1!^7oxi^0DE ^7Recruiting 229 284 984 0;wait 20;addbot tavion 5 s 0;wait 20;amrename tavion ^3* ^7NF, FF, Instagib, Strafe;wait 20;amforceteam visit s;wait 20;addbot "Kyle Katarn" 5 s 0;wait 20;amrename "Kyle Katarn" ^3* ^7dioxide.jkhub.org;wait 20;amforceteam dioxide.jkhub.org s"seta BOTS_OFF "amkick ^7D^1!^7oxi^0DE ^7Recruiting;wait 20;amkick ^3* ^7NF, FF, Instagib, Strafe;wait 20;amkick dioxide.jkhub.org"Well to put more specifically, the BOTS_ON vstr isn't working. BOTS_OFF works beautifully Whenever I would enter "/amvstr BOTS_ON", the server would do nothing. Does anyone have any idea on how I would correct this?
MUG Posted October 14, 2012 Posted October 14, 2012 Bit hard to work through all that to find the problem, but how about this slightly easier way of doing it: somewhere in your server.cfg: seta bots_on exec botson a new botson.cfg addbot tavion 5 s 0 amrename tavion ^7D^1!^7oxi^0DE ^7Recruiting wait 200 etc etc etc
Eternal Posted October 14, 2012 Author Posted October 14, 2012 That works perfectly, thanks! MUG likes this
2MT350 Posted October 14, 2012 Posted October 14, 2012 just curious, why not use jk_fakeplayers name ; name ; name ; name?
Eternal Posted October 14, 2012 Author Posted October 14, 2012 I'm not 100% sure how that cvar works. If you could also explain jk_fakeplayers and bot_minplayers cvars in-depth, that would be awesome
MUG Posted October 14, 2012 Posted October 14, 2012 I'm not 100% sure how that cvar works. If you could also explain jk_fakeplayers and bot_minplayers cvars in-depth, that would be awesome Not much to explain. jk_fakeplayers "steve ;alan;bob"should rename your first three bots to steve alan and bob for you. (you might not need the quotes, so try removing them if that doesn't work) bot_minplayers 5will add/remove bots to keep the number of players at five.
Eternal Posted October 14, 2012 Author Posted October 14, 2012 Ah that makes sense. 1 question though... with bot_minplayers does this cvar count the number of players on the server or the number of players inside the free team? If all players were to go to spec, and bot_minplayers only counts players on servers... then that exploit can be used to crash the server.
MUG Posted October 14, 2012 Posted October 14, 2012 Thinks its just players connected. Don't see how that could crash a server though...
Mysterious Stranger Posted October 14, 2012 Posted October 14, 2012 Yep it would crash. Lol. Unless there's a fix, lets not go into detail about that...?
MUG Posted October 15, 2012 Posted October 15, 2012 Yep it would crash. Lol. Unless there's a fix, lets not go into detail about that...?Well so far as I know nearly every server with bots uses this, and I have never heard of it causing a crash. So perhaps it is protected against whatever crash you speak of?
Mysterious Stranger Posted October 15, 2012 Posted October 15, 2012 It is a crash that is less known than the others. It doesn't crash (by itself) just that there's a bug people can take advantage of... Some mods might have fixed it too.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now