IPB

Welcome Guest ( Log In | Register )

> RCBot 2 for Windows and Linux (TF2, HL2:DM, DOD:S) v1.00 r473
Nightc0re
post Jul 15 2015, 03:11 PM
Post #1


Advanced Member
***

Group: Moderator
Posts: 58
Joined: 10-July 15
From: Austria
Member No.: 2,397



(This is the latest version, for older releases see this post)

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.
Installation

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

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.

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

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"
Changelog

.) 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
Downloads
  • Linux
    • RCBot2 Complete Package for Linux - Download
  • Windows
    • RCBot2 Complete Package for Windows - Download
  • Developers
    • RCBot2 SourceCode and Bug-Fixes r473 - Download
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Nightc0re
post Aug 26 2015, 10:55 PM
Post #2


Advanced Member
***

Group: Moderator
Posts: 58
Joined: 10-July 15
From: Austria
Member No.: 2,397



QUOTE(My Time @ Aug 26 2015, 01:07 AM) *

Will this version work on a Dedicated server ? I have tried to set this up using the above instructions (Nicely done I might add ) but the bots wont load at all . Have tried both the home and non- home and I cant figure out what I am doing wrong. This is for DODS as I don't play TF2 (just too cartoony for me) . Have set up more than a few servers using .74r2 (for stability ) as any other versions just crash too much.

@Dedicated Server
I've tested it under Windows and Linux, with all three games (HL2:DM, DOD:S and TF2).
Yes, I was using dedicated servers (on Windows and Linux), downloaded with steamcmd (the latest version).
But it also works with "Listen Servers".

@Bots won't load
I've updated my DOD:S dedicated server today with the newest update, and tested it again.
It works flawlessly smile.gif

Without your server log, I can only make assumptions.

1.) First, check if metamod is running correctly.
Type "meta version":
QUOTE
meta version
Metamod:Source version 1.10.4
Built from: https://github.com/alliedmodders/metamod-so.../commit/e52d2fc
Build ID: 925:e52d2fc
Loaded As: Valve Server Plugin
Compiled on: Nov 25 2014
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/

2.) Check if the rcbot meta plugin is loaded successfully (it should get loaded automatically, if you are using the *.vdf file).
Type "meta list":
QUOTE
meta list
Listing 3 plugins:
[01] RCBot2 (1.0.0.0) by Cheeseh
[02] SourceMod (1.7.2) by AlliedModders LLC
[03] SDK Tools (1.7.2) by AlliedModders LLC

3.) Check if other plugins are running correctly. For instance SourceMod.
Type "sm version":
QUOTE
sm version
SourceMod Version Information:
SourceMod Version: 1.7.2
SourcePawn Engine: SourcePawn 1.7, jit-x86 (build 1.7.2)
SourcePawn API: v1 = 4, v2 = 6
Compiled on: May 30 2015 05:08:16
Built from: https://github.com/alliedmodders/sourcemod/commit/255e2ef
Build ID: 5208:255e2ef
http://www.sourcemod.net/

4.) You can manually load the plugin if you are typing:
"meta load addons/rcbot2/HPB_bot2_meta"

5.) If everything is loaded successfully, you should get this server log:
QUOTE
server_srv.so loaded for "Day of Defeat"
maxplayers set to 24
Server logging enabled.
Server logging data to file logs/L0827002.log
L 08/27/2015 - 00:27:03: Log file started (file "logs/L0827002.log") (game "/home/chris/Documents/server/dod_server/dod") (version "2234230")
Unknown command "mat_bloom_scalefactor_scalar"
Network: IP 127.0.1.1, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
L 08/27/2015 - 00:27:03: [RCBOT2] Starting plugin.
[RCBot] rcbot_defrate 0.19
[RCBot] rcbot_skill 0.60
[RCBot] rcbot_anglespeed 0.25
[RCBot] rcbot_avoid_radius 80

6.) You have to edit the bot_mods.ini file. It is very likely that the default steamdir for your game is wrong.
I had to change it to this:
QUOTE
mod = DOD
steamdir = dod_server
gamedir = dod
bot = DOD

7.) You can check the loading of the bot dir, in your server logs:
QUOTE

[RCBot] HL2 MOD ID 10 (Steam Folder = dod_server) (Game Folder = dod) FOUND
[RCBot] Training DOD:S capture decision 'NN' ... hold on...
[RCBot] ... done!
L 08/27/2015 - 00:27:03: All hooks started!
[RCBot] Reading rcbot2 path from VDF...
[RCBot] Reading bot profile "rcbot2/profiles/1.ini"
[RCBot] m_KVs.push_back(name,[RCB]Emotional)
[RCBot] m_KVs.push_back(visionticks_clients,4)

8.) You can check the version of rcbot with this command: "rcbot_ver"
QUOTE
rcbot_ver
"rcbot_ver" = "TF2/HL2DM/DOD:S 0.98 META linux 470 (BUILD Jul 11 2015-00:31:57)"
replicated
- RCbot version

9.) Last but not least. Make sure you use the correct offsets from my first post, because this plugin is strictly using these offsets from the config.ini file.

@Stable
I was running the server for my master thesis, for about 2 weeks, without an single error.
Therefore I think the plugin is stable smile.gif

Best regards
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
Nightc0re   RCBot 2 for Windows and Linux (TF2, HL2:DM, DOD:S) v1.00 r473   Jul 15 2015, 03:11 PM
madmax2   Nice, Thankyou... And welcome to the RCbot forum.....   Jul 16 2015, 04:35 PM
Nightc0re   Nice, Thankyou... And welcome to the RCbot forum....   Jul 17 2015, 12:28 PM
Cheeseh   Thanks. As I mentioned, it took several weeks to ...   Jul 20 2015, 01:21 AM
Nightc0re   great work, though I don't think the metamod ...   Jul 20 2015, 07:06 AM
My Time   You're welcome. I have tested DOD:S and HL2:...   Aug 25 2015, 11:07 PM
Nightc0re   Will this version work on a Dedicated server ? I ...   Aug 26 2015, 10:55 PM
My Time   Well its not loading or seeing the .vdf file . I t...   Aug 27 2015, 01:20 AM
Nightc0re   Well its not loading or seeing the .vdf file . I ...   Aug 27 2015, 11:44 AM
My Time   Thanks for the time and quick reply's on helpi...   Aug 28 2015, 01:46 AM
Valera   Thank you! It's so awesome work! God ...   Aug 28 2015, 10:38 AM
Nightc0re   Thanks for the time and quick reply's on help...   Aug 28 2015, 12:23 PM
My Time   I would like to thank you for the time and hard wo...   Aug 28 2015, 10:42 PM
Nightc0re   I would like to thank you for the time and hard w...   Aug 29 2015, 12:21 PM
Liss Olefract   Hello, I recently installed a dedicated Linux ser...   Sep 6 2015, 06:54 PM
Nightc0re   Hello, I recently installed a dedicated Linux se...   Sep 8 2015, 05:20 PM
Liss Olefract   Hi Liss, Thanks for the kind words. I've do...   Sep 8 2015, 06:43 PM
Nightc0re   Hi Nightc0re, Thank you so much for your reply, ...   Sep 8 2015, 08:25 PM
Liss Olefract   Hi Liss, Thanks for your feedback. Yeah I also t...   Sep 9 2015, 06:12 PM
Nightc0re   Hi Nightc0re, Well, I am getting there, slowly b...   Sep 10 2015, 12:26 PM
Cheeseh   You don't need special permissions or symboli...   Oct 17 2015, 11:04 PM
n0nnie   Thank you for your compilework Nightc0re. I got ...   Sep 17 2015, 11:38 AM
Nightc0re   Now to other errors occured: Server crashes if cli...   Sep 17 2015, 01:18 PM
n0nnie   I added -debug to startupline and nothing happend....   Sep 17 2015, 02:03 PM
Nightc0re   I added -debug to startupline and nothing happend...   Sep 17 2015, 07:05 PM
n0nnie   :( :( :( :( :( I added -debug to startupline...   Sep 18 2015, 07:32 AM
Nightc0re   debug.log has to be located under /server/dod/logs...   Sep 18 2015, 01:32 PM
n0nnie   here you have it: http://www.uhu-minecraft.de/cor...   Sep 18 2015, 11:32 PM
Nightc0re   here you have it: maybe this will take a while to ...   Sep 19 2015, 01:34 AM
My Time   Ok after installing the metamod bots they started ...   Sep 22 2015, 03:09 AM
n0nnie   Ok after installing the metamod bots they started...   Sep 22 2015, 06:25 AM
Nightc0re   Thanks for the feedback guys. I will have a look a...   Sep 22 2015, 02:48 PM
n0nnie   Any news nightcore?   Sep 30 2015, 12:20 PM
Nightc0re   Any news nightcore? I currently have a full-time j...   Oct 2 2015, 10:07 AM
genmac   Wow awesome work Nightcore! This will surely h...   Oct 4 2015, 05:30 AM
Nightc0re   (Legacy Version) [b]RCBot 2 for Windows and Linux...   Oct 16 2015, 08:19 AM
Nightc0re   New Linux and Windows Version! For more inform...   Oct 16 2015, 09:14 AM
n0nnie   Thank you for your work nightcore :D Waypoints ...   Oct 23 2015, 10:20 AM
Nightc0re   BUT: Server still crashes if someone is leaving (d...   Oct 23 2015, 06:31 PM
Deathreus   Plans on integrating the latest SVN build? 474 has...   Oct 24 2015, 02:04 AM
Nightc0re   Thank you for your work nightcore :D Waypoints a...   Oct 27 2015, 10:56 AM
n0nnie   New crash, same procedure: Server crashes as soo...   Nov 4 2015, 12:54 PM
vintage   Same problem here... But I have no access to start...   Nov 8 2015, 09:40 PM
vintage   Same problem here... But I have no access to star...   Nov 10 2015, 03:43 PM
Nightc0re   New crash, same procedure: Server crashes as soon ...   Nov 10 2015, 08:33 AM
bkf1   I have tryed r473 on DoDS v3029837 and when I clic...   Nov 14 2015, 12:24 PM
Nightc0re   New crash, same procedure: Server crashes as soon ...   Nov 17 2015, 09:02 AM
bkf1   Also try the above version. Thanks but I have Wi...   Nov 17 2015, 11:04 AM
Nightc0re   Thanks but I have Windows 7 not Linux :) I will p...   Nov 17 2015, 12:22 PM
n0nnie   Same crash again =( www.uhu-minecraft.de/core I ...   Nov 19 2015, 10:22 AM
mnemonic76   Rename the waypoints folder in your config folder...   Feb 21 2016, 11:48 PM
madmax2   Try this: ~/serverfiles/dod/addons/rcbot2/waypoin...   Feb 22 2016, 03:20 AM
mnemonic76   Try this: ~/serverfiles/dod/addons/rcbot2/waypoi...   Feb 22 2016, 10:28 PM
DAAS   Got also with this Windows version, random chrashe...   Mar 18 2016, 04:28 PM
Cinibonswirl26   Does this build still work on Linux?   Feb 8 2017, 11:28 PM
Cinibonswirl26   For the Linux build, custom loadouts for bots don...   Feb 9 2017, 02:05 AM
NewBie   Can't understand what could be the problem - w...   Jan 21 2018, 04:35 PM
Kammi_   ok i installed rcbot2 but i can't geht it work...   Feb 20 2018, 09:32 AM
RoboCop   Try this latest beta build recompiled by myself. T...   Feb 21 2018, 02:10 PM
NewBie   And not someone who does not throw off the ready-m...   Apr 9 2018, 08:20 AM


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

 



- Lo-Fi Version Time is now: 19th April 2024 - 01:31 AM