Automatic Bot Names
3 Attachment(s)
This is a simple plugin to give names to bots when they are created. I wrote it and tested it under TF2, but it should work fine with other games.
(edit: this mod definitely doesn't work on Left 4 Dead (2) servers, for reasons that I have not yet discovered. Apparently, it also crashes INS servers, but I'm currently looking in to that.) I wrote this plugin because the names for the new bots for TF2 KOTH are hardcoded into the game, and I don't think that's very cool. This plugin reads bot names from a file, and gives every new bot an appropriate name. Update (version 1.1): If you're having issues with the auto-fill bots recently added to TF2 not getting names, see this post for the (not anymore) latest version. Update (version 1.2): I just added support for loading bot names from a database table rather than from a text file. If that's your thing, see this post for the (not anymore) latest version. Update (version 1.2.1): This small change to version 1.2 adds a few bug fixes, and more advanced options for database name loading. See this post for the (not anymore) latest version. (!!!) Update (version 1.3.0): This update incorporates a 3 patches from contributors and consolidates them into one place. See this post for the latest version. Most Recent Documentation and most recent releases Updating this post for each new version has become a hassle, so I'll just say that the most recent documentation and stable source can always be found here. I'll probably still announce new releases here, though. About botnames.txt botnames.txt should be at {sourcemod}/configs/botnames.txt (so, for me, it's in valve/orangebox/tf/addons/sourcemod/configs/botnames.txt). It's a simple text file, with one name per line, and some basic comments. Anything on a line after a '#' or '//' is ignored, and blank lines are also ignored. Excessive whitespace is also trimmed off the ends. I've included a generic botnames.txt here, with names of Physicists, and an extra one with character names from science fiction novels, for a quick start and as examples. For best results, though, write your own! It's fun and easy! botnames CVars Here's a list of the relevant cvars, their defaults, and what they do:
Other Notes If anyone ends up using this plugin, I would love to see your bot name file. This could be fun! Also, I'd like to know if this works fine with other games. I'll work to fix anything that comes up. I would also like to thank contributors to this thread for their tutoring in the arcane art of blocking name change notifications. |
Re: Automatic Bot Names
Well done son. I always thought there is a game txt file with all the bot names in game dir...
|
Re: Automatic Bot Names
i think it is the botprofile.db in the mod directory
|
Re: Automatic Bot Names
Quote:
|
Re: Automatic Bot Names
Quote:
|
Re: Automatic Bot Names
Quote:
Besides, the TF2 smartbots seem to ignore the normal bot commands for the most part, including bot_randomnames, so I doubt even if this file existed it would do what I want. I ran a fulltext search on all the files in my server directory for the bot names, and only the server shared libraries came up. I suppose with some hackery you could change them there, in the binary, but you'd be limited by number to about the same number of names as is already there. My plugin is less hackish and easier to do. Also, the bot_randomnames setting seems to be truly random. That is, it can assign the same name to two concurrent bots, which is not desirable. In contrast, my plugin isn't truly random. Instead, it shuffles the name order every map load, when it reloads the names. This way, as long as you have more names in the file than bots in the server, no two bots will have the same name. (You can, in extreme cases, still get one name on two bots. For example, if you keep adding and removing bots, you'll eventually get back to the first bot name. This is not a normal use case though.) I looked for ages to find such a list of bot names that I could change. You'd expect there to be one. But I don't think there is one for TF2. |
Re: Automatic Bot Names
im going to assume that this wont rename bots in l4d.
|
Re: Automatic Bot Names
Quote:
Unfortunately, I can only personally test for TF2, but I encourage testing with other games! I'd love to hear the results. |
Re: Automatic Bot Names
tried. it crashes
|
Re: Automatic Bot Names
Quote:
I'll get a l4d server running here sometime soon, and I'll figure out what's causing the crashes. |
All times are GMT -4. The time now is 14:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.