![]() |
![]() |
Tom Hackers |
![]()
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. 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. 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. 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: ![]() P.s. Good evening. And if something wrong, guess admin/mods can remove topic... Attached File(s) ![]() ![]() |
![]() ![]() |
ash47 |
![]()
Post
#2
|
Newbie ![]() Group: Members Posts: 2 Joined: 17-August 09 Member No.: 1,661 ![]() |
Crashing problems, I've tried to install this, it took me atleast an hour to get it to even run RCBots, then, i tried to use your mod, and it crashes after adding a few bots
![]() I tried disabling your mod, and adding bots with the rcbot addbot command, it says "bot added" (or something similar) then no bots are actually added ![]() I've tried all sorts of different builds, none have worked so far, i really want your mod, as it will automate things for me ![]() A little more info, I'm using HldsUpdateTool Version of TF2, i have "RCBot2" in the same folder as "orangebox", i have the "HPB_bot2.dll" "in orangebox/bin" folder, i have 32 profiles, i have a profiles.txt with the following in it: CODE Valid Weapons in HLDM weapon_smg1 (Submachine Gun) weapon_shotgun (12-Gauge Shotgun) weapon_rpg (Rocket-Propelled Grenade Launcher) weapon_pistol (9mm Pistol) weapon_physcannon (Zero Point Energy Field Manipulator Gun) weapon_crowbar (Crowbar) weapon_frag (Fragmentation Grenade) weapon_crossbow (Crossbow) weapon_ar2 (Overwatch Standard Issue Pulse Rifle) weapon_bugbait (Pherapods) weapon_357 (357 Magnum) configs folder, i have my steam ID in "accessclients.ini" with a 63 after it "bot_mods.ini", i have the following CODE mod = TF2 steamdir = orangebox gamedir = tf bot = TF2 It seems to load the plugin just fine, it seems to load your plugin fine, then, it says it's putting in the bots, it's change their classes, i can see them in "view server info" then, after like 5 seconds or what ever, i get CODE "The instruction at "0x########" referenced memory at "0x#######". The memory could not be "read". Click on OK to terminate the program The last lines in the console are: (http://hq47.com/O_o.PNG) Any other info you need, i'll try get you, please try get back to me ASAP, i really would like some bots ![]() |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 20th June 2025 - 01:11 PM |