RCBot2 Guide

 

Website: http://rcbot.bots-united.com

Forums: http://rcbot.bots-united.com/forums

Contents

RCBot2 Guide. 1

Installing. 1

Manual Installation. 1

Dedicated server install 1

Running. 1

Adding bots. 1

Team Fortress 2. 1

DOD:Source. 2

Waypoint Files. 2

How to Waypoint. 2

Commands. 2

waypoint. 3

addbot <class> <team> <name>. 3

control <name>. 3

pathwaypoint. 3

debug. 3

config. 4

users. 4

util 4

 

 

Installing

You can use the RCBot2 Installer.exe to install and run the RCBot2 Launcher, from there everything is easy. However if you run in to problems you can install manually

Manual Installation

Copy the rcbot2 folder from ‘files/’ into your steam folder / steamapps / <account name> folder ; where account name is the name of your steam account

Dedicated server install

Installing on dedicated server means installing manually and editing some config.ini files.

Step 1 Follow the manual install advice above then go into rcbot2/config/, open bot_mods.ini with a text editor

Follow the instructions in bot_mods.ini to add your dedicated sever path, e.g. you are playing DOD:S and the path is in orangebox/dod

Note: any line beginning with ‘#’ is a comment and the bot will ignore it.

Uncomment the below:

mod = DOD

steamdir = orangebox

gamedir = dod

bot = DOD

Step 2 . Go into rcbot2/waypoints and change the name of the mod folder you are using in rcbot2/waypoints to the same path in your dedicated server

e.g. in rcbot2/waypoints there are folders for each mod. If it is a different name you’ll need to change it for waypoints to work.

If you are playing DOD:S and the path is in orangebox/dod, then change the first folder name from day of defeat source to orangebox

Running

You can use the RCBot2 Launcher to run RCBot2 automatically however once you have loaded the game with the launcher you need to create a server to create a game

This version of RCBot 2 uses a hook into the game engine to make bots move properly in TF2 and DOD:S. To do thid, the bot needs to know, in memory, where to hook

This is held in the variable rcbot_runplayer_cmd

The rcbot_runplayer_cmd value must be the same as the latest version of the mod, found here: http://www.sourcemodplugins.org/vtableoffsets

If you experience crashes try changing rcbot_runplayer_hookonce to 0 or 1 or vice versa

Manual running

If you want to run RCBot2 manually, just enter the command line in the modification of your choice in Steam

-insecure +plugin_load..\bin\HPB_Bot

Then create a server

Warning! If loading manually, make sure you don’t already have a VDF file with rcbot2 automatically loading. Otherwise RCBot2 will be loaded twice and strange things might happen!

Adding bots

Rcbot addbot <class> <team> <name>

If you want to add a random bot by using a bot profile, just type

Rcbot addbot

If you want to add a bot with a specific class and an automatic team type

Rcbot addbot 1

For TF2 scout or DOD:S Support class , see the list of class numbers below:

Team Fortress 2

Class numbers

1 = scout

2 = sniper

3 = soldier

4 = demoman

5 = medic ( Bugs )

6 = hwguy

7 = pyro ( Bugs )

8 = Spy

9 = Engineer

 

Team Numbers:

2 = red

3 = blue

DOD:Source

Class numbers

0 = Rifleman

1 = Support

2 = Assault

3 = Sniper

4 = Machine Gunner

5 = Rocket

 

Team Numbers:

2 = Allies

3 = Axis

Waypoint Files

These are stored in steam/steamapps/<email>/rcbot2/waypoints/<steam folder name>/<mod name>

There are 4
 Filetypes

rcw
The main file type is
 <mapname>.rcw, this is the actual waypoint, and is all you need to share waypoints

rcv
This is generated by the bot, it generates a visibility table so bots know which waypoints are visible from other waypoints, this is useful to find cover positions

rcd
This is generated by the bot, and gets quite big, about 4MB, each, this is used to generate the distances between paths so bots know what paths are shorter than others.

rcb

This is generated by the bot. It keeps a record of how much danger is at each waypoint for each team. When a bot is added it will read this data for its team, when a bot leaves it will save the data by averaging its data in the file.

 

How to Waypoint

Waypointing should be done on a listen server, that means a server you create by yourself while playing the game. And you should be the only person editing the waypoints. The bot doesn't really support having extra people helping you waypoint, as waypoints will not be displayed to every player.

See the rcbot2 waypointing guide by loading the RCBot2 launcher or looking in rcbot2/manual folder

Waypoint Commands

rcbot waypoint on
 : shows the waypoints

rcbot pathwaypoint on
 : shows the waypoint paths when you stand next to a waypoint

rcbot_wpt_pathdist
 <distance>: sets the automatic path generation distance, reduce this in complex areas

Drawing method
rcbot waypoint drawtype 1, is the more advanced waypoint editing mode, this shows waypoint angles, and radius'es

rcbot waypoint add
 : adds a waypoint to the current position you are at

 

Rcbot waypoint delete: removes a waypoint where you are standing

 

Commands

 

Type rcbot for a list of commands

You must type rcbot before each command e.g. rcbot waypoint <command>

waypoint

on

puts waypoints on

off

puts waypoints off

add

adds a waypoint at your location

delete

Deletes the nearest waypoint

info

Shows information about the current waypoint

save

Saves all waypoints to file

load

Loads all waypoints and visibility information from file

clear

Deletes all waypoints (for waypointers only)

givetype

Toggle a waypoint type : see the waypoint guide for more info

drawtype

Changes the way waypoints are drawn: see the waypoint guide for more info

angle

Prints the angle from your eyes to the nearest waypoint

updateyaw

Updates the angle of the waypoint , for sniper and sentry waypoints etc

setarea

Changes the area of the waypoint

setradius

Changes the radius of the waypoint. Bots go through the waypoint at random through the radius, make sure it is not too big.

menu

Shows a givetype menu when you press ‘Esc’ for the current waypoint

cut

Just like ctrl-x, cuts the current waypoint

copy

Just like ctrl-c, copies the current waypoint

paste

Pastes the copied or cut waypoint

shiftareas <x>

Shifts all areas up or down by <x>

show <x>

Shows waypoint ID <x> by showing a lightning bolt towards the waypoint

showvis

Shows the visibility of the current waypoint

addbot <class> <team> <name>

Adds a bot with class, team, skill

If no value, the bot will choose an automatic value from the profile

control <name>

Controls a bot with <name>

 pathwaypoint

see waypoint guide for commands

debug

developer commands: see bot forum at http://rcbot.bots-united.com/forums

config

event_version

For future debugging only

max_bots

If you want bots to leave when players join, then make the value higher than min_bots

min_bots

Minimum bots (similar to tf_bot_quota)

kickbot

Kicks a random bot

users

For People that can use rcbot2 commands on your server

Show

Shows all the users that can access commands

util

For some debugging stuff

search

Searches for nearby entities and prints them