Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ TF2 _ Install folders on TF2 dedicated server

Posted by: Weasel Jan 14 2009, 01:31 AM

I'm trying to setup the Alpha test on my TF2 server.
Please forgive me, I'm a little confused about the paths.

My dedicated server is installed via HLDSUpdateTool.
Consequently, there is no "steamapps" or any such folder on my server.

Base folder is:

CODE
C:\Program Files\Valve\SourceDS\orangebox\tf


So, do I do this:Does that sound right?

Can I put rcbot2 under C:\Program Files\Valve\SourceDS\orangebox\tf\addons? or must it be directly under the TF base folder?

Posted by: Cheeseh Jan 14 2009, 12:20 PM

QUOTE(Weasel @ Jan 14 2009, 01:31 AM) *

I'm trying to setup the Alpha test on my TF2 server.
Please forgive me, I'm a little confused about the paths.

My dedicated server is installed via HLDSUpdateTool.
Consequently, there is no "steamapps" or any such folder on my server.

Base folder is:
CODE
C:\Program Files\Valve\SourceDS\orangebox\tf


So, do I do this:
  • Put "rcbot2" folder like this: C:\Program Files\Valve\SourceDS\orangebox\tf\rcbot2
  • Put HPB_Bot2.dll into C:\Program Files\Valve\SourceDS\orangebox\tf\bin
Does that sound right?

Can I put rcbot2 under C:\Program Files\Valve\SourceDS\orangebox\tf\addons? or must it be directly under the TF base folder?


Try this

put rcbot2 folder in C:\Program Files\Valve\SourceDS\

so you have C:\Program Files\Valve\SourceDS\rcbot2\

open rcbot2\config\bot_mods.ini with notepad program

add this to the end of it:


mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2


Posted by: Venom Jan 19 2009, 06:06 PM

When you try adding a bot to a dedicated server using rcbotd addbot it says that there is no map running lol, strange.

Posted by: Cheeseh Feb 1 2009, 04:15 PM

QUOTE(Venom @ Jan 19 2009, 06:06 PM) *

When you try adding a bot to a dedicated server using rcbotd addbot it says that there is no map running lol, strange.


has a map been started?

also you'd need to make rcbot2\waypoints\orangebox\tf folder and put the waypoints in there

Posted by: LordSkitch Feb 4 2009, 09:12 PM

i decided to give her another try last night, heres what worked...

Step one!
x:\<pathtobasefolder>\ is wherever your orangebox folder is.

mine is
c:\servers\hl2server\
yours may be
c:\program files\steam\half-life2\
or even something like
d:\steam\dedicatedservers\hl2

wherever the orangebox folder in the dedicated server install is

put the rcbot2 folder there. not in the orangebox folder, but in the same folder that the orange box folder is.

so you should end up with something that looks like this:

IPB Image


Step two!
open up the rcbot2 folder, and move or copy the files in

x:\<pathtobasefolder>\rcbot2\waypoints\team fortress 2\tf\

to

x:\<pathtobasefolder>\rcbot2\waypoints\orangebox\tf\



Step three!
now, drop HPB_bot2.dll in

x:\<pathtobasefolder>\orangebox\bin\



Step four!
start up tf2 with a command like

x:\<pathtobasefolder>\orangebox\srcds -game tf -console +map ctf_2fort +plugin_load "..\bin\HPB_bot2"


if you see the rcbot licence scroll by, youve done it correctly. type rcbotd to see the list of commands you can use. if you don't see it scroll by, youve done something wrong. go back up to the top and start over.

Posted by: Darkimmortal Feb 10 2009, 06:22 PM

After finding and fixing several problems with help from this thread (thanks everyone biggrin.gif) I was then stuck with an error akin to 'Map not started or not running dedicated server.'

I was putting the plugin_load line in my server.cfg file and/or ServerCommand() in a SourceMod plugin - neither worked.

The simple solution was to put it in the command line, which is something I wouldn't have thought made a difference but I tried it as a last resort (thanks LordSkitch for your step 4 smile.gif)

Posted by: asdrubal Jun 2 2009, 11:34 AM

Hi, I followed LordSkitch's instructions to load rcbot on a TF2 dedicated server but it does not work: it founds the interfaces, loads the profiles and displays the license, but then typing in remote console rcbot addbot says
Unknown command "rcbot"

however plugin_print displays
0: "RCBot2 Plugin, by Cheeseh"

any idea?
thanks

Posted by: Cheeseh Jun 2 2009, 05:21 PM

typing in remote console

if you are using rcon then you need to use rcbotd command, not rcbot command

also I'm not sure if it works in dedicated servers

Posted by: asdrubal Jun 2 2009, 09:09 PM

QUOTE(Cheeseh @ Jun 2 2009, 07:21 PM) *
if you are using rcon then you need to use rcbotd command, not rcbot command
Thanks, rcbotd worked fine biggrin.gif

QUOTE(Cheeseh @ Jun 2 2009, 07:21 PM) *
also I'm not sure if it works in dedicated servers
It worked, you only have to add bot manually and later put them under control of rcbot.
I tried 12 bots on turbine with a couple of human players, i don't know if this is a problem of rcbot on a dedicated server or rcbot in general, but most of the times bots do not attack each other: they collide with players of the opposite team, stop, start jumping to get away, collide again... and never shoot a bullet/rocket/pipe.

Posted by: DarkSynopsis Jun 9 2009, 01:10 PM

I just got the bot running on dedicated server but every time I try to add a bot I get "Error, bad server command bot -name"

Posted by: bir3yk Jun 9 2009, 09:10 PM

Hi. Exactly this error on my linux dedicated server. Trying to correct itself. smile.gif

Posted by: asdrubal Jun 9 2009, 10:04 PM

sv_cheats 1
bot -name Foobar
rcbotd control Foobar

Posted by: Greig Jun 23 2009, 06:21 AM

Is there a function in RCbot so that when a player joins 1 bot leave etc?

I see a min and max_bot option there, and that may work on a lan server, but as its a dedi server, and we're adding bots via rcon, am i right in saying, this will be able to remove the bots under rcbot control, but it wont be able to add them again ?

Posted by: Cheeseh Jun 23 2009, 04:46 PM

use min_bots and max_bots to add/remove bots automatically

max_bots is actually the minimum number of players you always want running on the server
min_bots is the lowest number of bots that will remain if bos are automatically kicked

Posted by: Greig Jun 23 2009, 06:23 PM

QUOTE(Cheeseh @ Jun 23 2009, 05:46 PM) *

use min_bots and max_bots to add/remove bots automatically

max_bots is actually the minimum number of players you always want running on the server
min_bots is the lowest number of bots that will remain if bos are automatically kicked


Yea this is fine however when using on a dedicated server the only way to add a bot is thro rcon bot, correct?

Because of this then i think the auto kick/join function wont work on dedi servers.

am i right in saying this?

Posted by: Cheeseh Jun 23 2009, 09:53 PM

QUOTE(Greig @ Jun 23 2009, 07:23 PM) *

Yea this is fine however when using on a dedicated server the only way to add a bot is thro rcon bot, correct?

Because of this then i think the auto kick/join function wont work on dedi servers.

am i right in saying this?

min_bots and max_bots should work regardless of whether you are using a dedicated server or not

Posted by: Greig Jun 24 2009, 05:52 PM

QUOTE(Cheeseh @ Jun 23 2009, 10:53 PM) *

min_bots and max_bots should work regardless of whether you are using a dedicated server or not


Yes those functions work, to a degree. when a client logs into the server, the bot is then kicked however when the client leaves and makes a slot available for a bot to rejoin normally rcbot or rcbotd add bot etc would re add them i believe, but as this function doesnt work on a dedi server, you have to just use bot then rcbot control yea? This is my problem, when the slots are available for a bot to be auto re-added, the bots wont join as rcbot/d doesnt work on dedi servers?

just wondering if there was another way to do this

Posted by: Fillmore Jun 25 2009, 10:59 AM

QUOTE(asdrubal @ Jun 2 2009, 09:09 PM) *

Thanks, rcbotd worked fine biggrin.gif

It worked, you only have to add bot manually and later put them under control of rcbot.
I tried 12 bots on turbine with a couple of human players, i don't know if this is a problem of rcbot on a dedicated server or rcbot in general, but most of the times bots do not attack each other: they collide with players of the opposite team, stop, start jumping to get away, collide again... and never shoot a bullet/rocket/pipe.

I had this glitch too. and if you kill a bot, the server crashes.

Posted by: naMelesS Aug 1 2009, 10:12 AM

Why does the rcbot walk so fast like a scout ??

i am using tf2 dedicated server via hldsupdatetool

Posted by: Fillmore Aug 1 2009, 11:00 AM

QUOTE(naMelesS @ Aug 1 2009, 10:12 AM) *

Why does the rcbot walk so fast like a scout ??

i am using tf2 dedicated server via hldsupdatetool

It's a speed problem along with the too big gravity thing.

Posted by: naMelesS Aug 1 2009, 12:05 PM

QUOTE(Fillmore @ Aug 1 2009, 07:00 PM) *

It's a speed problem along with the too big gravity thing.


How do i fix it?, i went to another rcbot dedi server and their moving speed was fine and normal. Like Dummkopf Inc : RCBot Madness Server

Posted by: Fillmore Aug 2 2009, 12:30 AM

QUOTE(naMelesS @ Aug 1 2009, 12:05 PM) *

How do i fix it?, i went to another rcbot dedi server and their moving speed was fine and normal. Like Dummkopf Inc : RCBot Madness Server

I dunno. I only encounter the speed issue by having pyros moving at the speed of a medic or spies disguising as soldiers or heavies and they don't slow down.

Posted by: DrPuffinKind Aug 4 2009, 01:03 PM

someone should copy the relevent info out of this thread and move it to a sticky!! This was extremely helpful... thank you for taking the time, LordSkitch!!!!

++rep

Posted by: MrSaturn Sep 1 2009, 11:36 AM

QUOTE(naMelesS @ Aug 1 2009, 12:05 PM) *

How do i fix it?, i went to another rcbot dedi server and their moving speed was fine and normal. Like Dummkopf Inc : RCBot Madness Server



I dont know why, but when you load the plugin, do not load it from a cfg automatically on your server. Do it manually from a console via rcon or by remote using hlsw. It is the only way I can get them to slow down, although the speed fall is still the same.

Posted by: ickle Sep 9 2009, 10:01 PM

brilliant mod biggrin.gif now i can play on my clan's tf2 server and not be lonely biggrin.gif biggrin.gif

Posted by: trgz Oct 7 2009, 03:41 PM

Hi guys, hope someone can help...
I've been playing with bots today and after getting HL2 DM bots working (courtesy of Hurricane Bot) I turned towards TF2.
I'm using the 'Team Fortress 2 Dedicated Server' (from Steam console) and no matter what I try I keep getting 'Unrecognised command "rcbotd"' even after typing 'sv_cheats 1'.
My installation folders:
E:\Steam\steamapps\<username>\rcbot2\config + profiles + waypoints
and I have now tried a copy of HPB_Bot2.dll in all of the following folders:
E:\Steam\steamapps\<username>\source 2007 dedicated server\bin
E:\Steam\steamapps\<username>\source 2007 dedicated server\tf\bin
E:\Steam\steamapps\<username>\source dedicated server\bin
E:\Steam\steamapps\<username>\source dedicated server\hl2mp\bin
E:\Steam\steamapps\<username>\team fortress 2\bin
E:\Steam\steamapps\<username>\team fortress 2\tf\bin

and getting desperate, I also tried putting copies in
E:\Steam\steamapps\<username>\source sdk base\bin
E:\Steam\steamapps\<username>\source sdk base\sourcetest\bin


'plugin_print' reveals that nothing is being loaded

I'm assuming that the dedicated server first looks to the dll and then the dll references the rcbot2 folders so I've not been experimenting with the bot_mods.ini as yet, though I did change it to read:
mod = TF2
steamdir = team fortress 2
gamedir = tf
bot = TF2

I get exactly the same problem in-game (using 'rcbot') and out of curiosity I tried the old dedicated server and I got the same error message from (just in case the DLL was being picked up from the old dedicated server).
sad.gif
One last point, I did buy the Retail version Orange Box but this TF2 install was done direct from Steam so I have no orangebox folder as shown in postings by others.

Posted by: bir3yk Oct 7 2009, 05:41 PM

in console command: plugin_load ..\bin\hpb_bot2

Posted by: trgz Oct 8 2009, 09:38 AM

QUOTE(bir3yk @ Oct 7 2009, 06:41 PM) *

in console command: plugin_load ..\bin\hpb_bot2

Many thanks indeed. However I have a few questions:
...can I automate this with an autoexec.cfg and if so where do you reckon I put the autoexec?
...out of curiosity, why do you need to load the plugin? - Hurricane bot for HL2DM doesn't seem to require the plugin_load command anywhere.
...and any ideas why I get an application error for the srcds.exe (The instruction at "0x0e5f1328" referenced memory at "0x14e64bd8". The memory could not be "read".) when I try to load the plug-in as you suggest? I appreciate this last one may be beyond the scope of this thread and forum! I guess I'm going to have to try running this on another machine!
Again, thanks for the help.

Posted by: bir3yk Oct 8 2009, 11:21 AM

E:\Steam\steamapps\<username>\source 2007 dedicated server\ -> E:\Steam\steamapps\<username>\source dedicated server\

mod = TF2
steamdir = source dedicated server
gamedir = tf
bot = TF2

..\rcbot2\
...\rcbot2\config\
...\rcbot2\profiles\
...\rcbot2\waypoints\
...\rcbot2\waypoints\source dedicated server\tf\ <-- waypoint and scripts files copied here

srcds.exe +plugin_load ..\bin\HPB_bot2

you could always try to put source 2007 dedicated server, can and will work. wink.gif

Posted by: moxie2020 Sep 10 2011, 02:24 AM

QUOTE(LordSkitch @ Feb 4 2009, 05:12 PM) *

i decided to give her another try last night, heres what worked...

Step one!
x:\<pathtobasefolder>\ is wherever your orangebox folder is.

mine is
c:\servers\hl2server\
yours may be
c:\program files\steam\half-life2\
or even something like
d:\steam\dedicatedservers\hl2

wherever the orangebox folder in the dedicated server install is

put the rcbot2 folder there. not in the orangebox folder, but in the same folder that the orange box folder is.

so you should end up with something that looks like this:

IPB Image
Step two!
open up the rcbot2 folder, and move or copy the files in

x:\<pathtobasefolder>\rcbot2\waypoints\team fortress 2\tf\

to

x:\<pathtobasefolder>\rcbot2\waypoints\orangebox\tf\
Step three!
now, drop HPB_bot2.dll in

x:\<pathtobasefolder>\orangebox\bin\
Step four!
start up tf2 with a command like

x:\<pathtobasefolder>\orangebox\srcds -game tf -console +map ctf_2fort +plugin_load "..\bin\HPB_bot2"
if you see the rcbot licence scroll by, youve done it correctly. type rcbotd to see the list of commands you can use. if you don't see it scroll by, youve done something wrong. go back up to the top and start over.


I followed your instructions to the letter and even did a complete reinstall from scratch. I get a series of errors I don't see anyone else reporting. Please help. Below is the messages I receive.

QUOTE

Console initialized.
Game.dll loaded for "Team Fortress"

maxplayers set to 32
[RCBOT] Found interface INTERFACEVERSION_PLAYERINFOMANAGER IPlayerInfoManager pl
ayerinfomanager
[RCBOT] Found interface INTERFACEVERSION_VENGINESERVER IVEngineServer engine
[RCBOT] Cannot open interface FILESYSTEM_INTERFACE_VERSION IFileSystem filesyste
m
Failed to load plugin "..\bin\HPB_bot2"
Missing shutdown function for Sys_InitAuthentication() : Sys_ShutdownAuthenticat
ion()
Missing shutdown function for S_Init() : S_Shutdown()
Missing shutdown function for Decal_Init() : Decal_Shutdown()
Missing shutdown function for InitStudioRender() : ShutdownStudioRender()
Missing shutdown function for StaticPropMgr()->Init() : StaticPropMgr()->Shutdow
n()
Missing shutdown function for modelloader->Init() : modelloader->Shutdown()
Missing shutdown function for InitMaterialSystem() : ShutdownMaterialSystem()
Missing shutdown function for HLTV_Init() : HLTV_Shutdown()
Missing shutdown function for g_Log.Init() : g_Log.Shutdown()
Missing shutdown function for master->Init() : master->Shutdown()
Missing shutdown function for ReplaySystem_Init() : ReplaySystem_Shutdown()
Missing shutdown function for sv.Init( bDedicated ) : sv.Shutdown()
Missing shutdown function for g_GameEventManager.Init() : g_GameEventManager.Shu
tdown()
Missing shutdown function for NET_Init( bDedicated ) : NET_Shutdown()
Missing shutdown function for Key_Init() : Key_Shutdown()
Missing shutdown function for Filter_Init() : Filter_Shutdown()
Missing shutdown function for saverestore->Init() : saverestore->Shutdown()
Missing shutdown function for COM_Init() : COM_Shutdown()
Missing shutdown function for V_Init() : V_Shutdown()
Missing shutdown function for g_pCVar->Init() : g_pCVar->Shutdown()
Missing shutdown function for Cmd_Init() : Cmd_Shutdown()
Missing shutdown function for Cbuf_Init() : Cbuf_Shutdown()
Missing shutdown function for Con_Init() : Con_Shutdown()
Missing shutdown function for Memory_Init() : Memory_Shutdown()
Missing shutdown function for Host_Init( s_bIsDedicated ) : Host_Shutdown()
Missing shutdown function for Sys_InitMemory() : Sys_ShutdownMemory()
Missing shutdown function for Sys_Init() : Sys_Shutdown()
Missing shutdown function for COM_InitFilesystem( info.m_pInitialMod ) : COM_Shu
tdownFileSystem()