IPB

Welcome Guest ( Log In | Register )

> [sourcemod] Bot management
Tom Hackers
post Aug 8 2009, 08:15 PM
Post #1


Member
**

Group: Members
Posts: 26
Joined: 8-August 09
Member No.: 1,649



~EDIT~ by cheeseh ---- file uploaded attached below

~EDIT~ by Tom ---- sorry, guys, i don't support this anymore, source code can be found in attachment.

First of all, i would like to thank Cheeseh for RCBot.

But i thought it would be great to make bots change classes after a while, as well as removing them when humans connect, and adding them when they disconnect, i saw "rcbot config minbots" and "rcbot config maxbots" cvars somewhere on forum. But i decided to create a sourcemod plugin for maintaining bots.
And i guess i can post it here on forum. Source code of my sourcemod plugin is provided.

CODE
Plugin game: Team Fortress 2
Plugin require: RCBot!
Plugin author: Tom Hackers
Plugin category: Server Management
Plugin version: 1.0.6 (updated 10 august 2009)
Plugin description:
bot_count_blue - Keep that count of bots in blue team. Default: 9.
bot_count_red - Keep that count of bots in red team. Default: 9.
bot_changeclass2 - Allow bots to change classes after X deathes. Default: 1.
bot_changeclass_dc - Death amount. Default: 4.
bot_count_humans - Count humans as bots. So humans replace bots. Default: 1.
bot_class_limit - Do not allow bots class spam. Automatic. Default: 1.
bot_class_adv - More advanced class limit. Keeps atleast 1 character for each class. Default: 1.
bot_fall_speed - Bot's fall speed multiplier. Default: 0.05.
bot_gravity - Bot's gravity multiplier. Default: 0.7.
bot_ping - Change bot's ping. Default: 1.
bot_ping_min - Bot's minimal ping. Default: 15.
bot_ping_max - Bot's maximum ping. Default: 120.
bot_respawn_time - Respawn time of bot's in second, keep in mind that this will be +1 second longer due to class changing. Default: 1. Value less then 1 - Disabled.
bot_respawn_humans - This will respawn humans just like bots. Default: 1. If zero, only bots will be spawned if time >= 1.
bot_names_file - Bot names file. Default: botnames.txt, warning! File should exist in "sourcemod/configs" directory!
bot_console_cheats - Allow server console to use cheat commands and adding bots without sv_cheats 1. Default: 1. Switch this to 0, if you use admin cheats plugin.

I will keep this updated... Also you should find "tf2.bots.cfg" in "cfg/sourcemod" folder. Have a nice time.
Do not forget to create botnames.txt file in "sourcemod/configs" folder, with names of bots.

Notes: This is sourcemod's plugin, extract sourcemod folder into addons folder, overwrite: yes. Enjoy.


QUOTE(Tom Hackers @ Aug 9 2009, 12:24 PM) *
Changelist 1.0.3 to 1.0.4:
- Fixed SourceTV bug, now you can use SourceTV on server and it won't crash (tv_enable 1).
- Fixed possible join/disconnect spam issues.
- Now sv_cheats cvar affect bot_console_cheats cvar, if sv_cheats is 1, everyone can use cheats, i.e. my plugin won't block cheat commands from clients.
- Changed version to 1.0.4.


QUOTE(Tom Hackers @ Aug 9 2009, 02:29 PM) *
Changelist 1.0.4 to 1.0.5:
- Now you can use spaces in bot's names.
- Default names file plugin looking for is botnames.txt! But you can create your own one and change the file name plugin is looking for!
- Changed version to 1.0.5.


QUOTE(Tom Hackers @ Aug 10 2009, 01:26 PM) *
Changelist 1.0.5 to 1.0.6:
- 2 new cvars!
bot_respawn_time - Respawn time of bot's in second, keep in mind that this will be +1 second longer due to class changing. Default: 1. Value less then 1 - Disabled.
bot_respawn_humans - This will respawn humans just like bots. Default: 1. If zero, only bots will be spawned if time >= 1.
- Fixed possible issue when server is full and bots do not respond to their count cvars.
- From now plugin works both on dedicated and listen servers.
- Plugin do not work without RCBot dll!
- Few misc. changes in code.
- Changed version to 1.0.6 and made "bot_manager_version" cvar, so from now you should be able find servers that use my plugin, for example, thro game-monitor.


You can get latest version ~snip it is attached~.

Also i uploaded example of botnames.txt file (255 names). Also i guess people can post bug reports here (plugin's bugs).
I'm not super plugin coder... I do my best. ^^

Screenshot:
IPB Image

P.s. Good evening. And if something wrong, guess admin/mods can remove topic...


Attached File(s)
Attached File  botnames.txt ( 2.57k ) Number of downloads: 1471
Attached File  tf2_bots.rar ( 18.14k ) Number of downloads: 759
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
DrPuffinKind
post Sep 2 2009, 03:29 PM
Post #2


RCBot Fan
****

Group: Members
Posts: 127
Joined: 3-August 09
Member No.: 1,638



First: Awesome plugin... it works for me flawlessly smile.gif

Second: My only request... Rcbot2 allows for the adjustment of bot difficulty and skill lvl through its use of profiles. It would be nice to have some control of this through this plugin... Even if it were just a few preset skill lvls to choose from... ala CS:S bots... Either way... Great work!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
Tom Hackers   [sourcemod] Bot management   Aug 8 2009, 08:15 PM
naMelesS   First of all, i would like to thank Cheeseh for R...   Aug 9 2009, 04:38 AM
Darkwrld   It worked..Though when using the ping it spams...   Aug 9 2009, 05:48 AM
naMelesS   It worked..Though when using the ping it spams...   Aug 9 2009, 06:05 AM
Tom Hackers   Aww man, i am from singapore. How D: PMed. Check...   Aug 9 2009, 07:37 AM
Cain   What do you mean? They change ping too much? :D ...   Nov 22 2009, 12:56 AM
Cain   Is there a command to delay the bots spawning into...   Nov 22 2009, 12:12 PM
naMelesS   Thanks i downloaded your files. It works !   Aug 9 2009, 08:13 AM
Tom Hackers   Thanks i downloaded your files but, i dont see an...   Aug 9 2009, 08:22 AM
naMelesS   First of all, i would like to thank Cheeseh for R...   Aug 9 2009, 09:22 AM
Tom Hackers   Warning! New version is 1.0.4, can be found on...   Aug 9 2009, 09:24 AM
Tom Hackers   I will update plugin shortly, next version will su...   Aug 9 2009, 11:29 AM
naMelesS   I will update plugin shortly, next version will s...   Aug 9 2009, 05:01 PM
chann   It does not support on listenserver, the bots jus...   Aug 10 2009, 04:08 AM
Tom Hackers   It does not support on listenserver, the bots just...   Aug 9 2009, 05:06 PM
Tom Hackers   Just change "rcbotd control" to "rc...   Aug 10 2009, 07:13 AM
chann   Yes it can be fixed, i don't wan't to mak...   Aug 10 2009, 08:01 AM
Tom Hackers   1.0.6 version incoming, track this post, i will ed...   Aug 10 2009, 10:26 AM
Fillmore   1.0.6 version incoming, track this post, i will e...   Aug 10 2009, 06:57 PM
KeReMiD4O   Great work mate (: Will test asap.   Aug 10 2009, 12:56 PM
wyn10   You should make a mod like this for mani....   Aug 11 2009, 08:14 AM
Tom Hackers   This management is awesome! I don't have ...   Aug 11 2009, 08:29 AM
wyn10   Sorry i didn't even use mani admin plugin, if...   Aug 11 2009, 08:37 AM
Tom Hackers   Site is here: http://www.mani-admin-plugin.com U...   Aug 11 2009, 08:39 AM
NifesNforks   Works great, but even if I change change bot_chang...   Aug 12 2009, 10:24 PM
Tom Hackers   Works great, but even if I change change bot_chan...   Aug 13 2009, 09:27 AM
Fillmore   Hahahaha, Colgate, then change that string in bot...   Aug 13 2009, 09:57 PM
Tom Hackers   That does explain why do I keep seeing myself in ...   Aug 14 2009, 08:23 AM
chann   Yay your plugin works now with the latest sourcemo...   Aug 16 2009, 07:52 AM
Tom Hackers   Yay your plugin works now with the latest sourcem...   Aug 16 2009, 01:52 PM
ash47   Crashing problems, I've tried to install this,...   Aug 17 2009, 02:26 PM
Tom Hackers   What is the metamod and sourcemod versions that yo...   Aug 17 2009, 07:36 PM
Sjru   Hello. Where I can download sourcemod or metamod t...   Aug 18 2009, 12:54 AM
ash47   ok, there is a folder in my rcbot2/waypoints folde...   Aug 18 2009, 06:41 AM
chann   You need version 1.2.2 or newer to work with the...   Aug 18 2009, 07:31 AM
343N   Ok, I found a bug... when I go to change map throu...   Aug 19 2009, 11:07 AM
Tom Hackers   Ok, I found a bug... when I go to change map thro...   Aug 20 2009, 07:07 AM
NifesNforks   P.s. i did lol mistake enabling fastrespawn on Ar...   Aug 20 2009, 10:28 AM
343N   Can someone confirm this? I used to run a dedicat...   Aug 20 2009, 11:54 AM
lals5210   tomhackers.com 404 error. please mirror upload   Aug 20 2009, 11:25 AM
Sjru   I need help here. Game crashes when I try to creat...   Aug 22 2009, 05:13 PM
Tom Hackers   I need help here. Game crashes when I try to crea...   Aug 23 2009, 02:22 PM
Sjru   Ar you using latest sourcemm (metamod)? Yes, i...   Aug 23 2009, 05:33 PM
Tom Hackers   Yes, i'm using Metamod 1.71. And from source...   Aug 24 2009, 02:19 PM
MarD   Heyyo, Nice plugin idea, but we had to switch to ...   Aug 29 2009, 02:04 AM
Tom Hackers   Heyyo, Nice plugin idea, but we had to switch to...   Aug 29 2009, 08:59 PM
Calamitous   Pardon the ignorance, but can you explain where ex...   Aug 30 2009, 03:28 AM
DrPuffinKind   First: Awesome plugin... it works for me flawlessl...   Sep 2 2009, 03:29 PM
Fillmore   First: Awesome plugin... it works for me flawless...   Sep 2 2009, 04:12 PM
DrPuffinKind   what? modify profiles for bot difficulty and skil...   Sep 2 2009, 04:39 PM
Cheeseh   look on main page in the manual... under bot prof...   Sep 3 2009, 07:06 PM
DrPuffinKind   Don;'t know about that yet. I was thinking ab...   Sep 3 2009, 07:52 PM
MrSaturn   Couldnt get it working at first, I had to manually...   Sep 5 2009, 10:50 AM
Fillmore   Couldnt get it working at first, I had to manuall...   Sep 5 2009, 12:17 PM
MrSaturn   snipers should be fixed,then they'll be more ...   Sep 5 2009, 12:39 PM
Fillmore   I cant seem to get the bot_gravity and the bot_fa...   Sep 5 2009, 05:33 PM
Tom Hackers   Couldnt get it working at first, I had to manuall...   Sep 5 2009, 05:35 PM
Fillmore   I made as default values, values that i use mysel...   Sep 5 2009, 05:38 PM
Fillmore   doubleposting to ask about a issue with this plugi...   Sep 7 2009, 01:42 PM
343N   Exactly http://img411.imageshack.us/img411/2038/en...   Sep 16 2009, 09:19 AM
Fredbob396   Can someone post a detailed tutorial on how to ins...   Oct 2 2009, 12:52 AM
Fillmore   doubleposting to ask about a issue with this plug...   Oct 3 2009, 08:18 AM
Tom Hackers   Then you get metamod: source and sourcemod. instal...   Oct 4 2009, 10:09 AM
Fillmore   plugin_load addons/metamod/bin/server.dll Before...   Oct 4 2009, 11:56 AM
Tom Hackers   does the code thing fix the mapchange bug on list...   Oct 6 2009, 09:13 PM
Fillmore   how do I get this to work on a source 2k7 dedicate...   Oct 9 2009, 03:30 PM
bir3yk   mp_stalemate_enable "1" players and bots...   Oct 15 2009, 11:51 AM
Fillmore   mp_stalemate_enable "1" players and bot...   Oct 15 2009, 03:30 PM
Cain   make sure you took insta respawn out. Tom Hackers...   Dec 3 2009, 01:22 PM
Fillmore   I really like this plugin, but it makes my server...   Dec 6 2009, 08:05 PM
343N   Your plugin isn't working for me, with the lat...   Oct 17 2009, 11:46 AM
kingkira   i'm new to team fortress D:! its such an a...   Oct 17 2009, 10:11 PM
343N   i'm new to team fortress D:! its such an ...   Oct 17 2009, 10:47 PM
kingkira   not you got me more confused lol, i'm using so...   Oct 17 2009, 10:55 PM
343N   not you got me more confused lol, i'm using s...   Oct 17 2009, 10:57 PM
kingkira   its like that c:/team fortress2/ filesin it and t...   Oct 17 2009, 11:03 PM
343N   its like that c:/team fortress2/ filesin it and ...   Oct 17 2009, 11:21 PM
kingkira   may i have links please? i don't have a addon...   Oct 17 2009, 11:46 PM
343N   may i have links please? i don't have a addo...   Oct 17 2009, 11:52 PM
kingkira   the folders i have is Bin,hl2,logs,platform,reslis...   Oct 18 2009, 12:00 AM
343N   I HAVE A PROBLEM My Plugin doesn't load, Well ...   Oct 19 2009, 04:45 AM
kingkira   help :(   Oct 22 2009, 11:11 PM
dragon26   Tom, Thanks for this it is very useful! I...   Nov 9 2009, 06:54 AM
CoZmicShReddeR   I am havign an issue with the bots calling themsel...   Nov 14 2009, 03:23 PM
der.zoomer   Your tf2-bots plugin is absolutely useful and nice...   Nov 23 2009, 09:46 AM
Cheeseh   Your tf2-bots plugin is absolutely useful and nic...   Nov 23 2009, 05:59 PM
der.zoomer   huh? rcbot does not Use botnames.txt , it uses bo...   Nov 23 2009, 08:16 PM
Cheeseh   Guess what, I was talking about Tom Hackers SM Pl...   Nov 23 2009, 09:08 PM
Fillmore   huh? rcbot does not Use botnames.txt , it uses bo...   Nov 24 2009, 12:56 PM
der.zoomer   Small update: After removing all the names from...   Nov 30 2009, 06:25 AM
Sjru   TM, your script is useful, however I need a way to...   Nov 30 2009, 08:05 PM
chann   Also bots have preference to switch to spy, even ...   Nov 30 2009, 09:30 PM
Jetz   the plugin is on according to sourcemod, the cfg f...   Dec 2 2009, 11:33 PM
343N   I HAVE A PROBLEM My Plugin doesn't load, Well ...   Dec 3 2009, 07:35 AM
343N   I fixed my previous problem, but can you please fi...   Dec 7 2009, 09:11 AM
DrPuffinKind   I fixed my previous problem, but can you please f...   Dec 7 2009, 02:08 PM
343N   I do have it. For example I was playing arena_shap...   Dec 8 2009, 04:43 AM
DrPuffinKind   huh... that is a weird one... maybe you could make...   Dec 8 2009, 12:37 PM
343N   2 things. 1. Kicking them won't fix it. 2. Yo...   Dec 9 2009, 05:42 AM
DrPuffinKind   2 things. 1. Kicking them won't fix it. 2. Y...   Dec 9 2009, 02:25 PM
2 Pages V  1 2 >


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th June 2025 - 11:39 AM