Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ Linux _ HPB_bot2_i486.so

Posted by: bir3yk Jul 21 2009, 12:03 PM

I compiled a linux RCBot2 0.5

1. Folder Structure :
.../hl2
.../orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
.../orangebox/bin <-- HPB_bot2_i486.so files copied here
.../rcbot2/
.../rcbot2/config/
.../rcbot2/profiles/
.../rcbot2/waypoints/
.../rcbot2/waypoints/orangebox/tf/ <-- waypoint and scripts files copied here
.../steam
2. Edit .../rcbot2/config/bot_mods.ini
mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2
3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2


146 SVN revisions http://www.megaupload.com/?d=SHHLJLZJ
RCbot2 0.52
121 SVN revisions http://www.megaupload.com/?d=QL03VOBC
RCbot2 0.53
122 SVN revisions http://www.megaupload.com/?d=MI63H5LT

124 SVN revisions http://www.megaupload.com/?d=NR9HNCGD

126 SVN revisions http://www.megaupload.com/?d=EF2Q6QJD

146 SVN revisions http://sourceforge.net/projects/rcbot2/files/rcbot2/RCBot2%200.56%20beta/HPB_bot2_i486_146.so/download

Posted by: bir3yk Jul 23 2009, 05:10 AM

I would try to spread the latest SVN revisions Cheeseh in Post 1

Posted by: Cheeseh Jul 23 2009, 11:07 AM

QUOTE(bir3yk @ Jul 23 2009, 06:10 AM) *

I would try to spread the latest releases Cheeseh in Post 1

These aren't really releases and more like leaked release candidates smile.gif I make only SVN revisions, not releases. But also they arent really worthy of a release yet. Many new features won't work without correct waypoints and scripts which I haven't released.

Posted by: bir3yk Jul 23 2009, 11:25 AM

Corrected the posts. The server does not crash and the old waypoint of work. wink.gif This is good!!!

Posted by: Weasel Jul 24 2009, 02:25 AM

Loaded up 109 into my Linux/CentOS TF2 server.
Bots load, but just stand in the respawn and never move. sad.gif

PS: The map I'm running is ctf_mach4, and I have the waypoint files in the "tf" folder.

Posted by: bir3yk Jul 24 2009, 05:11 AM

QUOTE(Weasel @ Jul 24 2009, 05:25 AM) *

Loaded up 109 into my Linux/CentOS TF2 server.
Bots load, but just stand in the respawn and never move. sad.gif

PS: The map I'm running is ctf_mach4, and I have the waypoint files in the "tf" folder.


bot_mods.ini
mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2

folders:
hl2
orangebox
rcbot2

Posted by: Weasel Jul 24 2009, 05:21 AM

Hacked the bot_mods.ini file already, as specified.
Not quite sure I understand what you're saying in this part:

QUOTE(bir3yk @ Jul 23 2009, 10:11 PM) *

folders:
hl2
orangebox
rcbot2


My folder structure is ...

/games
/games/sourceds
/games/sourceds/hl2 (etc.)
/games/sourceds/orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
/games/sourceds/orangebox/tf <-- waypoint files copied here, should they be somewhere else?
/games/sourceds/orangebox/tf/bin (etc.)
/games/sourceds/rcbot2
/games/sourceds/rcbot2/config
/games/sourceds/rcbot2/profiles (etc.)

PS: Thanks for the assist(s)!

Posted by: bir3yk Jul 24 2009, 05:36 AM

QUOTE(Weasel @ Jul 24 2009, 08:21 AM) *

Hacked the bot_mods.ini file already, as specified.
I don't understand this part of what you're saying:


This relative location of the folder RCBot2 it should be a folder waypoint

QUOTE(Weasel @ Jul 24 2009, 08:21 AM) *

Hacked the bot_mods.ini file already, as specified.
Not quite sure I understand what you're saying in this part:
My folder structure is ...

/games
/games/sourceds
/games/sourceds/hl2 (etc.)
/games/sourceds/orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
/games/sourceds/orangebox/tf <-- waypoint files copied here
/games/sourceds/orangebox/tf/bin (etc.)
/games/sourceds/rcbot2
/games/sourceds/rcbot2/config
/games/sourceds/rcbot2/profiles (etc.)

no
/games/sourceds/rcbot2/waypoint/ <-- waypoint files copied here

Posted by: Weasel Jul 24 2009, 05:50 AM

QUOTE(bir3yk @ Jul 23 2009, 10:36 PM) *

/games/sourceds/rcbot2/waypoint/ <-- waypoint files copied here


Ok, I'll try that. Not sure where I read about putting them under TF folder.

Is that: /games/sourceds/rcbot2/waypoint/ ?
or should it be: /games/sourceds/rcbot2/waypoints/ ?

Posted by: bir3yk Jul 24 2009, 06:17 AM

/games/sourceds/rcbot2/waypoints/

Posted by: Weasel Jul 24 2009, 06:25 AM

QUOTE(bir3yk @ Jul 23 2009, 11:17 PM) *

/games/sourceds/rcbot2/waypoints/


Thanks again for follow-up!
But, still no luck - same symptoms (bots don't leave respawn's).
sad.gif

Posted by: bir3yk Jul 24 2009, 06:32 AM

sorry. does not awake yet smile.gif

/games/sourceds/rcbot2/waypoints/orangebox/tf <-- waypoint files copied here

Posted by: Weasel Jul 24 2009, 09:52 PM

QUOTE(bir3yk @ Jul 23 2009, 11:32 PM) *

sorry. does not awake yet smile.gif


Hey, no problem man, thanks for the help.
I see your revised notes and new compile at the top of the thread.
I'll try them some time this weekend and let you know.

Thanks again! happy.gif

Posted by: Weasel Jul 25 2009, 03:09 AM

QUOTE(bir3yk @ Jul 21 2009, 05:03 AM) *
...
1. Folder Structure :
.../hl2
.../orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
.../orangebox/bin <-- HPB_bot2_i486.so files copied here
.../rcbot2/
.../rcbot2/config/
.../rcbot2/profiles/
.../rcbot2/waypoints/
.../rcbot2/waypoints/orangebox/tf/ <-- waypoint files copied here
.../steam
2. Edit .../rcbot2/config/bot_mods.ini
mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2
3. Add
./srcds_run +plugin_load ../bin/HPB_bot2
...

Loaded-up the SVN 110 build and move files to specified folders, and it works like a charm!
RCBot2 for TF2 under Linux - woo hoo!
wub.gif

Posted by: hans Jul 29 2009, 08:19 AM

Hi,

i ve got the following problem when starting my server:

/opt/steam/orangebox# ./srcds_run +plugin_load ../bin/HPB_bot2 -debug

Auto detecting CPU
Using SSE2 Optimised binary.
Enabling debug mode
Server will auto-restart if there is a crash.

Console initialized.
Game.dll loaded for "Team Fortress"
Particles: Missing 'particles/error.pcf'
maxplayers set to 24
Unknown command "r_decal_cullsize"
Segmentation fault (core dumped)
Cannot access memory at address 0xb7fb165c
Cannot access memory at address 0xbfca737c
/opt/steam/orangebox/debug.cmds:3: Error in sourced command file:
Cannot access memory at address 0xb7fb165c
email debug.log to linux@valvesoftware.com
Mi 29. Jul 10:04:53 CEST 2009: Server restart in 10 seconds
Mi 29. Jul 10:04:53 CEST 2009: Server Quit

Without the plugin the servers starts without any problems.

This is the content of the debug.log:

CRASH: Mi 29. Jul 10:04:53 CEST 2009
Start Line: ./srcds_i486 +plugin_load ../bin/HPB_bot2 -debug -game tf
#0 0xb7f9e61c in ?? ()
No symbol table info available.
End of Source crash report


Ive installed the server with the rcbot2 package from http://filebase.bots-united.com/index.php?act=view&id=450 and your SVN 110 build.

The folder structure is the same as yours.
But the script folder is empty, is that okay? Im running ctf_2fort.

My OS is Ubuntu 9.0.4

Could you please help me ? smile.gif

Sorry for my bad english.... sad.gif

Posted by: bir3yk Jul 29 2009, 08:56 AM

Try a simple string of launch:
./srcds_run -game tf -console +map ctf_2fort +plugin_load ../bin/HPB_bot2 -debug

Try load SVN 111 build

-----------
Auto detecting CPU
Using SSE2 Optimised binary.
Enabling debug mode
Server will auto-restart if there is a crash.

Console initialized.
Game.dll loaded for "Team Fortress"
Particles: Missing 'particles/error.pcf'
maxplayers set to 24
Unknown command "r_decal_cullsize"
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBOT] Found interface version type var
[RCBot] Reading bot profile "../rcbot2/profiles/1.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/2.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/3.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/4.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/5.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/6.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/7.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/8.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/9.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/10.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/11.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/12.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/13.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/14.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/15.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/16.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/17.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/18.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/19.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/20.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/21.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/22.ini"
[RCBot] Bot profile "../rcbot2/profiles/23.ini" not found
-----------------------------------------------------------------
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 "../bin/HPB_bot2"
Unknown command "startupmenu"
Network: IP 127.0.1.1, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Level "ctf_2fort" has been loaded

Posted by: bir3yk Aug 15 2009, 02:36 PM

laid out a working version to update 1.0.6.4

http://www.megaupload.com/?d=BMOHN44F

Posted by: bir3yk Aug 22 2009, 08:58 PM

113 SVN revisions http://www.megaupload.com/?d=0D3X1OK0

Posted by: bir3yk Sep 20 2009, 02:32 PM

updated work CP_ maps
115 SVN revisions http://www.megaupload.com/?d=I55QA79L

Posted by: bir3yk Sep 30 2009, 08:31 AM

116 SVN revisions http://www.megaupload.com/?d=WT655QIR

Posted by: bir3yk Oct 2 2009, 07:42 AM


119 SVN revisions http://www.megaupload.com/?d=SHHLJLZJ

Posted by: bir3yk Oct 6 2009, 07:04 AM

RCbot2 0.52

121 svn http://www.megaupload.com/?d=QL03VOBC

Posted by: Weasel Oct 6 2009, 10:41 PM

QUOTE(bir3yk @ Oct 6 2009, 12:04 AM) *

RCbot2 0.52
121 svn http://www.megaupload.com/?d=QL03VOBC


I'll load it up tonight or tomorrow and give you some feedback.

Posted by: Weasel Oct 16 2009, 12:04 AM

QUOTE(Weasel @ Oct 6 2009, 03:41 PM) *

I'll load it up tonight or tomorrow and give you some feedback.


Sorry, forgot to update that it (0.52, SVN rev 121) worked fine for me on CentOS - no errors.

Posted by: bir3yk Nov 12 2009, 09:47 AM

RCbot2 0.53
122 SVN revisions http://www.megaupload.com/?d=MI63H5LT

0.53
- fixed: bots roaming instead of defending issue
- fixed: reduced engineer wrenching distance

Posted by: bir3yk Nov 13 2009, 12:54 PM

124 SVN revisions http://www.megaupload.com/?d=NR9HNCGD

Posted by: bir3yk Nov 14 2009, 10:32 PM

126 SVN revisions http://www.megaupload.com/?d=EF2Q6QJD

0.53 BETA

Posted by: Cheeseh Nov 24 2009, 01:23 PM

QUOTE(bir3yk @ Nov 14 2009, 10:32 PM) *

126 SVN revisions http://www.megaupload.com/?d=EF2Q6QJD

0.53 BETA

Thanks , I put the latest on sourceforge.net

Posted by: Roachman Mar 9 2010, 08:48 AM

QUOTE(bir3yk @ Jul 21 2009, 01:03 PM) *

I compiled a linux RCBot2 0.5

1. Folder Structure :
.../hl2
.../orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
.../orangebox/bin <-- HPB_bot2_i486.so files copied here
.../rcbot2/
.../rcbot2/config/
.../rcbot2/profiles/
.../rcbot2/waypoints/
.../rcbot2/waypoints/orangebox/tf/ <-- waypoint and scripts files copied here
.../steam
2. Edit .../rcbot2/config/bot_mods.ini
mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2
3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2



Hi @ all

I Load the linux file (HPB_bot2_i486.so ) into ../orangebox/bin and move files to specified folders,
and will start with +plugin_load ../bin/HPB_bot2 but this dont work dry.gif ! Unable to find ..... sad.gif !
I Just Type +plugin_load bin/HPB_bot2_i486.so and it start !! biggrin.gif wub.gif
RCBot2 for TF2 under Linux Dedicated Server works !!!!

Special Thanks @ bir3yk !

Greets Roachman smile.gif

Posted by: The Chad Mar 16 2010, 02:16 PM

QUOTE(Roachman @ Mar 9 2010, 03:48 AM) *

Hi @ all

I Load the linux file (HPB_bot2_i486.so ) into ../orangebox/bin and move files to specified folders,
and will start with +plugin_load ../bin/HPB_bot2 but this dont work dry.gif ! Unable to find ..... sad.gif !
I Just Type +plugin_load bin/HPB_bot2_i486.so and it start !! biggrin.gif wub.gif
RCBot2 for TF2 under Linux Dedicated Server works !!!!

Special Thanks @ bir3yk !

Greets Roachman smile.gif


I just registered to say THANKS! This is exactly the information I was looking for!

Posted by: bir3yk Mar 17 2010, 08:36 AM

And thank you wink.gif

Posted by: Cheeseh Apr 29 2010, 11:24 AM

QUOTE(bir3yk @ Mar 17 2010, 09:36 AM) *

And thank you wink.gif

Latest source updated:

although if you need to compile, make these changes to your hl2 sdk,
http://hg.alliedmods.net/hl2sdks/hl2sdk-ob-valve/

Posted by: The Chad Apr 30 2010, 01:17 PM

Will some kind stranger be recompiling the linux binary for the .54 update?

Posted by: Dirty May 1 2010, 12:00 AM

Please rolleyes.gif

Posted by: Dirty May 6 2010, 02:20 AM

can someone please compile a linux RCBot2 0.546 beta

Thanks

Posted by: xomp May 8 2010, 08:00 PM

I've been asking the same question for awhile now guys, don't think anyone can be arsed to help.

Posted by: bir3yk May 12 2010, 03:27 PM

Hi, try to do these days.

Posted by: Dirty May 12 2010, 11:53 PM

QUOTE(bir3yk @ May 12 2010, 03:27 PM) *

Hi, try to do these days.


your the one who been make it work for linux?

Posted by: xomp May 13 2010, 03:05 AM

QUOTE(bir3yk @ May 12 2010, 03:27 PM) *

Hi, try to do these days.


Haha I love bir3yk! I think I gave him the nudge to check into the forums after talking on IRC patching my TF2 server smile.gif

Here's to a great guy! Good luck!

Posted by: Cheeseh May 13 2010, 11:22 AM

QUOTE(xomp @ May 13 2010, 04:05 AM) *

Haha I love bir3yk! I think I gave him the nudge to check into the forums after talking on IRC patching my TF2 server smile.gif

Here's to a great guy! Good luck!


bir3yk , if you use any kind of linux makefile you used to compile, could you share it with the community? Thanks biggrin.gif

Posted by: bir3yk May 19 2010, 07:59 AM

http://www.megaupload.com/?d=NOVOYUA6 136 svn

I no testing.

Posted by: xomp May 19 2010, 03:49 PM

QUOTE(bir3yk @ May 19 2010, 07:59 AM) *

http://www.megaupload.com/?d=NOVOYUA6 136 svn

I no testing.


I can confirm this works fine.

You're my Hero bir3yk!

Posted by: bir3yk May 19 2010, 03:56 PM

http://www.megaupload.com/?d=XS5CUBZH 141 svn

Posted by: Cheeseh May 19 2010, 05:14 PM

QUOTE(bir3yk @ May 19 2010, 04:56 PM) *

http://www.megaupload.com/?d=XS5CUBZH 141 svn

141 is the latest unreleased version (beta) with the new spy/engi/sniper updates

Posted by: bir3yk May 19 2010, 06:07 PM

QUOTE(Cheeseh @ May 19 2010, 08:14 PM) *

141 is the latest unreleased version (beta) with the new spy/engi/sniper updates



wink.gif

Posted by: macgyver May 20 2010, 07:58 PM

QUOTE(bir3yk @ Jul 21 2009, 08:03 AM) *

I compiled a linux RCBot2 0.5

1. Folder Structure :
.../hl2
.../orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
.../orangebox/bin <-- HPB_bot2_i486.so files copied here
.../rcbot2/
.../rcbot2/config/
.../rcbot2/profiles/
.../rcbot2/waypoints/
.../rcbot2/waypoints/orangebox/tf/ <-- waypoint and scripts files copied here
.../steam
2. Edit .../rcbot2/config/bot_mods.ini
mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2
3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2
119 SVN revisions http://www.megaupload.com/?d=SHHLJLZJ
RCbot2 0.52
121 SVN revisions http://www.megaupload.com/?d=QL03VOBC
RCbot2 0.53
122 SVN revisions http://www.megaupload.com/?d=MI63H5LT

124 SVN revisions http://www.megaupload.com/?d=NR9HNCGD

126 SVN revisions http://www.megaupload.com/?d=EF2Q6QJD


Cheeseh referred me to this thread for help...

Should I be using the latest version of the file in this thread ALONG with the below version of RCBot?

From the main page http://rcbot.bots-united.com/
I click on "Files", and under "Linux Files" I think I am supposed to use this:
-----------------------------------------
RCBot 1.3 RELEASE

English Version 1.3

WINDOWS (standalone + metamod)
&
LINUX (standalone)

This comes with metamod support and mod support for : Natural-Selection 2 & 3, SvenCoop 2.1/3.0, BumperCars 1.5+, Deathmatch Classic, Rocket Crowbar 2, HLDM, Battlegrounds.

This also includes the windows & linux DLLs for stand-alone or metamod installation.
------------------------------------------
Which ultimately takes me to this:
http://filebase.bots-united.com/index.php?act=download&id=203

Is that the version I should be using??
Thanks again for your help!

Assuming that is the right version......

I think I understand everything except step #3. How do I start (load the plugin) on a rented server?

3. Add
./srcds_run ..............[b]+plugin_load ../bin/HPB_bot2 (Where do I do this on a rented server? Using server.cfg or something? I know this is a highly noob question probably, I admit it!)

Posted by: Cheeseh May 20 2010, 08:38 PM

rcbot 1.3 is for Half-life 1 tongue.gif

if using linux use this .so file on this thread for HL2

Posted by: macgyver May 20 2010, 09:00 PM

QUOTE(Cheeseh @ May 20 2010, 04:38 PM) *

rcbot 1.3 is for Half-life 1 tongue.gif

if using linux use this .so file on this thread for HL2



ohmy.gif LOL Okay thanks!


So I should use RCBot2_0546beta4 + the latest version of the file in this thread, Correct? cool.gif

I have downloaded RCbot2_0546beta, and inside it has rcbot2 directory and a HPB_Bot2.dll.

I am not using the HPB_Bot2.dll right? That is for windows installations, and the file in this thread is the one I use in replace of that for Linux?

The rcbot2 folder goes beside my orange box folder correct? (Keep in mind this is a rented linux server)

When I FTP into my server I have the following directory tree:

hl2/
orangebox/ - inside of this dir i have bin, hl2, tf -inside of that tf is my installation, sourcemod, metamod etc
tf/

Given the above directory tree, rcbot2 folder is supposed to be beside my orangebox folder or am I wrong?

Thanks again for helping and your patience with noobs Cheeseh tongue.gif biggrin.gif

Posted by: Cheeseh May 20 2010, 09:41 PM

yeas use the .SO file here!

use biry3k's instructions:

1. Folder Structure :
.../hl2
.../orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
.../orangebox/bin <-- HPB_bot2_i486.so files copied here
.../rcbot2/
.../rcbot2/config/
.../rcbot2/profiles/
.../rcbot2/waypoints/
.../rcbot2/waypoints/orangebox/tf/ <-- waypoint and scripts files copied here
.../steam
2. Edit .../rcbot2/config/bot_mods.ini , add this:
mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2
3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2

Posted by: macgyver May 20 2010, 10:31 PM

QUOTE(Cheeseh @ May 20 2010, 05:41 PM) *

yeas use the .SO file here!

use biry3k's instructions:

1. Folder Structure :
.../hl2
.../orangebox <-- srcds_run is here (for TF2 and Orange-Box games)
.../orangebox/bin <-- HPB_bot2_i486.so files copied here
.../rcbot2/
.../rcbot2/config/
.../rcbot2/profiles/
.../rcbot2/waypoints/
.../rcbot2/waypoints/orangebox/tf/ <-- waypoint and scripts files copied here
.../steam
2. Edit .../rcbot2/config/bot_mods.ini , add this:
mod = TF2
steamdir = orangebox
gamedir = tf
bot = TF2
3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2


3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2

Where do I add that line??? This is a rented server, I have no experience (or access to the startup line in srcds)???

Posted by: Cheeseh May 20 2010, 11:05 PM

QUOTE(macgyver @ May 20 2010, 11:31 PM) *

3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2

Where do I add that line??? This is a rented server, I have no experience (or access to the startup line in srcds)???

I'm not sure myself, you'd need to ask someone with more experience with using rented dedicated servers on linux

Also will need a latest revision compile , and I can post the .SO file onto sourceforge.net

Posted by: bir3yk May 21 2010, 08:21 AM

http://www.megaupload.com/?d=DOT3W1P8 146 svn

Posted by: macgyver May 21 2010, 02:35 PM

3. Add
./srcds_run ..............+plugin_load ../bin/HPB_bot2

Where do I add that line??? This is a rented server, I have no experience (or access to the startup line in srcds)???

Can I create a autoexec.cfg, add the above line to it, and put it in ../orangebox/tf2/cfg?? Will that work?? (this is for a rented linux dedicated TF2 server.)

Posted by: bir3yk May 21 2010, 02:40 PM

startup line in srcds
./srcds_run -console +sv_lan 0 -game tf +map "ctf_2fort" +port 27020 +ip 192.168.1.101 +plugin_load ./HPB_bot2_i486.so


Posted by: macgyver May 21 2010, 03:30 PM

QUOTE(bir3yk @ May 21 2010, 10:40 AM) *

startup line in srcds
./srcds_run -console +sv_lan 0 -game tf +map "ctf_2fort" +port 27020 +ip 192.168.1.101 +plugin_load ./HPB_bot2_i486.so


The above line is different from the instructions in the original post:

Original Post:
3. Add
+plugin_load ../bin/HPB_bot2


Yours it looks like you added:
+plugin_load ./HPB_bot2_i486.so

Will both work????

The file that I downloaded and put in orangebox/bin is HPB_bot2_i486_146.so. Do i need to delete the _146 from the filename or will it work with the above syntax??

Please give me the exact syntax to get them to add to my srcds startup line.

Is this not exactly what needs to be added???
+plugin_load ./HPB_bot2_i486_146.so

Posted by: Cheeseh May 21 2010, 03:35 PM

QUOTE(macgyver @ May 21 2010, 04:30 PM) *

+plugin_load ./HPB_bot2_i486_146

iif you don't rename it of course

you don't need to write .so in plugin_load, it shouldn't be mentioned on this thread

Posted by: bir3yk May 21 2010, 03:42 PM

macgyver

Instead of asking questions is easier to try wink.gif

_146 this delete in name file

Posted by: macgyver May 21 2010, 03:48 PM

QUOTE(bir3yk @ May 21 2010, 11:42 AM) *

macgyver

Instead of asking questions is easier to try wink.gif

_146 this delete in name file


Ok thank you for your help.....I am sorry about being such a bother (noob) unsure.gif

I just needed to know exactly what to tell the server company that I rent from to add to the startup line, as I do not have access to it and wanted to make sure it was correct before I asked them to make that change for me. My apologies, and thanks again for your help!

Posted by: Dirty May 21 2010, 11:58 PM

Thanks! bir3yk

Posted by: Cheeseh May 23 2010, 12:28 AM

I've uploaded it now to sourceforge

https://sourceforge.net/projects/rcbot2/files/rcbot2/RCBot2%200.56%20beta/HPB_bot2_i486_146.so/download

Posted by: bir3yk May 31 2010, 06:54 AM

http://www.megaupload.com/?d=BEM7TWW1 150 svn

Posted by: Cheeseh May 31 2010, 12:46 PM

QUOTE(bir3yk @ May 31 2010, 07:54 AM) *

http://www.megaupload.com/?d=BEM7TWW1 150 svn

there is a bug in that SVN, I wouldn't issue releases until I also make a windows release too tongue.gif but i will let you know if I think you should make a linux release. I just saved the SVN as a backup

Posted by: bir3yk May 31 2010, 03:27 PM

Makefile

CODE
#
# SDK Makefile for x86 Linux
#
#

#############################################################################
# Developer configurable items
#############################################################################

# the name of the mod binary (_i486.so is appended to the end)
#NAME=server
NAME=HPB_bot2

# the location of the vcproj that builds the mod
#MOD_PROJ=../game/server/server_hl2mp-2005.vcproj
MOD_PROJ=../utils/RCBot2/HPB_Bot2.vcproj

# the name of the mod configuration (typically <proj name>_<build type><build target>)
#MOD_CONFIG=ServerHL2MP_ReleaseWin32
MOD_CONFIG=HPB_bot2_ReleaseWin32

# the directory the base binaries (tier0_i486.so, etc) are located
# this should point to your orange box subfolder of where you have srcds installed.
#GAME_DIR=~/srcds/orangebox
GAME_DIR=/home/hlds/steam/orangebox

# the path to your mods directory
# set this so that 'make install' or 'make installrelease' will copy your binary over automatically.
#MOD_DIR=$(GAME_DIR)/SampleMod
MOD_DIR=$(GAME_DIR)/

# compiler options (gcc 3.4.1 will work - 4.2.2 recommended)
#CC=/usr/local/bin/gcc
#CPLUS=/usr/local/bin/g++
#CLINK=/usr/local/bin/gcc
#CPP_LIB="/usr/local/lib/libstdc++.a /usr/local/lib/gcc/i686-pc-linux-gnu/4.2.2/libgcc_eh.a"
#CC=/usr/bin/gcc
#CPLUS=/usr/bin/g++-4.1
#CLINK=/usr/bin/gcc-4.1
CPP_LIB=" /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.1.3/libgcc_eh.a"
CC = /usr/bin/gcc-4.1
CPLUS = /usr/bin/g++-4.1
CLINK = /usr/bin/gcc-4.1
#CPP_LIB = "libstdc++.a libgcc_eh.a"


# GCC 4.2.2 optimization flags, if you're using anything below, don't use these!
#OPTFLAGS=-O1 -fomit-frame-pointer -ffast-math -fforce-addr -funroll-loops -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -fexpensive-optimizations -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -finline-functions -funswitch-loops -fgcse-after-reload
OPTFLAGS=-O1 -fomit-frame-pointer -ffast-math -fforce-addr -funroll-loops -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -fexpensive-optimizations -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -finline-functions -funswitch-loops -fgcse-after-reload

#OPTFLAGS=

# put any compiler flags you want passed here
USER_CFLAGS=

# Link Libraries
#LIBFILES= \
#  $(LIB_DIR)/lib/linux/tier1_486.a \
#  $(LIB_DIR)/lib/linux/choreoobjects_486.a \
#  $(LIB_DIR)/lib/linux/particles_486.a \
#  $(LIB_DIR)/lib/linux/dmxloader_486.a \
#  libtier0.so \
#  libvstdlib.so \
#  libsteam_api.so \
#  $(LIB_DIR)/lib/linux/tier3_486.a \
#  $(LIB_DIR)/lib/linux/tier2_486.a \
#  $(LIB_DIR)/lib/linux/tier1_486.a \
#  $(LIB_DIR)/lib/linux/mathlib_486.a \


# link flags for your mod, make sure to include any special libraries here
#NOTE: YES we want to include the lib files 2 times. We've run into problems with the 1-pass linker not bringing in symbols it should.
#LDFLAGS="-lm -ldl $(LIBFILES) $(LIBFILES)"
LIB_DIR = $(SOURCE_DIR)/lib/linux
LDFLAGS = "-lm -ldl  $(LIB_DIR)/mathlib_i486.a libtier0.so libvstdlib.so  $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/tier3_i486.a "

# XERCES 2.6.0 or above ( [url=http://xml.apache.org/xerces-c/]http://xml.apache.org/xerces-c/[/url] ) is used by the vcproj to makefile converter
# it must be installed before being able to run this makefile
# if you have xerces installed already you should be able to use the two lines below
#XERCES_INC_DIR=/usr/include
#XERCES_LIB_DIR=/usr/lib
XERCES_INC_DIR=/opt/include
XERCES_LIB_DIR=/opt/lib

#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
MAKE=make

# the dir we want to put binaries we build into
BUILD_DIR=.
# the place to put object files
BUILD_OBJ_DIR=$(BUILD_DIR)/obj

# the location of the source code
SOURCE_DIR=..

# the CPU target for the build, must be i486 for now
ARCH=i486
ARCH_CFLAGS=-mtune=i686 -march=pentium -mmmx -msse -pipe

# -fpermissive is so gcc 3.4.x doesn't complain about some template stuff
BASE_CFLAGS=-DVPROF_LEVEL=1 -DSWDS -D_LINUX -DLINUX -DNDEBUG -fpermissive -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp

SHLIBEXT=so

SHLIBCFLAGS=-fPIC
SHLIBLDFLAGS=-shared -Wl,-Map,$@_map.txt -Wl

#flags passed to the compiler
CFLAGS="$(USER_CFLAGS) $(DEFINES) $(ARCH_CFLAGS) $(OPTFLAGS) $(BASE_CFLAGS) -Usprintf=use_Q_snprintf_instead_of_sprintf -Ustrncpy=use_Q_strncpy_instead -Ufopen=dont_use_fopen -UPROTECTED_THINGS_ENABLE"

# define list passed to make for the sub makefile
BASE_DEFINES=CC=$(CC) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) \
    BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) \
    SOURCE_DIR=$(SOURCE_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS) SHLIBEXT=$(SHLIBEXT) \
    CLINK=$(CLINK) CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) \
    ARCH=$(ARCH) GAME_DIR=$(GAME_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) \
    XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)

# Project Makefile
MAKE_MOD=Makefile.server
MAKE_VCPM=Makefile.vcpm
MAKE_PLUGIN=Makefile.plugin

all: check vcpm server

check:
    if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
    if [ ! -d $(BUILD_DIR) ];then mkdir $(BUILD_DIR);fi
    cd $(BUILD_DIR)

vcpm:
    $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES)

server: vcpm
    if [ ! -f "libtier0.so" ]; then ln -s $(GAME_DIR)/bin/libtier0.so .; fi
    if [ ! -f "libvstdlib.so" ]; then ln -s $(GAME_DIR)/bin/libvstdlib.so .; fi
#    if [ ! -f "libsteam_api.so" ]; then ln -s $(GAME_DIR)/bin/libsteam_api.so .; fi
# When running over samba we need to copy the files because symlinking isn't possible.
#    cp -f $(GAME_DIR)/bin/tier0_i486.so .
#    cp -f $(GAME_DIR)/bin/vstdlib_i486.so .
#    cp -f $(GAME_DIR)/bin/steam_api_i486.so .

    ./vcpm $(MOD_PROJ)
    $(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES)

plugin:
    $(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)

clean:
     $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
     $(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
     $(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES) clean

install:
    cp -f $(NAME)_$(ARCH).so $(MOD_DIR)/bin/$(NAME)_$(ARCH).so

installrelease:
    cp -f $(NAME)_$(ARCH).so $(MOD_DIR)/bin/$(NAME)_$(ARCH).so
    strip $(MOD_DIR)/bin/$(NAME)_$(ARCH).so

Posted by: bir3yk Jun 1 2010, 09:32 AM

http://www.megaupload.com/?d=99UYU80F svn 151

Posted by: pinkpiton Jun 12 2010, 02:38 PM

svn 152
http://gworld.org.ua/RCBot2/HPB_bot2_i486.so

Posted by: Cheeseh Jun 12 2010, 03:41 PM

QUOTE(pinkpiton @ Jun 12 2010, 03:38 PM) *

svn 152
http://gworld.org.ua/RCBot2/HPB_bot2_i486.so

there are no changes with this SVN smile.gif



Posted by: pinkpiton Jun 12 2010, 11:24 PM

QUOTE(Cheeseh @ Jun 12 2010, 06:41 PM) *

there are no changes with this SVN smile.gif

but i put source in latest version sdk

Posted by: xomp Jun 18 2010, 09:03 PM

QUOTE(bir3yk @ May 31 2010, 03:27 PM) *

Makefile
CODE
#
# SDK Makefile for x86 Linux
#
#

#############################################################################
# Developer configurable items
#############################################################################

# the name of the mod binary (_i486.so is appended to the end)
#NAME=server
NAME=HPB_bot2

# the location of the vcproj that builds the mod
#MOD_PROJ=../game/server/server_hl2mp-2005.vcproj
MOD_PROJ=../utils/RCBot2/HPB_Bot2.vcproj

# the name of the mod configuration (typically <proj name>_<build type><build target>)
#MOD_CONFIG=ServerHL2MP_ReleaseWin32
MOD_CONFIG=HPB_bot2_ReleaseWin32

# the directory the base binaries (tier0_i486.so, etc) are located
# this should point to your orange box subfolder of where you have srcds installed.
#GAME_DIR=~/srcds/orangebox
GAME_DIR=/home/hlds/steam/orangebox

# the path to your mods directory
# set this so that 'make install' or 'make installrelease' will copy your binary over automatically.
#MOD_DIR=$(GAME_DIR)/SampleMod
MOD_DIR=$(GAME_DIR)/

# compiler options (gcc 3.4.1 will work - 4.2.2 recommended)
#CC=/usr/local/bin/gcc
#CPLUS=/usr/local/bin/g++
#CLINK=/usr/local/bin/gcc
#CPP_LIB="/usr/local/lib/libstdc++.a /usr/local/lib/gcc/i686-pc-linux-gnu/4.2.2/libgcc_eh.a"
#CC=/usr/bin/gcc
#CPLUS=/usr/bin/g++-4.1
#CLINK=/usr/bin/gcc-4.1
CPP_LIB=" /usr/lib/gcc/i486-linux-gnu/4.1.3/libstdc++.a /usr/lib/gcc/i486-linux-gnu/4.1.3/libgcc_eh.a"
CC = /usr/bin/gcc-4.1
CPLUS = /usr/bin/g++-4.1
CLINK = /usr/bin/gcc-4.1
#CPP_LIB = "libstdc++.a libgcc_eh.a"
# GCC 4.2.2 optimization flags, if you're using anything below, don't use these!
#OPTFLAGS=-O1 -fomit-frame-pointer -ffast-math -fforce-addr -funroll-loops -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -fexpensive-optimizations -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -finline-functions -funswitch-loops -fgcse-after-reload
OPTFLAGS=-O1 -fomit-frame-pointer -ffast-math -fforce-addr -funroll-loops -fthread-jumps -fcrossjumping -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm -fexpensive-optimizations -frerun-cse-after-loop -fcaller-saves -fpeephole2 -fschedule-insns2 -fsched-interblock -fsched-spec -fregmove -fdelete-null-pointer-checks -freorder-blocks -freorder-functions -falign-functions -falign-jumps -falign-loops -falign-labels -ftree-vrp -ftree-pre -finline-functions -funswitch-loops -fgcse-after-reload

#OPTFLAGS=

# put any compiler flags you want passed here
USER_CFLAGS=

# Link Libraries
#LIBFILES= \
#  $(LIB_DIR)/lib/linux/tier1_486.a \
#  $(LIB_DIR)/lib/linux/choreoobjects_486.a \
#  $(LIB_DIR)/lib/linux/particles_486.a \
#  $(LIB_DIR)/lib/linux/dmxloader_486.a \
#  libtier0.so \
#  libvstdlib.so \
#  libsteam_api.so \
#  $(LIB_DIR)/lib/linux/tier3_486.a \
#  $(LIB_DIR)/lib/linux/tier2_486.a \
#  $(LIB_DIR)/lib/linux/tier1_486.a \
#  $(LIB_DIR)/lib/linux/mathlib_486.a \
# link flags for your mod, make sure to include any special libraries here
#NOTE: YES we want to include the lib files 2 times. We've run into problems with the 1-pass linker not bringing in symbols it should.
#LDFLAGS="-lm -ldl $(LIBFILES) $(LIBFILES)"
LIB_DIR = $(SOURCE_DIR)/lib/linux
LDFLAGS = "-lm -ldl  $(LIB_DIR)/mathlib_i486.a libtier0.so libvstdlib.so  $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/tier3_i486.a "

# XERCES 2.6.0 or above ( [url=http://xml.apache.org/xerces-c/]http://xml.apache.org/xerces-c/[/url] ) is used by the vcproj to makefile converter
# it must be installed before being able to run this makefile
# if you have xerces installed already you should be able to use the two lines below
#XERCES_INC_DIR=/usr/include
#XERCES_LIB_DIR=/usr/lib
XERCES_INC_DIR=/opt/include
XERCES_LIB_DIR=/opt/lib

#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
MAKE=make

# the dir we want to put binaries we build into
BUILD_DIR=.
# the place to put object files
BUILD_OBJ_DIR=$(BUILD_DIR)/obj

# the location of the source code
SOURCE_DIR=..

# the CPU target for the build, must be i486 for now
ARCH=i486
ARCH_CFLAGS=-mtune=i686 -march=pentium -mmmx -msse -pipe

# -fpermissive is so gcc 3.4.x doesn't complain about some template stuff
BASE_CFLAGS=-DVPROF_LEVEL=1 -DSWDS -D_LINUX -DLINUX -DNDEBUG -fpermissive -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp

SHLIBEXT=so

SHLIBCFLAGS=-fPIC
SHLIBLDFLAGS=-shared -Wl,-Map,$@_map.txt -Wl

#flags passed to the compiler
CFLAGS="$(USER_CFLAGS) $(DEFINES) $(ARCH_CFLAGS) $(OPTFLAGS) $(BASE_CFLAGS) -Usprintf=use_Q_snprintf_instead_of_sprintf -Ustrncpy=use_Q_strncpy_instead -Ufopen=dont_use_fopen -UPROTECTED_THINGS_ENABLE"

# define list passed to make for the sub makefile
BASE_DEFINES=CC=$(CC) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) \
    BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) \
    SOURCE_DIR=$(SOURCE_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS) SHLIBEXT=$(SHLIBEXT) \
    CLINK=$(CLINK) CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) \
    ARCH=$(ARCH) GAME_DIR=$(GAME_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) \
    XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)

# Project Makefile
MAKE_MOD=Makefile.server
MAKE_VCPM=Makefile.vcpm
MAKE_PLUGIN=Makefile.plugin

all: check vcpm server

check:
    if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
    if [ ! -d $(BUILD_DIR) ];then mkdir $(BUILD_DIR);fi
    cd $(BUILD_DIR)

vcpm:
    $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES)

server: vcpm
    if [ ! -f "libtier0.so" ]; then ln -s $(GAME_DIR)/bin/libtier0.so .; fi
    if [ ! -f "libvstdlib.so" ]; then ln -s $(GAME_DIR)/bin/libvstdlib.so .; fi
#    if [ ! -f "libsteam_api.so" ]; then ln -s $(GAME_DIR)/bin/libsteam_api.so .; fi
# When running over samba we need to copy the files because symlinking isn't possible.
#    cp -f $(GAME_DIR)/bin/tier0_i486.so .
#    cp -f $(GAME_DIR)/bin/vstdlib_i486.so .
#    cp -f $(GAME_DIR)/bin/steam_api_i486.so .

    ./vcpm $(MOD_PROJ)
    $(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES)

plugin:
    $(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)

clean:
     $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
     $(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
     $(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES) clean

install:
    cp -f $(NAME)_$(ARCH).so $(MOD_DIR)/bin/$(NAME)_$(ARCH).so

installrelease:
    cp -f $(NAME)_$(ARCH).so $(MOD_DIR)/bin/$(NAME)_$(ARCH).so
    strip $(MOD_DIR)/bin/$(NAME)_$(ARCH).so



YAY A MAKEFILE FOR LINUX!!!

Posted by: Roachman Sep 3 2010, 05:45 PM

And again a Special Thanks @ bir3yk ! biggrin.gif

Posted by: Roachman Sep 5 2010, 12:05 PM

Hi again @ all,

the server runs fine with svn 152!
But I have a Question to the Makefile.
Can anybody explain me how it functioned ?
Thanks for the assistance.

Greets Roachman smile.gif

Posted by: Dirty Sep 8 2010, 05:39 AM

Thanks for the linux released of 0.57

For them looking for it you can find it here:
http://sourceforge.net/projects/rcbot2/files/

Posted by: bir3yk Nov 2 2010, 03:55 PM

svn 153
http://www.megaupload.com/?d=QGH2CP3R

Posted by: Dirty Dec 5 2010, 09:13 PM

QUOTE(bir3yk @ Nov 2 2010, 03:55 PM) *

svn 153
http://www.megaupload.com/?d=QGH2CP3R


Thanks

Posted by: ask Apr 18 2011, 08:28 AM

Hi there! I have some problem running TF2DED with HPB Bot on Ubuntu 10.10. When I trying to load plugin I have error message:

failed to dlopen /here/path/to/HPB_bot2_i486.so error=/here/path/to/HPB_bot2_i486.so: undefined symbol: _Unwind_Resume

What I need to do?

Posted by: Sjru Apr 19 2011, 07:44 PM

QUOTE(ask @ Apr 18 2011, 05:28 AM) *

Hi there! I have some problem running TF2DED with HPB Bot on Ubuntu 10.10. When I trying to load plugin I have error message:

failed to dlopen /here/path/to/HPB_bot2_i486.so error=/here/path/to/HPB_bot2_i486.so: undefined symbol: _Unwind_Resume

What I need to do?


Nothing, it's not your fault. It seems that the latest update broke RCBot. So until Cheeseh resurrects and fix the bots, it will stay like that.

Posted by: bir3yk May 5 2011, 06:02 PM

hi smile.gif

Posted by: Dirty May 8 2011, 04:24 AM

QUOTE(bir3yk @ May 5 2011, 06:02 PM) *

hi smile.gif


hi there, your usually the man that fixies this tongue.gif

Posted by: Xairoo Jun 1 2011, 12:15 PM

*removed*

Posted by: Xairoo Jun 24 2011, 12:06 PM

Latest version for Valve update 2011-06-24...
http://files.ref6.com/rcbot2/HPB_bot2_i486-001.so

Posted by: Weasel Aug 2 2011, 04:12 AM

QUOTE(Xairoo @ Jun 24 2011, 05:06 AM) *

Latest version for Valve update 2011-06-24...
http://files.ref6.com/rcbot2/HPB_bot2_i486-001.so


I keep getting the error message "unable to load plugin", followed by whatever file/path I use. I copied the binary (.so) to the orangebox/bin folder (where all the previous versions were), and adjusted the +plugin_load command-line option to reflect the new name.

CODE
Unable to load plugin "../bin/HPB_bot2_i486-001.so"
Unable to load plugin "../bin/HPB_bot2_i486-001.so"


I also tried renaming the .so to "HPB_bot2_i486.so", and also just "HPB_bot2.so", and reflecting that change in the +plugin_load command-line option. Same results with those attempts. Also, tried making everything lower case (renamed the .so file, and updated the path in the +plugin_load command to match); same results. I also tried specifying the full path to the .so, rather than a relative path in the +plugin_load command-line option; same results.

Anybody got this working under TF2 on Linux?

I wonder if Valve made a change so that plugin's can not reach "outside" their mod's root folder, or something.

PS: Also checked all file system permissions, they are the same as with the orangebox/tf/addons folders, etc. (basically the same everywhere). Other plugins (MetaMod:Source and SourceMod under orangebox/tf/addons) load just fine.

Posted by: Xairoo Aug 2 2011, 05:21 AM

maybe 2 .so files are linked bad. i'll check this later this day.
go to your orangebox/bin folder and try this:

CODE
cp libtier0.so tier0_i486.so
cp libvstdlib.so vstdlib_i486.so


if it works, run this command after an update too!

Posted by: Weasel Aug 2 2011, 04:26 PM

QUOTE(Xairoo @ Aug 1 2011, 10:21 PM) *

maybe 2 .so files are linked bad. i'll check this later this day.
go to your orangebox/bin folder and try this:
CODE
cp libtier0.so tier0_i486.so
cp libvstdlib.so vstdlib_i486.so

if it works, run this command after an update too!

Thanks for the follow-up! But, still not working...
CODE
Unable to load plugin "../bin/HPB_bot2"
Unable to load plugin "../bin/HPB_bot2"

Seems kind of weird that it says that twice also. I double-checked and I do not have a .VDF file for this, it's just being done with the command-line +plugin_load option.

Posted by: TesterYYY Feb 9 2013, 01:14 PM

Can somebody compile rcbot 0.71 for linux? I find it hard to compile it under linux... Manual how to compile under linux would be also good.

Posted by: Cheeseh Feb 10 2013, 12:39 AM

QUOTE(TesterYYY @ Feb 9 2013, 02:14 PM) *

Can somebody compile rcbot 0.71 for linux? I find it hard to compile it under linux... Manual how to compile under linux would be also good.

bir3yk is the guy we'd need to talk to but he hasn't been active for more than a year.

Posted by: Ted Mar 19 2013, 09:04 AM

QUOTE(Cheeseh @ Feb 10 2013, 12:39 AM) *

bir3yk is the guy we'd need to talk to but he hasn't been active for more than a year.


I've managed to build and run the latest version on Ubuntu. Some changes had to be made to get it to build as the latest version of GCC is a bit more strict regarding syntax.

I also discovered that the RunPlayeroveCommand detouring code for LINUX was causing a segmentation fault since the memory address passed to mprotect needs to be page aligned.

After fixing that issue, I managed to add a bot, but it just stands around. Any idea what may be causing this?

Also for the changes I made, should I send those to you as a diff or do you want the updated files?

Posted by: Cheeseh Mar 19 2013, 11:02 AM

QUOTE(Ted @ Mar 19 2013, 10:04 AM) *

I've managed to build and run the latest version on Ubuntu. Some changes had to be made to get it to build as the latest version of GCC is a bit more strict regarding syntax.

I also discovered that the RunPlayeroveCommand detouring code for LINUX was causing a segmentation fault since the memory address passed to mprotect needs to be page aligned.

After fixing that issue, I managed to add a bot, but it just stands around. Any idea what may be causing this?

Also for the changes I made, should I send those to you as a diff or do you want the updated files?


I'd like the code you used for mprotect as i'm not sure how it works in linux

As for bots standing around. Runplayermove hook is the most important function needed, so perhaps its not hooking to the correct address or it's an mprotect problem

Posted by: Ted Mar 20 2013, 07:34 AM

QUOTE(Cheeseh @ Mar 19 2013, 11:02 AM) *

I'd like the code you used for mprotect as i'm not sure how it works in linux

As for bots standing around. Runplayermove hook is the most important function needed, so perhaps its not hooking to the correct address or it's an mprotect problem


CODE

#include <sys/mman.h>
#include <errno.h>
#include <unistd.h>
.....

#ifndef __linux__
    VirtualProtect( &pdwNewInterface[vtable], 4, PAGE_EXECUTE_READWRITE, &dwOld );
#else
    // need page aligned address
    char *addr = reinterpret_cast<char *>(reinterpret_cast<DWORD>(&pdwNewInterface[vtable])
                      - reinterpret_cast<DWORD>(&pdwNewInterface[vtable])
                      % sysconf(_SC_PAGE_SIZE));
    int len = sizeof(DWORD) + reinterpret_cast<DWORD>(&pdwNewInterface[vtable])
      % sysconf(_SC_PAGE_SIZE);
    if (mprotect(addr, len, PROT_EXEC|PROT_READ|PROT_WRITE) == -1) {
      Warning("In VirtualTableHook while calling mprotect for write access: %s.\n",
          strerror(errno));
    } else {
#endif
    dwStor = pdwNewInterface[vtable];
    *(DWORD*)&pdwNewInterface[vtable] = newInterface;
#ifndef __linux__
    VirtualProtect(&pdwNewInterface[vtable], 4, dwOld, &dwOld);
#else
    if (mprotect(addr, len, PROT_EXEC|PROT_READ) == -1) {
      Warning("In VirtualTableHook while calling mprotect to remove write access: %s.\n",
          strerror(errno));
    }
    }
#endif

Posted by: Cheeseh Mar 22 2013, 12:18 AM

have a look at sourcemod to see if its the same

CODE

    void Protect(void *addr, size_t length, int prot)
    {
# if defined PLATFORM_WINDOWS
        DWORD ignore;
        VirtualProtect(addr, length, prot, &ignore);
# else
        uintptr_t startPage = AddrToPage(uintptr_t(addr));
        length += (uintptr_t(addr) - startPage);
        mprotect((void*)startPage, length, prot);
# endif
    }

    static inline uintptr_t AddrToPage(uintptr_t address)
    {
        return (address & ~(uintptr_t(sysconf(_SC_PAGE_SIZE) - 1)));
    }


Posted by: Ted Mar 22 2013, 11:20 PM

QUOTE(Cheeseh @ Mar 22 2013, 12:18 AM) *

have a look at sourcemod to see if its the same

CODE

    void Protect(void *addr, size_t length, int prot)
    {
# if defined PLATFORM_WINDOWS
        DWORD ignore;
        VirtualProtect(addr, length, prot, &ignore);
# else
        uintptr_t startPage = AddrToPage(uintptr_t(addr));
        length += (uintptr_t(addr) - startPage);
        mprotect((void*)startPage, length, prot);
# endif
    }

    static inline uintptr_t AddrToPage(uintptr_t address)
    {
        return (address & ~(uintptr_t(sysconf(_SC_PAGE_SIZE) - 1)));
    }



I believe that does the same as what I posted. An address is page aligned if it is a multiple of the page size. Mprotect will throw an http://linux.die.net/man/2/mprotect if a none-page aligned address is given as the input. To page align the address you want to supply mprotect, you decrease the address by the address modulus page size: addr - (addr % page_size).
The snippet from SourceMod uses a bit operator trick to get the same result. For example:

CODE
address    = 6             = 0110
page_size = 4             = 0100

page_size - 1 = 3         = 0011
~(page_size - 1)         = 1100
address & ~(page_size -1) = 4     = 0100
6 - 6 % 4 = 4            = 0100


I believe the reason that they chose this (if I remember correctly from my assembler class) method is that it's an optimized way of getting this calculation because modulus requires more CPU cycles to perform. But the result of this optimization will probably be not noticeable for your case as the calculation is done at most 31 times per game.

Posted by: Cheeseh Mar 29 2013, 12:03 PM

Hey Ted. Yeah I thought so too. I've been trying to compile myself on linux so I can test it myself. I've edited the rcbot files so that it compiles under linux however running into frustrations compiling the latest sdk from http://hg.alliedmods.net/hl2sdks/hl2sdk-ob-valve/

had to put

CODE

#if defined(_LINUX) || defined(__APPLE__)
#define NO_MALLOC_OVERRIDE
#endif


in memoverride.cpp as it came up with g_pMemAlloc not defined errors

now coming up with errors in memstack.cpp
CODE

./utils/RCBot2/../../tier1/memstack.cpp
<command-line>:0:8: warning: extra tokens at end of #undef directive [enabled by default]
<command-line>:0:8: warning: extra tokens at end of #undef directive [enabled by default]
<command-line>:0:6: warning: extra tokens at end of #undef directive [enabled by default]
../utils/RCBot2/../../tier1/memstack.cpp:29:48: error: expected constructor, destructor, or type conversion before ‘;’ token
../utils/RCBot2/../../tier1/memstack.cpp: In member function ‘bool CMemoryStack::Init(unsigned int, unsigned int, unsigned int, unsigned int)’:
../utils/RCBot2/../../tier1/memstack.cpp:120:80: error: ‘MemAlloc_AllocAligned’ was not declared in this scope
../utils/RCBot2/../../tier1/memstack.cpp: In member function ‘void CMemoryStack::Term()’:
../utils/RCBot2/../../tier1/memstack.cpp:170:33: error: ‘MemAlloc_FreeAligned’ was not declared in this scope
make[1]: *** [obj/HPB_bot2_i486/us/RCBot2/tier1/memstack.o] Error 1


I don't really want to be editing non-rcbot files as I'm not sure about all this tier stuff

Posted by: Ted Mar 30 2013, 12:04 AM

Actually, I found that you don't really need to include the memoverride and memstack objects for compilation. The current LINUX RCBot2 code base does not use any of the functions from those objects.

Also I found it easier to just specify the project as a plugin object rather than go through the mod project route as specified by the Makefile posted in the forum. This allows you skip building vcpm project, which is severely outdated. The only draw back is that you will have to manually update the Makeifle.plugin file.

QUOTE(Cheeseh @ Mar 29 2013, 12:03 PM) *

Hey Ted. Yeah I thought so too. I've been trying to compile myself on linux so I can test it myself. I've edited the rcbot files so that it compiles under linux however running into frustrations compiling the latest sdk from http://hg.alliedmods.net/hl2sdks/hl2sdk-ob-valve/

had to put
CODE

#if defined(_LINUX) || defined(__APPLE__)
#define NO_MALLOC_OVERRIDE
#endif


in memoverride.cpp as it came up with g_pMemAlloc not defined errors

now coming up with errors in memstack.cpp
CODE

./utils/RCBot2/../../tier1/memstack.cpp
<command-line>:0:8: warning: extra tokens at end of #undef directive [enabled by default]
<command-line>:0:8: warning: extra tokens at end of #undef directive [enabled by default]
<command-line>:0:6: warning: extra tokens at end of #undef directive [enabled by default]
../utils/RCBot2/../../tier1/memstack.cpp:29:48: error: expected constructor, destructor, or type conversion before ‘;’ token
../utils/RCBot2/../../tier1/memstack.cpp: In member function ‘bool CMemoryStack::Init(unsigned int, unsigned int, unsigned int, unsigned int)’:
../utils/RCBot2/../../tier1/memstack.cpp:120:80: error: ‘MemAlloc_AllocAligned’ was not declared in this scope
../utils/RCBot2/../../tier1/memstack.cpp: In member function ‘void CMemoryStack::Term()’:
../utils/RCBot2/../../tier1/memstack.cpp:170:33: error: ‘MemAlloc_FreeAligned’ was not declared in this scope
make[1]: *** [obj/HPB_bot2_i486/us/RCBot2/tier1/memstack.o] Error 1


I don't really want to be editing non-rcbot files as I'm not sure about all this tier stuff

Posted by: Cheeseh Apr 4 2013, 11:53 AM

QUOTE(Ted @ Mar 30 2013, 01:04 AM) *

Actually, I found that you don't really need to include the memoverride and memstack objects for compilation. The current LINUX RCBot2 code base does not use any of the functions from those objects.

Also I found it easier to just specify the project as a plugin object rather than go through the mod project route as specified by the Makefile posted in the forum. This allows you skip building vcpm project, which is severely outdated. The only draw back is that you will have to manually update the Makeifle.plugin file.


well i've updated the source files on the svn to fix the linux compile issues, and removed dependencies on the tier1 source, (just use the lib). I've run into compile problems yet again where it says "libtier0_srv.so could not read symbols: File in wrong format " garrh, I'm compiling in 64-bit ubuntu but using lib32 libs with -m32 flag, dunno what else I need to check.

Posted by: Ted Apr 10 2013, 09:25 AM

QUOTE(Cheeseh @ Apr 4 2013, 11:53 AM) *

well i've updated the source files on the svn to fix the linux compile issues, and removed dependencies on the tier1 source, (just use the lib). I've run into compile problems yet again where it says "libtier0_srv.so could not read symbols: File in wrong format " garrh, I'm compiling in 64-bit ubuntu but using lib32 libs with -m32 flag, dunno what else I need to check.



Here is my Makefile:

CODE

#
# SDK Makefile for x86 Linux
#
#

#############################################################################
# Developer configurable items
#############################################################################

# the name of the mod binary (_i486.so is appended to the end)
NAME = HPB_bot2

# the location of the vcproj that builds the mod
MOD_PROJ = ../utils/RCBot2/HPB_Bot2.vcproj
# the name of the mod configuration (typically <proj name>_<build type><build target>)
MOD_CONFIG = HPB_bot2_ReleaseWin32

# the directory the base binaries (tier0_i486.so, etc) are located
# this should point to your orange box subfolder of where you have srcds installed.
SRCDS_DIR = ~/srcds/orangebox

# the path to your mods directory
# set this so that 'make install' or 'make installrelease' will copy your binary over automatically.
GAME_DIR = $(SRCDS_DIR)/
GCC_VER = 4.7
# compiler options (gcc 3.4.1 or above is required - 4.1.2+ recommended)
CC = /usr/bin/gcc-$(GCC_VER)
CPLUS = /usr/bin/gcc-$(GCC_VER)
CLINK = /usr/bin/gcc-$(GCC_VER)
CPP_LIB_DIR = /usr/lib/gcc/x86_64-linux-gnu/4.7/32
CPP_LIB = #"$(CPP_LIB_DIR)/libstdc++.a $(CPP_LIB_DIR)/libgcc_eh.a"

VSTD_LIB=libvstdlib_srv.so
STEAM_LIB=libsteam.so
TIER0_LIB=libtier0_srv.so

# put any compiler flags you want passed here
USER_CFLAGS =

# link flags for your mod, make sure to include any special libraries here
LDFLAGS = "-lm -ldl $(LIB_DIR)/particles_i486.a $(LIB_DIR)/dmxloader_i486.a $(LIB_DIR)/mathlib_i486.a $(TIER0_LIB) $(VSTD_LIB) $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a $(LIB_DIR)/tier3_i486.a $(LIB_DIR)/choreoobjects_i486.a $(STEAM_LIB)"

# XERCES 2.6.0 or above ( http://xml.apache.org/xerces-c/ ) is used by the vcproj to makefile converter
# it must be installed before being able to run this makefile
# if you have xerces installed already you should be able to use the two lines below
XERCES_INC_DIR = /usr/include
XERCES_LIB_DIR = /usr/lib

# Change this to true if you want to build debug binaries for everything
# The only exception is the mod/game as MOD_CONFIG determines if it's a debug build or not
DEBUG = false

#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
MAKE = make
AR = "ar rvs"

# the dir we want to put binaries we build into
BUILD_DIR = .
# the place to put object files
BUILD_OBJ_DIR = $(BUILD_DIR)/obj

# the location of the source code
SRC_DIR = ..
# the location of the Linux static libraries
LIB_DIR = $(SRC_DIR)/lib/linux

# the CPU target for the build, must be i486 for now
ARCH = i486
ARCH_CFLAGS = -mtune=i686 -march=pentium3 -mmmx -m32

DEFINES = -D_LINUX -DLINUX -DVPROF_LEVEL=1 -DSWDS -D_finite=finite -Dstricmp=strcasecmp -D_stricmp=strcasecmp \
    -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -DGNUC
UNDEF = -Usprintf -Ustrncpy -UPROTECTED_THINGS_ENABLE

BASE_CFLAGS = -fno-strict-aliasing -Wall -Wconversion -Wno-non-virtual-dtor -Wno-invalid-offsetof
SHLIBEXT = so
SHLIBCFLAGS = -fPIC
SHLIBLDFLAGS = -shared -Wl,-Map,$@_map.txt -Wl

# Flags passed to the c compiler
CFLAGS = $(DEFINES) $(ARCH_CFLAGS) -g $(BASE_CFLAGS)
ifdef USER_CFLAGS
    CFLAGS += $(USER_CFLAGS)
endif
CFLAGS += $(UNDEF)

# Debug flags
DBG_DEFINES = "-D_DEBUG -DDEBUG"
DBG_CFLAGS = "$(DEFINES) $(ARCH_CFLAGS) -g -ggdb $(BASE_CFLAGS) $(UNDEF)"

# define list passed to make for the sub makefile
BASE_DEFINES = CC=$(CC) AR=$(AR) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) DEBUG=$(DEBUG) \
    BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) SRC_DIR=$(SRC_DIR) \
    LIB_DIR=$(LIB_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS) SHLIBEXT=$(SHLIBEXT) \
    CLINK=$(CLINK) CFLAGS="$(CFLAGS)" DBG_CFLAGS=$(DBG_CFLAGS) LDFLAGS=$(LDFLAGS) \
    DEFINES="$(DEFINES)" DBG_DEFINES=$(DBG_DEFINES) \
    ARCH=$(ARCH) SRCDS_DIR=$(SRCDS_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) \
    XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR) \
    TIER0_LIB=$(TIER0_LIB) VSTD_LIB=$(VSTD_LIB)

# Project Makefile
MAKE_SERVER = Makefile.server
MAKE_VCPM = Makefile.vcpm
MAKE_PLUGIN = Makefile.plugin
MAKE_TIER1 = Makefile.tier1
MAKE_MATH = Makefile.mathlib
MAKE_CHOREO = Makefile.choreo

all: check vcpm mod

check:    $(TIER0_LIB) $(STEAM_LIB) $(VSTD_LIB) tier1 mathlib choreo
    if [ -x "$(CC)" ]; then echo "Compiler not defined."; exit; fi
    if [ ! -d $(BUILD_DIR) ];then mkdir -p $(BUILD_DIR);fi
#    cd $(BUILD_DIR)
#    if [ ! -e "$(LIB_DIR)/tier1_i486.a" ]; then $(MAKE) tier1;fi
#    if [ ! -e "$(LIB_DIR)/mathlib_i486.a" ]; then $(MAKE) mathlib;fi
#    if [ ! -e "$(LIB_DIR)/choreoobjects_i486.a" ]; then $(MAKE) choreo;fi

%.so: $(SRCDS_DIR)/bin/%.so
    ln -s $(SRCDS_DIR)/bin/$@

vcpm:
    $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES)

mod: check vcpm
    export LD_LIBRARY_PATH=./ && ./vcpm $(MOD_PROJ)
    $(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES)

plugin: check
    $(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)

tier1: $(LIB_DIR)/tier1_i486.a
    $(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES)

mathlib: $(LIB_DIR)/mathlib_i486.a
    $(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES)

choreo: $(LIB_DIR)/choreoobjects_i486.a
    $(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES)

install:
    cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)

installrelease:
    cp -f $(NAME)_$(ARCH).$(SHLIBEXT) $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)
    strip $(GAME_DIR)/bin/$(NAME)_$(ARCH).$(SHLIBEXT)

clean:
    $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
    $(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
    $(MAKE) -f $(MAKE_SERVER) $(BASE_DEFINES) clean
    $(MAKE) -f $(MAKE_TIER1) $(BASE_DEFINES) clean
    $(MAKE) -f $(MAKE_MATH) $(BASE_DEFINES) clean
    $(MAKE) -f $(MAKE_CHOREO) $(BASE_DEFINES) clean
    rm $(TIER0_LIB) $(STEAM_LIB) $(VSTD_LIB)
    rmdir obj


Makefile.plugin
CODE

#
# Sample server plugin for SRC engine
#
# October 2004, alfred@valvesoftware.com
#

NAME = HPB_Bot2

PLUGIN_SRC_DIR = $(SRC_DIR)/utils/RCBot2
PUBLIC_SRC_DIR = $(SRC_DIR)/public
TIER0_PUBLIC_SRC_DIR = $(SRC_DIR)/public/tier0
TIER1_PUBLIC_SRC_DIR = $(SRC_DIR)/public/tier1

PLUGIN_OBJ_DIR = $(BUILD_OBJ_DIR)/$(NAME)_$(ARCH)
TIER0_OBJ_DIR = $(PLUGIN_OBJ_DIR)/tier0

INCLUDEDIRS = -I$(PUBLIC_SRC_DIR) -I$(TIER0_PUBLIC_SRC_DIR) -I$(TIER1_PUBLIC_SRC_DIR) -I$(PUBLIC_SRC_DIR)/mathlib -I$(SRC_DIR)/game/shared -I$(SRC_DIR)/game/server -I$(PUBLIC_SRC_DIR)/game/server -I$(PUBLIC_SRC_DIR)/engine

LDFLAGS_PLG = -lm -ldl $(TIER0_LIB) $(VSTD_LIB) $(LIB_DIR)/mathlib_i486.a $(LIB_DIR)/tier1_i486.a $(LIB_DIR)/tier2_i486.a

DO_CC = $(CPLUS) $(INCLUDEDIRS) -DARCH=$(ARCH)

ifeq "$(DEBUG)" "true"
    DO_CC += $(DBG_DEFINES) $(DBG_CFLAGS)
else
    DO_CC += -DNDEBUG $(CFLAGS)
endif

DO_CC += -o $@ -c $<

#####################################################################

PLUGIN_OBJS = \
    $(PLUGIN_OBJ_DIR)/bot.o \
    $(PLUGIN_OBJ_DIR)/bot_accessclient.o \
    $(PLUGIN_OBJ_DIR)/bot_buttons.o \
    $(PLUGIN_OBJ_DIR)/bot_client.o \
    $(PLUGIN_OBJ_DIR)/bot_commands.o \
    $(PLUGIN_OBJ_DIR)/bot_configfile.o \
    $(PLUGIN_OBJ_DIR)/bot_coop.o \
    $(PLUGIN_OBJ_DIR)/bot_css_bot.o \
    $(PLUGIN_OBJ_DIR)/bot_dod_bot.o \
    $(PLUGIN_OBJ_DIR)/bot_events.o \
    $(PLUGIN_OBJ_DIR)/bot_fortress.o \
    $(PLUGIN_OBJ_DIR)/bot_ga.o \
    $(PLUGIN_OBJ_DIR)/bot_ga_ind.o \
    $(PLUGIN_OBJ_DIR)/bot_getprop.o \
    $(PLUGIN_OBJ_DIR)/bot_globals.o \
    $(PLUGIN_OBJ_DIR)/bot_hl1dmsrc.o \
    $(PLUGIN_OBJ_DIR)/bot_hldm_bot.o \
    $(PLUGIN_OBJ_DIR)/bot_kv.o \
    $(PLUGIN_OBJ_DIR)/bot_main.o \
    $(PLUGIN_OBJ_DIR)/bot_mods.o \
    $(PLUGIN_OBJ_DIR)/bot_mtrand.o \
    $(PLUGIN_OBJ_DIR)/bot_navmesh.o \
    $(PLUGIN_OBJ_DIR)/bot_perceptron.o \
    $(PLUGIN_OBJ_DIR)/bot_profile.o \
    $(PLUGIN_OBJ_DIR)/bot_profiling.o \
    $(PLUGIN_OBJ_DIR)/bot_schedule.o \
    $(PLUGIN_OBJ_DIR)/bot_script.o \
    $(PLUGIN_OBJ_DIR)/bot_som.o \
    $(PLUGIN_OBJ_DIR)/bot_strings.o \
    $(PLUGIN_OBJ_DIR)/bot_task.o \
    $(PLUGIN_OBJ_DIR)/bot_usercmd.o \
    $(PLUGIN_OBJ_DIR)/bot_utility.o \
    $(PLUGIN_OBJ_DIR)/bot_visibles.o \
    $(PLUGIN_OBJ_DIR)/bot_waypoint.o \
    $(PLUGIN_OBJ_DIR)/bot_waypoint_locations.o \
    $(PLUGIN_OBJ_DIR)/bot_waypoint_visibility.o \
    $(PLUGIN_OBJ_DIR)/bot_weapons.o \
    $(PLUGIN_OBJ_DIR)/bot_wpt_dist.o \
    $(PLUGIN_OBJ_DIR)/bot_zombie.o \

TIER0_OBJS =

all: dirs $(NAME)_$(ARCH).$(SHLIBEXT)

dirs:
    -mkdir -p $(BUILD_OBJ_DIR)
    -mkdir -p $(PLUGIN_OBJ_DIR)
    -mkdir -p $(TIER0_OBJ_DIR)

$(NAME)_$(ARCH).$(SHLIBEXT): $(PLUGIN_OBJS) $(TIER0_OBJS)
    $(CLINK) -o $(BUILD_DIR)/$@ -m32 $(SHLIBLDFLAGS) $(PLUGIN_OBJS) $(TIER0_OBJS) $(PUBLIC_OBJS) $(CPP_LIB) $(LDFLAGS_PLG) $(CPP_LIB)

$(PLUGIN_OBJ_DIR)/%.o: $(PLUGIN_SRC_DIR)/%.cpp
    $(DO_CC)

$(TIER0_OBJ_DIR)/%.o: $(TIER0_PUBLIC_SRC_DIR)/%.cpp
    $(DO_CC)

clean:
    -rm -rf $(PLUGIN_OBJ_DIR)
    -rm -f $(NAME)_$(ARCH).$(SHLIBEXT)


I turned off the compiler optimzer -O3 in order to debug and turned on debugging flags.

Posted by: Cheeseh Apr 13 2013, 12:16 AM

cheers Ted, I had to make a few changes though, and for some reason says "gcc-4.7 -shared false -o ..." unknown command false . obv something missing, and couldn't find that in the makefile. Anyway I just copied and pasted it into the terminal and removed 'false' and it compiled.

Would anyone care to try? For dods in linux: the rcbot_runplayer_cmd_dods must be 415 for non steampipe otherwise it will crash

http://rcbot.bots-united.com/downloads/HPB_bot2_i486.so.tar.gz

Posted by: RMCvik Oct 17 2013, 02:14 PM

hi guys new to this
downloaded the bots for dods

followed all th einstructions fo rinstalling to a rented linux server

when i ran the command i got this show up in concole any help would be appreciated im dying to get these running

] rcon plugin_load HPB_bot2_i486.so<<<< was the command i used

failed to dlopen /home/games/dods/1071250/178.32.80.157:27015/orangebox/bin/HPB_bot2_i486.so error=/home/games/dods/1071250/178.32.80.157:27015/orangebox/bin/HPB_bot2_i486.so: ELF file OS ABI invalid
failed to dlopen HPB_bot2_i486.so error=bin/HPB_bot2_i486.so: ELF file OS ABI invalid
Unable to load plugin "HPB_bot2_i486.so"
U

so what went worng
what does ELF file OS ABI invalid mean. im stuck and dont know how to get the bots to work:(

Posted by: RMCvik Oct 30 2013, 05:17 PM

ok now i did this in console

] rcon plugin_load rcbot_mm_i586 .so

this is what appeared inthe console

Loaded plugin "rcbot_mm_i586"

then i added this line


rcbotd addbot

server shut down and rebooted itself

plz help as i ma lost now

Posted by: madmax2 Nov 1 2013, 06:47 PM

Hi RMCvik,

I'm not sure if there is a linux build that will work on rented servers right now? I believe the last release for linux was .75r2. The rcbot folder must still be installed to your home folder with that version, which may not be accessable on a rented server?

A few things to check:

I think the rcbot_runplayer_cmd_dods & rcbot_runplayer_cmd_tf2 settings are currently the same, the sourcemodplugins.org site for dods is wrong. currently windows=417 & linux=418

If it crashes when adding a bot, do this manually... start the game server running and load the rcbot2 plugin with the -insecure switch, then manually enter the rcbot_runplayer_cmd & variable (rcbot_runplayer_cmd_dods 418), then try rcbotd addbot. Cross your fingers...

Check these threads, it's windows but still good info...

See Cheesehs Post #9

http://rcbot.bots-united.com/forums/index.php?showtopic=1810&pid=12150&st=0&#entry12150

and this one on steamcmd, rcbot .76 is the solution for windows, the rcbot folder can be relocated to the server folder instead of the user/home folder...

http://rcbot.bots-united.com/forums/index.php?showtopic=1821&st=0&p=12321&#entry12321

Again, I'm not sure this will work on a rented linux server, even if you do have access to the home folder...? rcbot2 .76 is suppose to fix this issue (rented servers)...

Good Luck,
max




Posted by: RMCvik Nov 1 2013, 07:02 PM

QUOTE(madmax2 @ Nov 1 2013, 07:47 PM) *

Hi RMCvik,

I'm not sure if there is a linux build that will work on rented servers right now? I believe the last release for linux was .75r2. The rcbot folder must still be installed to your home folder with that version, which may not be accessable on a rented server?

A few things to check:

I think the rcbot_runplayer_cmd_dods & rcbot_runplayer_cmd_tf2 settings are currently the same, the sourcemodplugins.org site for dods is wrong. currently windows=417 & linux=418

If it crashes when adding a bot, do this manually... start the game server running and load the rcbot2 plugin with the -insecure switch, then manually enter the rcbot_runplayer_cmd & variable (rcbot_runplayer_cmd_dods 418), then try rcbotd addbot. Cross your fingers...

Check these threads, it's windows but still good info...

See Cheesehs Post #9

http://rcbot.bots-united.com/forums/index.php?showtopic=1810&pid=12150&st=0&#entry12150

and this one on steamcmd, rcbot .76 is the solution for windows, the rcbot folder can be relocated to the server folder instead of the user/home folder...

http://rcbot.bots-united.com/forums/index.php?showtopic=1821&st=0&p=12321&#entry12321

Again, I'm not sure this will work on a rented linux server, even if you do have access to the home folder...? rcbot2 .76 is suppose to fix this issue (rented servers)...

Good Luck,
max

whats the -insecure swich plz? and thanks for replaying thought i was talking to a dead world lol

Posted by: RMCvik Nov 2 2013, 05:14 PM

dint work mate:(
i need someone to go into my ftp to check igot the right files int he right place and guide me thorugh it as if i ws a 5 year old spastic
im not the greatest techie

Posted by: madmax2 Nov 3 2013, 03:31 AM

QUOTE(RMCvik @ Nov 1 2013, 11:02 AM) *

whats the -insecure swich plz? and thanks for replaying thought i was talking to a dead world lol

-insecure disables "Valve Anti Cheat" (VAC) for your game server. Rcbot2 needs sv_cheats enabled to work. RCbot2 is not an "approved" plugin...

Heh heh, well it's not quite a dead world... Activity here seems to go up & down with the seasons...

I'm not the greatest techie either, I feel like the blind leading the blind when it comes to this stuff...rolleyes.gif

Don't think I can be much more help on this, as I don't know linux, or Source engine dedi setups or rented servers. Just been going by what I've read here & HL1 LAN dedi experience. I haven't seen any confirmation anyone has got the linux build of rcbot2 running correctly on a rented server. I haven't even seen positive feedback for the latest windows build (.76) running on a rented server. Although Cheeseh did provide a dll with .76 that looks for the rcbot2 folder above the mod folder, .75r2 won't do that...

Where has the rcbot2 folder been installed on your server, what path?

The path to the hpb_bot2_i486.so looks odd to me, with the IP address & i guess an account number inbedded into the path, but maybe thats ok? The hpb_bot2_i486.so should be in the bin folder next to the dod game/mod folder.

What does your bot_mods.ini dod part say?

Just so you know, this could be a complete waist of time, you may need a rcbot2 .76 linux build, to make it work... I take it that you don't have a windows option for the rented server?



Posted by: RMCvik Nov 3 2013, 03:43 PM

ok on my server

main folder that houses my rented server

i have
bin
orangebox
HL2
recbot folder

inside orangebox i have dod

and inthe bin for dod is my iso

ALSO the server providor placed a vdf file for the rcbots inthe metamod folder

so as far as i know its all in the right place

the ini
i removed the hash marks before
dod etc
here:-
mod = DOD
steamdir = orangebox
gamedir = dod
bot = DOD

Posted by: madmax2 Nov 4 2013, 02:42 AM

okay, this is the way I think it should be, some of that does not seem correct to me?

the bin folder next to the orangebox folder should be inside the orangebox folder, next to the dod folder. there is also a bin folder inside the dod mod folder, leave it there & move the .so into the bin folder next to the dod mod folder.

the rcbot2.vdf should be in the addons folder inside the dod mod folder. If the vdf is found & executed by the game, that will load the rcbot plugin automaticlly on launch. it does the same as using plugin load from the console. you might want to remove it for now, so as not to possibly load the plugin twice...

I'm not sure what to tell you to do with the rcbot2 folder, i think the .75r2 .so will look for it to be in something like \home\[your user account]\rcbot2 this has been the problem for rented dedi servers from what i have read.

I think the bot_mods.ini is ok, if the folders & files are in the correct place...

I'm still not sure this will work? You probably need to have a rcbot2 .76 so, to make it work?

Posted by: Cheeseh Nov 4 2013, 03:00 AM

The DLL is loading which means there is nothing wrong with the VDF and dedicated servers do not need -insecure.

The bot is crashing which means rcbot_runplayer_cmd_dods is wrong.The .SO file uses an older number as default.

The problem is changing rcbot_runplayer_cmd_dods in the config.ini won't help in dedicated server. you must do this yourself before adding bots the first time.

As far as I know rcbot_runplayer_cmd_dodsis now 417, correct me if I'm wrong

you must use the command
rcbot_runplayer_cmd_dods 417

and then
rcbotd addbot

Posted by: RMCvik Nov 4 2013, 08:45 AM

just says unknown command

Posted by: Cheeseh Nov 6 2013, 05:28 AM

QUOTE(RMCvik @ Nov 4 2013, 09:45 AM) *

just says unknown command


I mean rcbotd addbot

rcbot command is client only
rcbotd is dedicated

Posted by: RMCvik Nov 6 2013, 05:21 PM

no i mean when i did this

rcbot_runplayer_cmd_dods 417 it said unknown command

Posted by: Cheeseh Nov 7 2013, 01:47 AM

QUOTE(RMCvik @ Nov 6 2013, 06:21 PM) *

no i mean when i did this

rcbot_runplayer_cmd_dods 417 it said unknown command


Before you said you loaded the bot here:

http://rcbot.bots-united.com/forums/index.php?s=&showtopic=1254&view=findpost&p=12412

although looking back, you've loaded the bot for SVENCOOP (Half-life 1), not HL2 Day of defeat Source.

the .SO file you need is here

http://sourceforge.net/projects/rcbot2/files/rcbot2/RCBot2%200.75%20R2/RCBot2_075R2_linux.tar.gz/download

Posted by: RMCvik Nov 7 2013, 09:15 AM

ok cheesh to confirm
hers the loctions of all my files

in the main folder i have the following (this is a rented linux server)

429996734494077ef75e662b9716c73688057293 folder
bin
hl2
orange box
platform
rcbot2

next in side orange box i have
another folder with long serial number (these i cant access )
bin <<< the HPB_bot2_i486.so is in this folder
hl2
dod
platform

in dod i have
addons
bin
and all the other folders that are not mentioned inthe instructins

in addons i have
rcbot2.vdf

so i have downloaded the iso yo mentioned just above
i ran the command line rcbot_runplayer_cmd_dods 417

and it is stillcoming up as unknown command

i also tried rcon plugin_load rcbot_mm_i486.so
and this was the response in console
Unable to load plugin "rcbot_mm_i486.so"

so one of my folders mus be in wrong place or something

Posted by: Cheeseh Nov 7 2013, 10:21 AM

QUOTE
so i have downloaded the iso yo mentioned just above
i ran the command line rcbot_runplayer_cmd_dods 417

and it is stillcoming up as unknown command

i also tried rcon plugin_load rcbot_mm_i486.so
and this was the response in console
Unable to load plugin "rcbot_mm_i486.so"


the plugin load command must be first of course

try

plugin_load ../bin/HPB_bot2_i486

as far as i know you don't need .SO after the name here
also it's linux so all filenames are case-sensitive
also make sure its hpb bot, not rcbot

Posted by: RMCvik Nov 8 2013, 09:53 AM

ok i tired this

and this came up on console

failed to dlopen /home/games/dods/1071250/178.32.80.157:27015/orangebox/dod/../bin/HPB_bot2_i486.so error=/home/games/dods/1071250/178.32.80.157:27015/orangebox/dod/../bin/HPB_bot2_i486.so: ELF file OS ABI invalid
failed to dlopen /home/games/dods/1071250/178.32.80.157:27015/orangebox/hl2/../bin/HPB_bot2_i486.so error=/home/games/dods/1071250/178.32.80.157:27015/orangebox/hl2/../bin/HPB_bot2_i486.so: ELF file OS ABI invalid
failed to dlopen /home/games/dods/1071250/178.32.80.157:27015/orangebox/bin/../bin/HPB_bot2_i486.so error=/home/games/dods/1071250/178.32.80.157:27015/orangebox/bin/../bin/HPB_bot2_i486.so: ELF file OS ABI invalid
Unable to load plugin "../bin/HPB_bot2_i486"
Unable to load plugin "../bin/HPB_bot2_i486"
i cant eve begine to understand what that script means lol this is way above my head

Posted by: Cheeseh Nov 8 2013, 01:36 PM

QUOTE(RMCvik @ Nov 8 2013, 10:53 AM) *

ok i tired this

and this came up on console

failed to dlopen /home/games/dods/1071250/178.32.80.157:27015/orangebox/dod/../bin/HPB_bot2_i486.so error=/home/games/dods/1071250/178.32.80.157:27015/orangebox/dod/../bin/HPB_bot2_i486.so: ELF file OS ABI invalid
failed to dlopen /home/games/dods/1071250/178.32.80.157:27015/orangebox/hl2/../bin/HPB_bot2_i486.so error=/home/games/dods/1071250/178.32.80.157:27015/orangebox/hl2/../bin/HPB_bot2_i486.so: ELF file OS ABI invalid
failed to dlopen /home/games/dods/1071250/178.32.80.157:27015/orangebox/bin/../bin/HPB_bot2_i486.so error=/home/games/dods/1071250/178.32.80.157:27015/orangebox/bin/../bin/HPB_bot2_i486.so: ELF file OS ABI invalid
Unable to load plugin "../bin/HPB_bot2_i486"
Unable to load plugin "../bin/HPB_bot2_i486"
i cant eve begine to understand what that script means lol this is way above my head


From the sound of things here http://stackoverflow.com/questions/7647818/glibc-elf-file-os-abi-invalid

The server needs to have some extra packages installed or something for it to run so it looks like you wont be able to run it on your server

Posted by: Ted Jan 18 2014, 11:29 PM

I've built the latest version of RCBot2 on LINUX. I've tested it with the steam and dedicated server version of DODS and TF2. Here's the https://drive.google.com/file/d/0B4wf75_vWYh6NnFldjdhZWtSdG8/edit?usp=sharing.

Posted by: d3m0n May 2 2014, 03:16 AM

Hey everyone,

So I am having on hell of a time trying to get the folder structure right. I know there's been a big update since the last posts on here as far as the dedicated servers go. hldsupdatetool.bin is no longer used and switched to the steamcmd downloader. I am using Ted's latest build and running a dedicated linux server with Ubuntu 12.04 but I am not exactly sure if it's even suppose to work. Although the bots do load and work on certain maps.

My folder structure is as follows: /home/srcds/steamcmd/dods/dod. The folder dods has the srcds_run file and dod is the mod folder with the cfg and other files. My rcbot2 folder is: /home/srcds/steamcmd/rcbot2

Here is my server start up log: http://pastebin.com/8p5pWd6p

The following is my bot_mods.ini:

CODE
#
mod = DOD
steamdir = dods
gamedir = dod
bot = DOD
#


It shows that it loads properly and reading the bot profiles correctly on start-up:

CODE
[RCBot] Reading bot profile "../rcbot2/profiles/1.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/2.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/3.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/4.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/5.ini"
[RCBot] Reading bot profile "../rcbot2/profiles/6.ini"


When bots join they are named: Bot01...Bot02...Bot03 and so on with what looks like no bot profiles being loaded. It also seems that my waypoints are not being loaded. On certain maps like dod_avalanche the bots just sit in the spawn area not moving at all. On other maps, they seem to work okay. It gives me an error about failing to create folder/files for the waypoints:

CODE
[RCBot] file not found/opening error '../rcbot2/waypoints/dods/dod/dod_flash2.rcb' mode rb
[RCBot] Trying to create folder '../' failed
[RCBot] Trying to create folder '../rcbot2/' failed
[RCBot] Trying to create folder '../rcbot2/waypoints/' failed
[RCBot] Trying to create folder '../rcbot2/waypoints/dods/' failed
[RCBot] Trying to create folder '../rcbot2/waypoints/dods/dod/' failed
[RCBot] failed to make folders for ../rcbot2/waypoints/dods/dod/dod_flash2.rcb
*** Can't open Waypoint belief array for reading!
*** working out visibility 45 percent***
*** working out visibility 57 percent***
*** working out visibility 68 percent***
*** working out visibility 79 percent***
*** working out visibility 91 percent***
*** finished working out visibility ***
*** saving waypoints with visibility information ***


I also noticed an error that it was looking for the waypoints in the same folder as the bot_mods.ini was stated as eg: ../rcbot2/waypoints/dods/dod/ so I renamed the folder Day of Defeat Source to dods to hopefully make it work but still doesn't seem correct. Like I said though, some maps they will work. It seems dod_avalanche is one of the rare ones it doesn't work and also doesn't log "*** working out visibility 45 percent***" on the server.

Any help would be greatly appreciated, thanks! I've seen RCBot2 on other servers running I just don't know if they're on linux or not.

Posted by: madmax2 May 4 2014, 08:38 AM

Welcome to the Rcbot2 forums...

I'm not a linux guy so can't be much help there, but your folders look correct to me. The bots appear to be loading correctly, but there may still be a bug in the linux build, with bot names & profiles. See the last few posts in this topic about that...

http://rcbot.bots-united.com/forums/index.php?showtopic=1862

I believe the linux build is either .76 or .79, so you still need sv_cheats 1. It sounds like bots are working on most maps, but won't move on just a few maps?

I assume you have already tried replacing the waypoints on the effected maps. You could try deleteing the temporary files in the waypoints folder and let them regenerate (rcv, rcd, rcb) on those maps. If that doesn't help, you could try loading the waypoint manually, then add the bots, such as:

rcbot waypoint load dod_avalanche (rcbotd on dedi)

I have noticed when loading a waypoint manually after bots join, they may not recognize the capture areas, but a map restart will fix that.

It looks like you renamed the waypoints folder properly, and bots are working on many maps, so it must be related to the specific wpts it would seem, wierd file corruption maybe, very odd??? With rcbot1, sometimes the temp files need to be refreshed to correct odd behavior, so maybe thats the case here too?


Posted by: d3m0n May 7 2014, 02:42 AM

Hi madmax2,

Thanks for the reply.

I actually found out after the post that it was exactly what you had mentioned. For some reason, some the waypoint files that came with the bot where not working properly from the latest RCBOT download package. So I found some other waypoint on the forum, tried them, and seemed to work. A little buggy as the bots get stuck on certain points but much better than sitting in the spawn area.

Now the main problem is the bot profiles/names. I looked over the the forum topic you linked and the only solution was to do a mass rename but from what it looks like my bot names go up to around 500. eg: I have 4 bots join at a time with "max_bots 4" the initial bot names start out with Bot01...Bot02 and every map change the numbers go up. Also when the server is empty they leave and rejoin with +4 ... Bot06... Bot07...Bot08... all the way up to around 500 so mass rename would be out of the question as I would have to make 500 rename requests.

I am currently working on a sourcemod plugin that would enable/disable cheats and send addbot command with the names but when RCBOT reads the cfg file it's acting very weird. The config looks like the following:

CODE
rcbotd config min_bots 0
rcbotd config max_bots 4
rcbotd addbot 2 2 DeathFromAbove
rcbotd addbot 2 3 v0x
rcbotd addbot 3 2 Wall-E
rcbotd addbot 1 3 stealth


But for some reason it will add 4 bots with the name "stealth" is if it repeated the last command 4 times. If I can fix that, I can fix the cheats and bot names which I would be happy to release it here for anyone else that would like to use bots with a linux dedicated server.

Updates:

I actually just found this in my server log:

CODE
[RCBot] No bot profiles are free, creating a default bot...


More Updates:

Okay, so when I run the command in my console:

CODE
rcbotd addbot 0 2 Foo; rcbotd addbot 0 3 Bar;

RCBOT doesn't acknowledge the first command and executes the last command twice. If I send the commands one at a time in my console it works fine.

Posted by: madmax2 May 7 2014, 07:18 PM

Hi d3mOn,

Now I know what was happening on the waypoints problem you had... rolleyes.gif

QUOTE
For some reason, some the waypoint files that came with the bot where not working properly from the latest RCBOT download package.

You were using the waypoints from the latest release (.85), and a few of those waypoints appear to of been loaded and saved in the new waypoints version4 format, making them incompatible with the current linux build (version3 format waypoints). I see 2 "official" dod map waypoints in .85 that would be incompatible, dod_avalanche and dod_colmar, their file size changed from the .76 release. All waypoints in the .76 installer will work, and currently all waypoints in the waypoints forum should work on the linux build. Check the forum for the latest updated waypoints and patches, etc.

QUOTE
I actually just found this in my server log:

CODE
[RCBot] No bot profiles are free, creating a default bot...


I did confirm on windows, with the profiles folder removed, bots will still join and function, using defaults. I have suspected that this is what has been happening with the linux build, that RCbot is not actually reading in the bot profiles at all, even though the console suggests otherwise.

Bots should join with just a "rcbotd config max_bots 4" setting or using "rcbotd addbot". Try one or the other, not both, and see what happens...

You can put either command in the rcbot config.ini file and bots should join from that on map load. But the "rcbot_runplayer_cmd_dods 417" must be set manually before the first map or thru a server cfg file (modsettings.cfg http://rcbot.bots-united.com/forums/index.php?showtopic=1821&view=findpost&p=12667) on dedi's.

Posted by: d3m0n May 9 2014, 04:28 AM

Do you know if there is a way to manually reload the bot config.ini via rcon/console? If so, I think I can fix my problem by just adding the commands inside that config file because it executes it with the names correctly.

Posted by: madmax2 May 9 2014, 06:40 PM

QUOTE(d3m0n @ May 8 2014, 09:28 PM) *

Do you know if there is a way to manually reload the bot config.ini via rcon/console? If so, I think I can fix my problem by just adding the commands inside that config file because it executes it with the names correctly.

It would have to be thru a rcbot command, and I don't see it, so I don't think it's possible sad.gif .

But since you can load bots with names one at a time on the console, doe's it not work to execute a cfg file with addbot commands after map load. I believe most rcbot commands/cvars can be done this way...

Try creating a cfg file like this, name it something like rcbotsadd.cfg and place it in the /dod/cfg folder...

QUOTE
rcbotd addbot 2 2 DeathFromAbove
rcbotd addbot 2 3 v0x
rcbotd addbot 3 2 Wall-E
rcbotd addbot 1 3 stealth
rcbotd addbot 0 2 Foo
rcbotd addbot 0 3 Bar


After the map has loaded, you should be able to type exec rcbotsadd.cfg in the console and 6 bots should join. Now I thought this wasn't working for names on linux servers, but maybe it was just a problem of reading names from the profiles? On listen server, I add bots this way from the rcbot config.ini, but without the names, names get added from the profiles the way I have it set up.

If this works, you should be able to exec this file from a server cfg file that executes after map load, I'm just not sure what server cfg does that. On HL1 engine, you can have map cfg files for each map in the maps folder, I would think source has this too, but I'm not sure if the timing of execution is late enough to work? rolleyes.gif Idea: If it does work then you might be able to put the addbot commands in the map cfg's, and customize it for each map???

Posted by: d3m0n May 15 2014, 07:21 AM

Yeah, that's what I first tried with creating a plugin/loading a custom cfg with the commands. It just named them all the same name/class/team as the last "rcbot addbot 3 2 _stealth_" command.

I guess I am going to just go a head and accept this is bot is pretty broken on Linux. A lot of things don't work. They won't plant bombs, they seem to walk slow compared to the windows listen server version. I also tried creating a waypoint on my listen server in windows and save and copy it to my linux dedicated server but it doesn't seem to work. Although porting ones from my server onto the listen server does.

I'd be willing to throw someone a few paypal bucks if they're willing to compile the newest RCBot2 for linux and get it working.

Posted by: d3m0n May 20 2014, 04:00 AM

QUOTE(Ted @ Jan 19 2014, 06:29 AM) *

I've built the latest version of RCBot2 on LINUX. I've tested it with the steam and dedicated server version of DODS and TF2. Here's the https://drive.google.com/file/d/0B4wf75_vWYh6NnFldjdhZWtSdG8/edit?usp=sharing.


How can one build the 0.85 version?

UPDATE:

The linux version of the bot is now broken for DOD. After the May 2014 update there is now a segment fault that crashes the server quite often and unplayable with the bots.

CODE
----------------------------------------------
CRASH: Thu May 22 14:18:25 SGT 2014
Start Line: ./srcds_linux -console -game dod +map dod_donner +port 27015 +maxplayers 22 +plugin_load ../bin/HPB_bot2_i486 -debug
[New LWP 10960]
[New LWP 10966]
[New LWP 10965]
[New LWP 10968]
[New LWP 10982]
[New LWP 10964]
[New LWP 10983]
[New LWP 10979]
[New LWP 10961]
[New LWP 10962]
[New LWP 10963]
[New LWP 10971]
[New LWP 10969]
[New LWP 11040]
#0  0xa9960ed0 in ?? ()
End of Source crash report
----------------------------------------------

Posted by: madmax2 May 28 2014, 11:59 PM

QUOTE(d3m0n @ May 19 2014, 09:00 PM) *

How can one build the 0.85 version?

UPDATE:

The linux version of the bot is now broken for DOD. After the May 2014 update there is now a segment fault that crashes the server quite often and unplayable with the bots.

Sorry for late reply.. You might try to PM Ted and see if he is available to look at that. Also, I think the names/profiles problem in linux is going to need some sort of fix, not just compiling the new version? That would be my guess blink.gif ...

max

Posted by: Cheeseh May 29 2014, 05:51 AM

QUOTE(madmax2 @ May 29 2014, 12:59 AM) *

Sorry for late reply.. You might try to PM Ted and see if he is available to look at that. Also, I think the names/profiles problem in linux is going to need some sort of fix, not just compiling the new version? That would be my guess blink.gif ...

max


I just uploaded a newly compiled Linux dll for d3m0n for anyone else to try

http://rcbot.bots-united.com/downloads/linux/HPB_bot2_i486.so.tar.gz

this has some changes that have not been documented yet such as bots checking out hidden paths before they move on

I don't know what could be causing the crashing although I just fixed a crash in TF2 that might be similar in DOD:S ,

Posted by: Cheeseh May 30 2014, 12:52 AM

QUOTE(Cheeseh @ May 29 2014, 06:51 AM) *

I just uploaded a newly compiled Linux dll for d3m0n for anyone else to try

http://rcbot.bots-united.com/downloads/linux/HPB_bot2_i486.so.tar.gz

this has some changes that have not been documented yet such as bots checking out hidden paths before they move on

I don't know what could be causing the crashing although I just fixed a crash in TF2 that might be similar in DOD:S ,


well I tried on my Linux system but can't telli f its doing anything, I hate Linux and steam CMD cos its so damn counterintuitive

Posted by: Acrodesm May 31 2014, 12:25 PM

QUOTE(Cheeseh @ May 28 2014, 10:51 PM) *

I just uploaded a newly compiled Linux dll for d3m0n for anyone else to try

http://rcbot.bots-united.com/downloads/linux/HPB_bot2_i486.so.tar.gz


Neat. Would you also happen to have a Linux build that allows a relative path for the config files instead of the home directory? I have a non-dedicated rented server that does not have access to this.

Posted by: Cheeseh May 31 2014, 01:35 PM

QUOTE(Acrodesm @ May 31 2014, 01:25 PM) *

Neat. Would you also happen to have a Linux build that allows a relative path for the config files instead of the home directory? I have a non-dedicated rented server that does not have access to this.


Well at the moment the linus file still doesn't seem to work fully. 1) Profiles don't work and 2) Bots' don't move! argh

Posted by: Acrodesm May 31 2014, 07:36 PM

Oh my, that sounds horrible. Is there an older such build that works, or did a source engine update bork it all?

Posted by: d3m0n Jun 2 2014, 03:03 AM

QUOTE(Acrodesm @ Jun 1 2014, 02:36 AM) *

Oh my, that sounds horrible. Is there an older such build that works, or did a source engine update bork it all?


You can try but I ran Ubuntu 12.0.4 with the latest SteamCMD for DOD and Meta/Sourcemod and it crashed quite often when people joined and left.

Posted by: NewBie Sep 6 2014, 09:02 PM

And it is possible in the next version rcbot2 include version for Linux, and then have to look at the odds and here http://sourceforge.net/projects/rcbot2/files/rcbot2/ what actual version for Linux.

And what now for the current version of Linux, as it look before. post, there fault ..
Thanks in advance and thanks for RCbot2
p.s. Sorry for the bad english

Posted by: Cheeseh Sep 24 2014, 10:06 AM

QUOTE(NewBie @ Sep 6 2014, 10:02 PM) *

And it is possible in the next version rcbot2 include version for Linux, and then have to look at the odds and here http://sourceforge.net/projects/rcbot2/files/rcbot2/ what actual version for Linux.

And what now for the current version of Linux, as it look before. post, there fault ..
Thanks in advance and thanks for RCbot2
p.s. Sorry for the bad english


The current version has no linux version, yet. I'll need to try to compile it again myself sometime soon

Posted by: Cheeseh Oct 15 2014, 12:51 AM

QUOTE(Cheeseh @ Sep 24 2014, 11:06 AM) *

The current version has no linux version, yet. I'll need to try to compile it again myself sometime soon


I added a Linux file for v0.945, please check if it works

http://sourceforge.net/projects/rcbot2/files/rcbot2/RCBot2%200.94/HPB_bot2_0945.so.tar.gz/download

Posted by: NewBie Oct 19 2014, 12:28 PM

QUOTE(Cheeseh @ Oct 15 2014, 04:51 AM) *

I added a Linux file for v0.945, please check if it works

http://sourceforge.net/projects/rcbot2/files/rcbot2/RCBot2%200.94/HPB_bot2_0945.so.tar.gz/download

Thanks, now I can not check (temporarily) .. it is like for the future - not a bad thing to include in the archive and a version for * nix rсbot
and thanks again!
ps hope to write well with my bad English smile.gif)

Posted by: d3m0n Nov 15 2014, 06:13 AM

Hey Cheese,

What is this file the plugin keeps trying to create/read?

CODE
/home/srcds/rcbot2/waypoints/dods/dod/dod_avalanche.rcd


The bot profiles and waypoints to try read it but it doesn't come with the files. I also should also add I am testing out your new release. The profiles still don't want to work. All my bots are named RCBot. I am going to run it see if it still crashes.

UPDATE:

So after running the bots for 12+ hours, it looks like it spawns the dumb bots at one point and they just run back and forth. Changing the map doesn't seem to work, only restarting me server. I had sourcemod added to my server while running so I am going to remove it and test again.

UPDATE #2:

After running the bots for a while they seem okay with out sourcemod. When I previously had sourcemod on they spawned dumbbots but I'll have to keep doing more testing. I'll install a fresh sourchmod with no additional plugins and see how that goes.

Posted by: n0nnie Nov 19 2014, 01:12 PM

QUOTE(d3m0n @ Nov 15 2014, 07:13 AM) *

Hey Cheese,

What is this file the plugin keeps trying to create/read?

CODE
/home/srcds/rcbot2/waypoints/dods/dod/dod_avalanche.rcd


The bot profiles and waypoints to try read it but it doesn't come with the files. I also should also add I am testing out your new release. The profiles still don't want to work. All my bots are named RCBot. I am going to run it see if it still crashes.

UPDATE:

So after running the bots for 12+ hours, it looks like it spawns the dumb bots at one point and they just run back and forth. Changing the map doesn't seem to work, only restarting me server. I had sourcemod added to my server while running so I am going to remove it and test again.



Looks like you got no writingpermissions on the folder /home/srcds/rcbot2/waypoints/dods/dod/ to create the rcd. Try to chown the folder for the user you are running the server with and set chmod 775

Posted by: d3m0n Nov 21 2014, 09:56 AM

QUOTE(n0nnie @ Nov 19 2014, 08:12 PM) *

Looks like you got no writingpermissions on the folder /home/srcds/rcbot2/waypoints/dods/dod/ to create the rcd. Try to chown the folder for the user you are running the server with and set chmod 775


The permissions are correct, I checked before posting. 777 with correct account attached.

Here's start-up console output:

CODE
Using default binary: ./srcds_linux
Enabling debug mode
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Setting breakpad minidump AppID = 300
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
/home/srcds/.steam/sdk32/steamclient.so
with error:
/home/srcds/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Loaded 802 VPK file hashes from /home/srcds/steamcmd/dods2/dod/dod_pak.vpk for pure server operation.
Loaded 802 VPK file hashes from /home/srcds/steamcmd/dods2/dod/dod_pak.vpk for pure server operation.
Loaded 1218 VPK file hashes from /home/srcds/steamcmd/dods2/hl2/hl2_textures.vpk for pure server operation.
Loaded 574 VPK file hashes from /home/srcds/steamcmd/dods2/hl2/hl2_sound_vo_english.vpk for pure server operation.
Loaded 383 VPK file hashes from /home/srcds/steamcmd/dods2/hl2/hl2_sound_misc.vpk for pure server operation.
Loaded 434 VPK file hashes from /home/srcds/steamcmd/dods2/hl2/hl2_misc.vpk for pure server operation.
Loaded 5 VPK file hashes from /home/srcds/steamcmd/dods2/platform/platform_misc.vpk for pure server operation.
server_srv.so loaded for "Day of Defeat"
maxplayers set to 12
maxplayers set to 12
[RCBOT] Found interface INTERFACEVERSION_PLAYERINFOMANAGER IPlayerInfoManager playerinfomanager
[RCBOT] Found interface INTERFACEVERSION_VENGINESERVER IVEngineServer engine
Trying... VFileSystem022
[RCBOT] Found interface "VFileSystem" IFileSystem filesystem, ver = 022
[RCBot] New custom mod loaded:
gamefolder = "dod"
steamfolder = "dods2"

[RCBot] HL2 MOD ID 10 (Steam Folder = dods2) (Game Folder = dod) FOUND
[RCBot] Training DOD:S capture decision 'NN' ... hold on...
[RCBot] ... done!
[RCBOT] Found interface INTERFACEVERSION_ISERVERPLUGINHELPERS IServerPluginHelpers helpers
[RCBOT] Found interface INTERFACEVERSION_ENGINETRACE_SERVER IEngineTrace enginetrace
[RCBOT] Found interface INTERFACEVERSION_SERVERGAMEENTS IServerGameEnts servergameents
[RCBOT] Found interface IEFFECTS_INTERFACE_VERSION IEffects g_pEffects
[RCBOT] Found interface INTERFACEVERSION_PLAYERBOTMANAGER IBotManager g_pBotManager
[RCBOT] Found interface INTERFACEVERSION_GAMEEVENTSMANAGER2 IGameEventManager2 gameeventmanager
[RCBOT] Found interface INTERFACEVERSION_GAMEEVENTSMANAGER IGameEventManager gameeventmanager1
Trying... ServerGameDLL008
[RCBOT] Found interface "ServerGameDLL" IServerGameDLL servergamedll, ver = 008
Trying... ServerGameClients004
[RCBOT] Found interface "ServerGameClients" IServerGameClients gameclients, ver = 004
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/1.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/2.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/3.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/4.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/5.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/6.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/7.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/8.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/9.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/10.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/11.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/12.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/13.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/14.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/15.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/16.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/17.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/18.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/19.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/20.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/21.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/22.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/23.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/24.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/25.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/26.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/27.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/28.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/29.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/30.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/31.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/32.ini"
[RCBot] file not found/opening error '/home/srcds/rcbot2/profiles/33.ini' mode r
[RCBot] Trying to create folder '/' failed
[RCBot] Trying to create folder '/home/' failed
[RCBot] Trying to create folder '/home/srcds/' failed
[RCBot] Trying to create folder '/home/srcds/rcbot2/' failed
[RCBot] Trying to create folder '/home/srcds/rcbot2/profiles/' failed
[RCBot] failed to make folders for /home/srcds/rcbot2/profiles/33.ini
[RCBot] Bot profile "/home/srcds/rcbot2/profiles/33.ini" not found
-----------------------------------------------------------------
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 "bin/HPB_bot2_i486.so"
Unknown command "mat_bloom_scalefactor_scalar"
Network: IP 116.251.210.253, mode MP, dedicated Yes, ports 27016 SV / 27005 CL
Unknown command "sv_rollangle"
Unknown command "mp_facefronttime"
Unknown command "sv_unlag_fixstuck"
Level "dod_avalanche" has been loaded
WAYPOINTS LOADED SUCCESSFULLYL 11/23/2014 - 12:27:56: -------- Mapchange to dod_avalanche --------
ConVarRef room_type doesn't point to an existing ConVar
ConVarRef sk_suitcharger doesn't point to an existing ConVar
Executing dedicated server config file server.cfg
Using map cycle file 'cfg/mapcycle_default.txt'.  ('cfg/mapcycle.txt' was not found.)
Error reading weapon data file for: weapon_ifm_steadycam
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Set motd from file 'cfg/motd_default.txt'.  ('cfg/motd.txt' was not found.)
'cfg/motd_text.txt' not found; not loaded
clientMax is 12
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
dlopen failed trying to load:
/home/srcds/.steam/sdk32/steamclient.so
with error:
/home/srcds/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
No account token specified; logging into anonymous game server account.  (Use sv_setsteamaccount to login to a persistent account.)
Unknown command "sv_autojointeam"
Unknown command "sv_maxspeed"
Writing cfg/banned_user.cfg.
Writing cfg/banned_ip.cfg.
[RCBot] bot added
*************** server.cfg loaded ***************
'dod_avalanche.cfg' not present; not executing.
Dropped Bot01 from server (Punting bot, server is hibernating)
[RCBot] Bot Command 'rcbot_defrate 0.19
' executed
[RCBot] Bot Command 'rcbot_skill 0.60
' executed
[RCBot] Bot Command 'rcbot_anglespeed 0.25
' executed
[RCBot] Bot Command 'rcbot_avoid_radius 80
' executed
[RCBot] Bot Command 'rcbot_avoid_strength 100
' executed
[RCBot] Bot Command 'rcbot_aimsmooting 1
' executed
[RCBot] Bot Command 'rcbot_change_classes 1
' executed
[RCBot] Bot Command 'rcbot_taunt 0
' executed
[RCBot] Bot Command 'rcbot_messaround 1
' executed
[RCBot] Bot Command 'rcbot_meleeonly 0
' executed
Unknown command "rcbot_meleeonly"
[RCBot] Bot Command 'rcbot_move_obj 1
' executed
[RCBot] Bot Command 'rcbot_min_cc_time 60
' executed
[RCBot] Bot Command 'rcbot_max_cc_time 240
' executed
[RCBot] Bot Command 'rcbot_runplayer_hookonce 1
' executed
[RCBot] Bot Command 'rcbot_runplayer_cmd_dods 417
' executed
Connection to Steam servers successful.
   Public IP is XXX.XXX.XXX.XXX.
Assigned anonymous gameserver Steam ID [A-1:924591113(4866)].
[RCBot] Bot Command 'rcbot_runplayer_cmd_tf2 417
' executed
[RCBot] Bot Command 'rcbot_scoutdj 0.5
' executed
[RCBot] Bot Command 'rcbot_voice_cmds 1
' executed
VAC secure mode is activated.
[RCBot] Bot Command 'rcbot_heavyaimoffset 0.1
' executed
[RCBot] Bot Command 'rcbot_move_sentry_time 120
' executed
[RCBot] Bot Command 'rcbot_move_sentry_kpm 1
' executed
[RCBot] Bot Command 'rcbot_move_disp_time 120
' executed
[RCBot] Bot Command 'rcbot_move_disp_healamount 100
' executed
[RCBot] Bot Command 'rcbot_move_tele_time 120
' executed
[RCBot] Bot Command 'rcbot_move_dist 800
' executed
[RCBot] Bot Command 'rcbotd config min_bots 0
' executed
[RCBot] min_bots set to 0
[RCBot] Bot Command 'rcbotd config max_bots 8
' executed
[RCBot] max_bots set to 8
Error, bad server command rcbotd addbot 2
[RCBot] Bot Command 'rcbotd addbot 2' executed
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder


Posted by: n0nnie Nov 23 2014, 03:09 PM

Try dos2unix with the so and sh files, this causes also "no such file..."

Another thing, that is odd:
/home/srcds/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory

why the . before steam?


What Sourcemod and metamodversion you are running?

Posted by: d3m0n Dec 8 2014, 07:43 AM

QUOTE(n0nnie @ Nov 23 2014, 10:09 PM) *

Try dos2unix with the so and sh files, this causes also "no such file..."

Another thing, that is odd:
/home/srcds/.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory

why the . before steam?
What Sourcemod and metamodversion you are running?


Not sure what you mean with the dos2unix? so and sh files are linux files already? The 'no such file' comes from failing to create files. Which kind of looks like that's how it should work. I am not sure how the windows version handles it. The steamclient.so was apparently not a big deal, I had to copy/paste a irrelevant file to the folder it was pointing to. Nothing to do with RCBot2.

As for sm/mm, whatever the latest shot was from when I posted. I am using the latest files from the sourceforge - http://sourceforge.net/projects/rcbot2/files/rcbot2/RCBot2%200.94/

I am confused to as why your names would change but not mine. Like I said I can see the botnames plugin changing them but RCBot seems to do it AFTER the botnames is executed. Which, I think, the plugin might need a longer timer until it executes the name changes. Console paste here: http://pastebin.com/pGkzGX5m

Here's a screenshot of it happening

IPB Image

Posted by: n0nnie Dec 11 2014, 03:03 PM

QUOTE(d3m0n @ Dec 8 2014, 08:43 AM) *

Not sure what you mean with the dos2unix? so and sh files are linux files already? The 'no such file' comes from failing to create files. Which kind of looks like that's how it should work. I am not sure how the windows version handles it. The steamclient.so was apparently not a big deal, I had to copy/paste a irrelevant file to the folder it was pointing to. Nothing to do with RCBot2.

As for sm/mm, whatever the latest shot was from when I posted. I am using the latest files from the sourceforge - http://sourceforge.net/projects/rcbot2/files/rcbot2/RCBot2%200.94/

I am confused to as why your names would change but not mine. Like I said I can see the botnames plugin changing them but RCBot seems to do it AFTER the botnames is executed. Which, I think, the plugin might need a longer timer until it executes the name changes. Console paste here: http://pastebin.com/pGkzGX5m

Here's a screenshot of it happening

IPB Image



dos2unix is neat little tool to convert files from windows to unix format. It is very handy if something is uploaded from a windowspc to a linuxserver. This belongs to my "Try this first before posting"-list ^^

sudo apt-get install dos2unix to install and then dos2unix *.* in the folder of your gameserver. For instance I did this with the waypointfiles and the profilefiles and some errors where gone. It didnt fix the not reading of the profiles but some errors in console disappeared after that.

Note: You have to do it with files! I have no clue what dos2unix does with folders ^^

Posted by: Cheeseh Dec 14 2014, 01:49 AM

QUOTE(n0nnie @ Dec 11 2014, 04:03 PM) *

dos2unix is neat little tool to convert files from windows to unix format. It is very handy if something is uploaded from a windowspc to a linuxserver. This belongs to my "Try this first before posting"-list ^^

sudo apt-get install dos2unix to install and then dos2unix *.* in the folder of your gameserver. For instance I did this with the waypointfiles and the profilefiles and some errors where gone. It didnt fix the not reading of the profiles but some errors in console disappeared after that.

Note: You have to do it with files! I have no clue what dos2unix does with folders ^^


Hey guys when I get the chance I'll try to debug this on Linux, unfortunately I don't have much time these days with work and the baby etc sad.gif

Posted by: d3m0n Dec 15 2014, 02:43 AM

QUOTE(Cheeseh @ Dec 14 2014, 08:49 AM) *

Hey guys when I get the chance I'll try to debug this on Linux, unfortunately I don't have much time these days with work and the baby etc sad.gif


That would be amazing Cheeseh! It seems like pretty minor stuff. From what I can tell it's just the profiles not being read.

Posted by: n0nnie Dec 15 2014, 06:22 AM

QUOTE(Cheeseh @ Dec 14 2014, 02:49 AM) *

Hey guys when I get the chance I'll try to debug this on Linux, unfortunately I don't have much time these days with work and the baby etc sad.gif



I think this might help:

CODE
[RCBOT] Found interface "ServerGameClients" IServerGameClients gameclients, ver = 004
[RCBot] Reading bot profile "//rcbot2/profiles/1.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/2.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/3.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/4.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/5.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/6.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/7.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/8.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/9.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/10.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/11.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/12.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/13.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/14.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/15.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/16.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/17.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/18.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/19.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/20.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/21.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/22.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/23.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/24.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/25.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/26.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/27.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/28.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/29.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/30.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/31.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/32.ini"
[RCBot] file not found/opening error '//rcbot2/profiles/33.ini' mode r
[RCBot] Trying to create folder '/' failed
[RCBot] Trying to create folder '//' failed
[RCBot] Trying to create folder '//rcbot2/' failed
[RCBot] Trying to create folder '//rcbot2/profiles/' failed
[RCBot] failed to make folders for //rcbot2/profiles/33.ini
[RCBot] Bot profile "//rcbot2/profiles/33.ini" not found


The //rcbot2 seems to be wrong? Shouldnt it be something lile ./rcbot2 instead?

Posted by: Cheeseh Dec 15 2014, 09:38 AM

QUOTE(n0nnie @ Dec 15 2014, 07:22 AM) *

I think this might help:

CODE
[RCBOT] Found interface "ServerGameClients" IServerGameClients gameclients, ver = 004
[RCBot] Reading bot profile "//rcbot2/profiles/1.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/2.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/3.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/4.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/5.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/6.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/7.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/8.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/9.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/10.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/11.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/12.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/13.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/14.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/15.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/16.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/17.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/18.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/19.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/20.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/21.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/22.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/23.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/24.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/25.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/26.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/27.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/28.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/29.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/30.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/31.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/32.ini"
[RCBot] file not found/opening error '//rcbot2/profiles/33.ini' mode r
[RCBot] Trying to create folder '/' failed
[RCBot] Trying to create folder '//' failed
[RCBot] Trying to create folder '//rcbot2/' failed
[RCBot] Trying to create folder '//rcbot2/profiles/' failed
[RCBot] failed to make folders for //rcbot2/profiles/33.ini
[RCBot] Bot profile "//rcbot2/profiles/33.ini" not found


The //rcbot2 seems to be wrong? Shouldnt it be something lile ./rcbot2 instead?


it's probably part of the problem. I'll check the code that does that first

Posted by: d3m0n Dec 15 2014, 10:44 AM

QUOTE(n0nnie @ Dec 15 2014, 01:22 PM) *

I think this might help:

CODE
[RCBOT] Found interface "ServerGameClients" IServerGameClients gameclients, ver = 004
[RCBot] Reading bot profile "//rcbot2/profiles/1.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/2.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/3.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/4.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/5.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/6.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/7.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/8.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/9.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/10.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/11.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/12.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/13.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/14.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/15.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/16.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/17.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/18.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/19.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/20.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/21.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/22.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/23.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/24.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/25.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/26.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/27.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/28.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/29.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/30.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/31.ini"
[RCBot] Reading bot profile "//rcbot2/profiles/32.ini"
[RCBot] file not found/opening error '//rcbot2/profiles/33.ini' mode r
[RCBot] Trying to create folder '/' failed
[RCBot] Trying to create folder '//' failed
[RCBot] Trying to create folder '//rcbot2/' failed
[RCBot] Trying to create folder '//rcbot2/profiles/' failed
[RCBot] failed to make folders for //rcbot2/profiles/33.ini
[RCBot] Bot profile "//rcbot2/profiles/33.ini" not found


The //rcbot2 seems to be wrong? Shouldnt it be something lile ./rcbot2 instead?


Mine has the absolute path so that can't be it:

CODE
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/4.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/5.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/6.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/7.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/8.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/9.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/10.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/11.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/12.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/13.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/14.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/15.ini"
[RCBot] Reading bot profile "/home/srcds/rcbot2/profiles/16.ini"

Posted by: d3m0n Mar 9 2015, 12:30 PM

Any updates on this at all? Still would love to run RCBot2 over DOD Bots atm.

Posted by: Nightc0re Jul 20 2015, 07:04 PM

QUOTE(d3m0n @ Mar 9 2015, 02:30 PM) *

Any updates on this at all? Still would love to run RCBot2 over DOD Bots atm.

You can test http://rcbot.bots-united.com/forums/index.php?showtopic=1967.