RCBot 2 for Windows and Linux (TF2, HL2:DM, DOD:S) v1.00 r473
Information
After several weeks of hard work, I've managed it, to compile RCBot2 for Linux.
I've also fixed some bugs, and searched new offsets for TF2.
You can find a complete list of changes below.
I'm using the latest version 1.00 (revision 473) from the SVN repository, so this version might not be a stable release.
However, I've tested this version a lot, and I've not encountered any problems.
I've compiled the libraries for Windows and Linux (debug and release).
Which version should you choose?
- The debug version contains symbols for debugging, and can give a developer a more detailed stack trace if the server is crashing.
Bear in mind that the debug version is not optimized, so this version is slower than the release version.
However, if you encounter some crashes, this version should be used to detect the problem.
This plugin needs MetaMod:Source (at least version 1.10.7).
You don't have to download it, because it's already included in this package.
1.) Download the complete package for your OS.
2.) Copy the "addons" folder to your "mod" folder.
3.) (Only for In-Game Servers) Add "-console -insecure" to your launch options in Steam.
For HL2:DM the folder structure is "hl2_server/hl2mp/addons/".
For DOD:S the folder structure is "dod_server/dod/addons/".
For TF2 the folder structure is "tf2_server/tf/addons/".
This is the complete folder structure for TF2.
QUOTE
tf2_server/tf/addons
├─ metamod
│ ├─ bin
│ │ ├─ metamod.2.tf2.so
│ │ ├─ server_i486.so
│ │ └─ server.so
│ ├─ metaplugins.ini
│ ├─ rcbot2.vdf
│ └─ README.txt
├─ metamod.vdf
└─ rcbot2
......├─ bin
......│ ├─ RCBot2MetaDebug_i486.so
......│ └─ RCBot2Meta_i486.so
......├─ config
......│ ├─ accessclients.ini
......│ ├─ attack_util.csv
......│ ├─ bot_mods.ini
......│ ├─ bot_quota.ini
......│ ├─ config.ini
......│ ├─ hookinfo.ini
......│ ├─ normal_util.csv
......│ └─ weapons.ini
......├─ launcher
......├─ manual
......├─ profiles
......└─ waypoints
├─ metamod
│ ├─ bin
│ │ ├─ metamod.2.tf2.so
│ │ ├─ server_i486.so
│ │ └─ server.so
│ ├─ metaplugins.ini
│ ├─ rcbot2.vdf
│ └─ README.txt
├─ metamod.vdf
└─ rcbot2
......├─ bin
......│ ├─ RCBot2MetaDebug_i486.so
......│ └─ RCBot2Meta_i486.so
......├─ config
......│ ├─ accessclients.ini
......│ ├─ attack_util.csv
......│ ├─ bot_mods.ini
......│ ├─ bot_quota.ini
......│ ├─ config.ini
......│ ├─ hookinfo.ini
......│ ├─ normal_util.csv
......│ └─ weapons.ini
......├─ launcher
......├─ manual
......├─ profiles
......└─ waypoints
Bot Quota
This version supports an automatic bot quota, based on the human players.
To enable "Auto Bot Quota" set the rcbot_bot_quota_interval to a value above 0 (e.g. 5) (unit is seconds).
This interval is used to check the human/bot player count.
For more information see config.ini.
QUOTE
rcbot_bot_quota_interval 5
For more information about the bot quota see bot_quota.ini.
QUOTE
# Bot Quota Settings
# To use this settings you have to enable rcbot_bot_quota_interval
# Bear in mind, that the bots also count towards the max_players setting
Humans "0" => Bots "0" # This is used for the default bot quota (empty server)
Humans "1" => Bots "3" # 1 Human => 3 Bots => 4 Total Players
Humans "2" => Bots "2" # 2 Humans => 2 Bots => 4 Total Players
Humans "3" => Bots "0" # etc.
# To use this settings you have to enable rcbot_bot_quota_interval
# Bear in mind, that the bots also count towards the max_players setting
Humans "0" => Bots "0" # This is used for the default bot quota (empty server)
Humans "1" => Bots "3" # 1 Human => 3 Bots => 4 Total Players
Humans "2" => Bots "2" # 2 Humans => 2 Bots => 4 Total Players
Humans "3" => Bots "0" # etc.
You can also use the original bot quota settings.
But don't use them together with the above settings!
QUOTE
rcbotd config min_bots 5
rcbotd config max_bots 30
rcbotd config max_bots 30
Troubleshooting
- Edit bot_mods.ini (remove the '#' and edit the steamdir).
You can find the steamdir name in the server log. - Edit accessclients.ini
Use both steam-ids. ("STEAM_0:0:XXXXXX" and "[U:1:XXXXXX]")
You can find your steam-id in the server log or on this website steamdb.info/calculator (enter your steam profile url). - Rename the waypoints folder in your config folder to your "steamdir" name.
For example: "rcbot2/waypoints/team fortress 2" to "rcbot2/waypoints/tf2_server"
.) Fixed bug in getNextRoutePoint, which destroyed bot aiming, because of invalid vLook.
.) Fixed reading of files with windows line ending (\r\n)
.) Fixed all offsets for Linux
.) Added "master offset" settings for TF2.
.) Fixed a typo while reading bot configs (visionticksclients -> visionticks_clients)
.) Fixed macro in bot_profile.cpp
.) Fixed consecutive use of "addbot"
.) Added debug messages in chat (rcbot debug chat 1)
.) Added automatic bot quota, based on human players.
.) You can now edit the path of where you have installed RCBot by writing it in the rcbot2.vdf (relative paths to the mod folder are also supported)
Credits
- Cheeseh (Thank you very much for this plugin)
- ted, bir3yk for linux compatibility
- Nightc0re for bug fixes, linux compatibility and compiling