Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ RCbot2 _ Half-life 2 RCBOT I love it!

Posted by: Mladen Feb 7 2007, 03:25 AM

blink.gif I Everybody i just find Rcbot2...and i install everything in my game (hl2) It works very well (in LAN)and i like the inteligence of thath bots they are even better than certain newplayers!!!Anyway my question is..is it possible to run RCBOT2 in my server on internet? Or they are just for LAN connections?Becausse i just start my server 2 weeks ago and not a lot people playing....but if i put the bots a lot of people come.....is its possible where should i install everyplugin ????I try a lot of combination and it works perfect in LAN but when i start my SOURCE DEDICATED SERVER on my computer at home i receive the message"..Youre not alowed to used this command"I read a lot of topic and i cant find the ini access files on my computer...anyway thanks in advance ..sorry for the big topic...cheers Mladen wink.gif

Posted by: Cheeseh Feb 7 2007, 03:09 PM

QUOTE(Mladen @ Feb 7 2007, 03:25 AM) *

blink.gif I Everybody i just find Rcbot2...and i install everything in my game (hl2) It works very well (in LAN)and i like the inteligence of thath bots they are even better than certain newplayers!!!Anyway my question is..is it possible to run RCBOT2 in my server on internet? Or they are just for LAN connections?Becausse i just start my server 2 weeks ago and not a lot people playing....but if i put the bots a lot of people come.....is its possible where should i install everyplugin ????I try a lot of combination and it works perfect in LAN but when i start my SOURCE DEDICATED SERVER on my computer at home i receive the message"..Youre not alowed to used this command"I read a lot of topic and i cant find the ini access files on my computer...anyway thanks in advance ..sorry for the big topic...cheers Mladen wink.gif


I think what you are looking for is a method of adding bots automatically. Currently, as far as I remember there are no max_bots or min_bots commands.

There are also no rcbot configuration (.ini) files that deal with adding bots. Only accessable clients are implemented (config/accessclients.ini). This file allows payers to add bots themselves if someone with access joins the server.

So the only way to add bots to the server right now is if someone with access to bot commands adds them themselves. I can't remember If I added functionality to add bots between maps because it's been so long since I implemented everything

Posted by: Mladen Feb 7 2007, 05:56 PM

QUOTE(Cheeseh @ Feb 7 2007, 03:09 PM) *

I think what you are looking for is a method of adding bots automatically. Currently, as far as I remember there are no max_bots or min_bots commands.

There are also no rcbot configuration (.ini) files that deal with adding bots. Only accessable clients are implemented (config/accessclients.ini). This file allows payers to add bots themselves if someone with access joins the server.

So the only way to add bots to the server right now is if someone with access to bot commands adds them themselves. I can't remember If I added functionality to add bots between maps because it's been so long since I implemented everything


Thanks for the reply...I dont care to add it myself i just cant when i start my "source dedicated server half-life2 deathmatch" I type in the console rcbot addbot and the console tell me :"You are not alow to use this command!""but in lan is ok.....i want to put it manualy on internet how can i get my access autorised???I realy like thath bots...(i use mani admin plugin and matties event scripts)cant wait for your reply...cheers..Mladen....

Posted by: Cheeseh Feb 8 2007, 12:47 AM

QUOTE(Mladen @ Feb 7 2007, 05:56 PM) *

Thanks for the reply...I dont care to add it myself i just cant when i start my "source dedicated server half-life2 deathmatch" I type in the console rcbot addbot and the console tell me :"You are not alow to use this command!""but in lan is ok.....i want to put it manualy on internet how can i get my access autorised???I realy like thath bots...(i use mani admin plugin and matties event scripts)cant wait for your reply...cheers..Mladen....


look at the accessclients.ini, read it, enter YOUR Steam ID as the user steam ID, you will be able to add bots when you log into the server

you can always add
STEAM_ID_LAN

Posted by: Mladen Feb 8 2007, 01:54 AM

QUOTE(Cheeseh @ Feb 8 2007, 12:47 AM) *

look at the accessclients.ini, read it, enter YOUR Steam ID as the user steam ID, you will be able to add bots when you log into the server

you can always add
STEAM_ID_LAN


Where the target to find accesclient.ini? in steam? or is a missing plugin in the hbpbot2?

Posted by: Cheeseh Feb 8 2007, 01:24 PM

QUOTE(Mladen @ Feb 8 2007, 01:54 AM) *

Where the target to find accesclient.ini? in steam? or is a missing plugin in the hbpbot2?

after you run the bot once the bot creates the file rcbot2/config/accessclients.ini (i.e. in the bot folder)

Posted by: Mladen Feb 8 2007, 04:04 PM

QUOTE(Cheeseh @ Feb 8 2007, 01:24 PM) *

after you run the bot once the bot creates the file rcbot2/config/accessclients.ini (i.e. in the bot folder)

I get this message when i start the server....and after i go to rcbot/config/ but the config file is empty...did i miss something??no acces client files do i have to create it? Can you get me a good link to download everything?

Level "dm_overwatch" has been loaded
*** Can't open Waypoint Visibility table for reading!
*** No waypoint visibility file ***
*** Working out waypoint visibility information... ***
Executing dedicated server config file
Precache of sprites/redglow1 ambigious (no extension specified)
Error reading weapon data file for: weapon_bugbait
Error reading weapon data file for: weapon_annabelle
Precache of sprites/redglow1 ambigious (no extension specified)
clientMax is 12
clientMax is 12
Section [Scenes]: 1096 resources total 17.54 KB, 0.84 % of limit (2.10 MB)
couldn't exec server.cfg
*** finished working out visibility ***
*** saving waypoints with visibility information ***

Posted by: Cheeseh Feb 8 2007, 10:57 PM

hmm im pretty sure it was supposed to come with the bot

well you can make a new file and paste this in it, call it accessclients.ini, put it in rcbot2/config

QUOTE

# format is
# "<STEAM ID>" <access level>
# see http://rcbot.bots-united.com/accesslev.htm for access
# levels
#
# example:
#
#
# "STEAM_0:123456789" 63
# don't put one of '#' these before a line you want to be read
# by the bot!
#
STEAM_ID_LAN 127

add your steam id also and add a space and a number such as 63 or 127 afterwards

Posted by: Mladen Feb 10 2007, 12:42 AM

Cheeseh it dont work..i erased everithing..now i wait a step by step guide if you can tell me how to installl..Whath to install...and the link to download and please check if All the files are there...Did you ever try it on multiplayer???If not Why?everybody waiting for thath....Mladen(theres a lot of confusion and old files)
This is my last try...waiting..........Mladen

Posted by: Cheeseh Feb 10 2007, 01:41 PM

QUOTE(Mladen @ Feb 10 2007, 12:42 AM) *

Cheeseh it dont work..i erased everithing..now i wait a step by step guide if you can tell me how to installl..Whath to install...and the link to download and please check if All the files are there...Did you ever try it on multiplayer???If not Why?everybody waiting for thath....Mladen(theres a lot of confusion and old files)
This is my last try...waiting..........Mladen

if it was working before all you had to do was create that file and put it in accessclients.ini, then actually join the server (not using dedicated server console) to add bots.

your other thread is the exact same problem so I might as well merge or delete the thread as there is no need.

The bot is NOT fully functional in terms of AI etc and some commands, its only a framework.

Posted by: Mladen Feb 10 2007, 02:25 PM

QUOTE(Cheeseh @ Feb 10 2007, 01:41 PM) *

if it was working before all you had to do was create that file and put it in accessclients.ini, then JOIN the server (not using dedicated server console) to add bots.

your other thread is the exact same problem so I might as well merge or delete the thread.

The bot is NOT fully functional in terms of AI etc and some commands, its only a framework.


Ok sorry but IT WAS WORKING IN LAN before BUT NEVER IN DEDICATED SERVER......is it clear?

Posted by: Cheeseh Feb 10 2007, 03:44 PM

QUOTE(Mladen @ Feb 10 2007, 02:25 PM) *

Ok sorry but IT WAS WORKING IN LAN before BUT NEVER IN DEDICATED SERVER......is it clear?


Yes I know. calm down man.

anyway

You know there is a seperate folder for the dedicated server? you need to do the same thing with that folder that you did with HL2 deathmatch folder


e.g. the creating the "addons" folder in..

C:\Program Files\Steam\SteamApps\<user>\source dedicated server\hl2mp\

then putting the HPB_bot2.vdf in..

C:\Program Files\Steam\SteamApps\<user>\source dedicated server\hl2mp\addons

and adding HPB_bot2.dll file in

C:\Program Files\Steam\SteamApps\<user>\source dedicated server\bin\

if the bot doesn't work, or crashes then the bot is not fully functional in SRCDS, I am still working on it in those areas

Posted by: Cheeseh Feb 10 2007, 04:13 PM

I've been working on it and I've added a new command that can be accessed on a dedicated server (called rcbotd instead of rcbot, which will work on a dedicated server) but only addbot commands will work nothing else.

I haven't uploaded yet either but will soon

Posted by: Mladen Feb 10 2007, 04:23 PM

QUOTE(Cheeseh @ Feb 10 2007, 04:13 PM) *

I've been working on it and I've added a new command that can be accessed on a dedicated server (called rcbotd instead of rcbot, which will work on a dedicated server) but only addbot commands will work nothing else.

I haven't uploaded yet either but will soon


OKI.....Now we understand more each other...So for it to work on my dedicated server I have to Wait for your addon..RIGHT?
When you gonna put it to download?
Can t wait!!!!!Mladen wink.gif

Posted by: Cheeseh Feb 10 2007, 04:34 PM

QUOTE(Mladen @ Feb 10 2007, 04:23 PM) *

OKI.....Now we understand more each other...So for it to work on my dedicated server I have to Wait for your addon..RIGHT?
When you gonna put it to download?
Can t wait!!!!!Mladen wink.gif

yeah but what I also said earlier, you can still add bots to a dedicated server if you join your own server as a client (Using accessclients.ini) to add a few bots. but thats maybe whats confusing you blink.gif

Posted by: Mladen Feb 10 2007, 05:07 PM

ph34r.gif

QUOTE(Cheeseh @ Feb 10 2007, 04:34 PM) *

yeah but what I also said earlier, you can still add bots to a dedicated server if you join your own server as a client (Using accessclients.ini) to add a few bots. but thats maybe whats confusing you blink.gif


Ok Now i just create a file called ACCESSCLIENTS.INI (whit wordpad)
And i paste whath you send me in it whith my steam id...Then i put it in the folder RCBOT/CONFIG/

......................................Still not working...............................

I get the same message (YOU DONT HAVE ACCES TO THIS COMMAND)

HERE is my accessclients.ini


# format is
# "<STEAM ID>" <access level>
# see http://rcbot.bots-united.com/accesslev.htm for access
# levels
#
# example:
#
#
# "STEAM_0:123456789" 63
# don't put one of '#' these before a line you want to be read
# by the bot!
#
STEAM_ID_LAN 127
STEAM_0:0:11493434 127
STEAM_0:0:11493434 63
STEAM_0:0:11493434 32

Posted by: Cheeseh Feb 10 2007, 05:17 PM

QUOTE

STEAM_0:0:11493434 32


whoops! remove that line, you just gave yourself access to only one command that isn't implemented.

also remove the "STEAM_0:0:11493434 63" line, keep the one with 127. you only need 1 line per steam id



Posted by: Mladen Feb 10 2007, 08:17 PM

QUOTE(Cheeseh @ Feb 10 2007, 05:17 PM) *

whoops! remove that line, you just gave yourself access to only one command that isn't implemented.

also remove the "STEAM_0:0:11493434 63" line, keep the one with 127. you only need 1 line per steam id



I DID EVERITHING STILL THE SAME..... sad.gif


# format is
# "<STEAM ID>" <access level>
# see http://rcbot.bots-united.com/accesslev.htm for access
# levels
#
# example:
#
#
# "STEAM_0:123456789" 63
# don't put one of '#' these before a line you want to be read
# by the bot!
#
STEAM_ID_LAN 127
STEAM_0:0:114953434 127


Posted by: Cheeseh Feb 10 2007, 09:02 PM

try these files

http://filebase.bots-united.com/index.php?action=file&id=260

there is a new command

users show

which will show all users parsed by the accessclients.ini file, if it doesn't show anything then there was a problem finding the file or parsing it.

although you won't need to do that anyway because.. there are new commands, good old

config max_bots <num bots>

and

config min_bots <num bots>

read the updated readme, and in the dedicated server use "rcbotd" instead of "rcbot" to access bot commands

Posted by: Mladen Feb 11 2007, 01:58 AM

OK in download the rcbot2 preview update..then i replace the hpb bot dll whith the new.,THEN I SEE the accessclients.ini file in!!!!i put my steam id like we try earlier...same problem....weird.....no access.....


HERE WHATH I SEE...
in my console in the game......





Deathmatch
Map: dm_snipe_reborn_v2
Players: 1 / 16
Build 2992
Server Number 1
SetConVar: No such cvar ( macdguy_deathmessages set to v7.1.1), skipping
SetConVar: No such cvar ( ee66666eeeeeretyutr), skipping
SetConVar: No such cvar ( mani_tickrate set to 66), skipping
SetConVar: No such cvar ( mani_nextmap set to fy_blood), skipping
Begin loading faces (loads materials)
End loading faces (loads materials)
Initializing renderer...
Error: Material "engine/colorcorrection" uses unknown shader "ColorCorrection"
[QFC] La Sorciere connecté
617 gametitle fade
] rcbot addbot
Unknown command: rcbot
] rcbotd
[RCBot] Error, no map running or not dedicated server
Next map is Map decided by vote
] plugin_load hpb_bot2
[RCBOT] Found interface INTERFACEVERSION_PLAYERINFOMANAGER IPlayerInfoManager playerinfomanager
[RCBOT] Found interface INTERFACEVERSION_VENGINESERVER IVEngineServer engine
[RCBOT] Found interface FILESYSTEM_INTERFACE_VERSION IFileSystem filesystem
[RCBOT] Found interface INTERFACEVERSION_ISERVERPLUGINHELPERS IServerPluginHelpers helpers
[RCBOT] Found interface INTERFACEVERSION_ENGINETRACE_SERVER IEngineTrace enginetrace
[RCBOT] Found interface IEFFECTS_INTERFACE_VERSION IEffects g_pEffects
[RCBOT] Found interface INTERFACEVERSION_PLAYERBOTMANAGER IBotManager g_pBotManager
[RCBOT] Found interface VDEBUG_OVERLAY_INTERFACE_VERSION IVDebugOverlay debugoverlay
[RCBOT] Found interface INTERFACEVERSION_GAMEEVENTSMANAGER2 IGameEventManager2 gameeventmanager
[RCBOT] Found interface INTERFACEVERSION_GAMEEVENTSMANAGER IGameEventManager gameeventmanager1
[RCBOT] Found interface INTERFACEVERSION_SERVERGAMECLIENTS IServerGameClients gameclients
-----------------------------------------------------------------
RCBOT LICENSE
-----------------------------------------------------------------
RCBot by Paul Murphy adapted from Botman's HPB Bot 2 template.

RCBot is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

RCBot is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with RCBot; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

In addition, as a special exception, the author gives permission to
link the code of this program with the Half-Life Game Engine ("HL"
Engine") and Modified Game Libraries ("MODs") developed by Valve,
L.L.C ("Valve"). You must obey the GNU General Public License in all
respects for all of the code used other than the HL Engine and MODs
from Valve. If you modify this file, you may extend this exception
to your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from your
version.
-----------------------------------------------------------------
Loaded plugin "hpb_bot2"
] rcbot addbot
Unknown command: rcbot
Server Tick Rate 66
PRESS ESC TO SET YOUR OPTION LIKE SOUNDS AND OTHER
Current map is dm_snipe_reborn_v2
Next map is Map decided by vote
Server Tick Rate 66
PRESS ESC TO SET YOUR OPTION LIKE SOUNDS AND OTHER
Current map is dm_snipe_reborn_v2
This server is running DeathMessages v7.1.1 by MacDGuy
Next map is Map decided by vote
Server Tick Rate 66
PRESS ESC TO SET YOUR OPTION LIKE SOUNDS AND OTHER
Current map is dm_snipe_reborn_v2
Next map is Map decided by vote
20 MINUTES UNTIL END OF MAP

Posted by: Cheeseh Feb 11 2007, 02:54 PM

Dont use plugin_load!! it is suppoosed to be loaded before the games starts by using the .vdf file in the addons folder (read the readme)

Posted by: Mladen Feb 11 2007, 04:50 PM

QUOTE(Cheeseh @ Feb 11 2007, 02:54 PM) *

Dont use plugin_load!! it is suppoosed to be loaded before the games starts by using the .vdf file in the addons folder (read the readme)



I know...i use it after the game start because it wasent working whitout using the plugin...

DID you try IT???IT dont load and dont work in the DEdicated server....It just work in LAN.....

Can you try install it on your machine and you will see whatj i mean,.......Mladen

Posted by: Cheeseh Feb 11 2007, 09:45 PM

I know that the bot will not work properly when using "plugin_load", ive had people having problems with the bot loading it using that. You are better trying to get it to work using the .vdf file. its simple. Create an addons folder (if not already existing) in hl2mp folder located in your dedicated server and half-life 2 deathmatch directory, and put HPB_bot2.vdf in it. It should load.

Posted by: Mladen Feb 11 2007, 10:15 PM

QUOTE(Cheeseh @ Feb 11 2007, 09:45 PM) *

I know that the bot will not work properly when using "plugin_load", ive had people having problems with the bot loading it using that. You are better trying to get it to work using the .vdf file. its simple. Create an addons folder (if not already existing) in hl2mp folder located in your dedicated server and half-life 2 deathmatch directory, and put HPB_bot2.vdf in it. It should load.



Im not using "plugin_load" I have the file vdf in addon...BUT LIKE I TELL YOU BEFORE IN THE DEDICATED SERVER I CAN T ADDBOT!!! CAN YOU ANSEWRS MY QUESTION?? DID YOU EVER TRY IN THE DEDICATED SERVER???
IF NOT TRY!!!BECAUSE WE ARE SAYING ALWAYS THE SAME THING FOR ABSOLUTELY NO RESULT...





Map: dm_snipe_reborn_v2
Players: 1 / 16
Build 2992
Server Number 1
Begin loading faces (loads materials)
End loading faces (loads materials)
Initializing renderer...
Saved score reloaded
[QFC] La Sorciere connecté
] rcbotd
[RCBot] Error, no map running or not dedicated server
] rcbot addbot
[RCBot] You do not have access to this command
] plugin_print
Loaded plugins:
---------------------
0: "RCBot2 Plugin, by Cheeseh"
1: "Mani Admin Plugin 2006 V1.2BetaN RC2-13 VSP, www.mani-admin-plugin.com"
2: "Mattie's EventScripts, http://mattie.info/cs, Version:1.1.1.015w"
3: "Mattie's System Call Plugin 0.1"
4: "Spawn/Chat Protection; by Bernt Nilsson, version 1.2.4"
5: "Infinite Sprint - Shyotl"
---------------------
Next map is Map decided by vote

Posted by: Cheeseh Feb 12 2007, 02:51 AM

calm down man, have a coffee. I spent many many hours yesterday getting it to work on the dedicated server per your request, and yes I did try it and it worked fine.

rcbotd command only works in the dedicated server console (go into dedicated server console then use this command)

rcbot command only works on the client (only for clients in accessclients.ini)

remember there is a seperate folder for the dedicated server as I told you before, you need to put the HPB_bot.vdf in the source dedicated server/hl2mp/addons

also rememebr "addons" not "addon"

it will not work for the dedicated server if you only installed the bot to halflife 2 deathmatch folder and not the dedicated server, which is what I am guessing you have done

it worked with me, therefore I tested it and it worked, so it should work with you, obviously you missed that step in the installation.

Posted by: Mladen Feb 12 2007, 03:23 AM

Hi Chesseh ..i apreciate your work,and i m not mad....I did everiything you told me....I have a lot of program on my server ....So i know how to install script addons....ect ect.............

Your program is easy to install....2 files....i put hpb_bot2 vdf in my /Email/source dedicated /hl2mp/addons...............then.....HPB_Bot2.dll into the "\source dedicated server\bin" folder...........then run my steam dedicated server.....start the game ....join the game......i type rcbotd in the console....then take a look.......] rcbotd
[RCBot] Error, no map running or not dedicated server...so???????????????????? wink.gif blink.gif




Map: dm_snipe_reborn_v2
Players: 1 / 16
Build 2992
Server Number 1
Begin loading faces (loads materials)
End loading faces (loads materials)
Initializing renderer...
Saved score reloaded
[QFC] La Sorciere connecté
] rcbotd
[RCBot] Error, no map running or not dedicated server
] rcbot addbot
[RCBot] You do not have access to this command
] plugin_print
Loaded plugins:
---------------------
0: "RCBot2 Plugin, by Cheeseh"
1: "Mani Admin Plugin 2006 V1.2BetaN RC2-13 VSP, www.mani-admin-plugin.com"
2: "Mattie's EventScripts, http://mattie.info/cs, Version:1.1.1.015w"
3: "Mattie's System Call Plugin 0.1"
4: "Spawn/Chat Protection; by Bernt Nilsson, version 1.2.4"
5: "Infinite Sprint - Shyotl"
---------------------
Next map is Map decided by vote

Posted by: Cheeseh Feb 12 2007, 01:21 PM

did you type rcbotd in the dedicated server console??? I am guessing you didn't thats what I made the command for, not for the client. What you are doing is trying to access the RCbot dedicated server command thorugh a client which cannot be done. You need to go into the dedicated server console, either by using remote console, or by selecting the dedicated server window and entering rcbotd <command>. you can then use "rcbotd config max_bots <max bots>" in the dedicated server and the server will add bots automaticall and stay at the maximum number of bots

whats going wrong is...

you are getting confused with the client and server. When you join a game and play thats the client, you cannot use rcbotd command on that console, thats why it is saying "Error, no map running or not dedicated server". Similarly, you can only access the rcbot command through a client if the STEAM_ID is written in the accessclients.ini, to find the correct steam ID, connect the server and type "status" in the client console, find your correct steam ID from that, it will most likely be STEAM_ID_LAN if it is a local server.

The server is the source dedicated server console, which can be accessed through "rcon" (remote console) or directly in the dedicated server console, It should create a window for the dedicated server and it has a console tab in the window.

rcbotd only works for me as it shouldi n the dedicated server console, see below

IPB Image

IPB Image

client:
IPB Image

after joining on ded server:
IPB Image

Posted by: Mladen Feb 12 2007, 11:52 PM

You are absolutely right!!!I was using the clients console instead of the green one!!THANKS ALOT!!!!

CHESEEH is THE KING!

Now for the max and min bots how it works?? I type in the green console rcbotd max_bots 5 and nothing hapen......


Mladen Thanks again for your good work....

Posted by: Cheeseh Feb 13 2007, 12:10 AM

its

rcbotd config max_bots <bots>

Posted by: Mladen Feb 13 2007, 12:35 AM

QUOTE(Cheeseh @ Feb 13 2007, 12:10 AM) *

its

rcbotd config max_bots <bots>



Oki!! NOW for the none custom map....can i learn the bots waypoints?

Posted by: Cheeseh Feb 13 2007, 12:49 AM

QUOTE(Mladen @ Feb 13 2007, 12:35 AM) *

Oki!! NOW for the none custom map....can i learn the bots waypoints?


you will need to make your own, its the same as rcbot1, you need to use the client however thus you should try and get the accessclients working by putting that steam ID (found using the "status" command) in accessclients.ini in rcbot/config/. when you get access to bo commands, using the client, add a waypoint using "rcbot waypoint add" Etc (most are in the readme)

rcbot waypoint <on/off>
rcbot pathwaypoint <on/off>
rcbot waypoint info
rcbot waypoint delete
rcbot waypoint givetype <ladder/jump/crouch/unreachable>

there are also more commands but you may not need them.

biggrin.gif

It may not work very well though as I said the bot is not even in the release stage, it is just a preview, a build of the framework source code that is available, nothing else.

Posted by: Mladen Feb 13 2007, 01:52 AM

So i load a map then i type "rcbot waypoint add"..then.....(in client console) My steam id is there in accessclient its ok for thath...