Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ RCbot2 _ Getting Rcbot2 to work with Black Mesa?

Posted by: ssteven Aug 27 2018, 12:03 PM

Hello,

I've recently compiled Botrix for BMS using alliedmodders sdk. It works fine but the bots themselves are very dumb and the waypointing system is atrocious.

I'm going to try and compile rcbot for bms using the same method. Is there anything I need to change code-wise or the same trick should also work? I have metamod and sourcemod installed.

Cheers.

Posted by: ssteven Aug 27 2018, 01:53 PM

I've taken a quick look, why are there 2 projects?

I couldn't get the HPB_Bot2 to compile as it complains about the actual code (around 170 errors).
After a bit of tinkering I've compiled HPB_Bot2 in Meta folder and I get RCBot2MetaDebug.dll. This doesn't sound right. Shouldn't it called something like rcbot2_meta.dll?

Quickly tried it out in BMS, doesn't even recognize it.

steamapps\common\Black Mesa\bms\addons\rcbot2\bin\RCBot2MetaDebug.dll

IPB Image

Just checked out rcbot2.vdf, it targets Rcbot2Meta so I changed it to Rcbot2MetaDebug. Game instantly crashes on load screen. Using this as source: https://github.com/APGRoboCop/rcbot2/

Posted by: RoboCop Aug 27 2018, 05:21 PM

I admire your ambition and hope for testing RCBot2 for Black Mesa DM. Besides I was wondering on allowing support for that GameMod. But you will need to have the weapon entities along with their fire rate, delay as well for other things for bots to understand as they don't know human language except in C/C++. Besides you don't want bots to use Bazookas in close ranges as well not knowing how to toggle laser to steer the rocket, do ya?

This maybe not to hard as we could extract some HL2DM weapon data as they have some similarities.

Posted by: ssteven Aug 27 2018, 05:34 PM

QUOTE(RoboCop @ Aug 27 2018, 06:21 PM) *

I admire your ambition and hope for testing RCBot2 for Black Mesa DM. Besides I was wondering on allowing support for that GameMod. But you will need to have the weapon entities along with their fire rate, delay as well for other things for bots to understand as they don't know human language except in C/C++. Besides you don't want bots to use Bazookas in close ranges as well not knowing how to toggle laser to steer the rocket, do ya?

This maybe not to hard as we could extract some HL2DM weapon data as they have some similarities.


That's not a huge deal as most of the weapon entities are almost 1:1 from HL2DM. I just can't get it to work on BM engine at all, game instantly crashes when I load the dll through the vdf.

Posted by: RoboCop Aug 27 2018, 07:12 PM

Did you get the crash dumps or any developer/debug logs for us to have a look at?

Posted by: ssteven Aug 27 2018, 11:30 PM

Where could I find them?

Posted by: Cheeseh Aug 28 2018, 07:54 AM

QUOTE(ssteven @ Aug 28 2018, 12:30 AM) *

Where could I find them?


If you've managed to compile with VS 2013 you should be able to attach hl.exe to its debugger and it should break when it crashes.

Furthermore, did you copy the hl2dm settings in the bot_mods.ini (rcbot2 /config) and make a black mesa one? you'd need to change the source steam folder and game directory in the bot_mods.ini

Posted by: ssteven Aug 28 2018, 10:07 PM

Hmm. This is what I have in my bot_mods.ini

mod = BMS
steamdir = Black Mesa
gamedir = bms
bot = HL2DM
weaponlist = HL2DM

my bms install is at steamapps\common\Black Mesa\bms

The game still crashes instantly, I don't even get to the main menu. I compiled using VS2015. Will try the debugger next if I get it to attach...

Got it. I don't know much about C++ debugging, but here's what I got when it crashes:

IPB Image

Posted by: ssteven Aug 28 2018, 10:26 PM

Hmm, I suppose it complains about the .vdf?

IPB Image

I dunno if this is any help to you guys.
IPB Image

Posted by: Cheeseh Aug 29 2018, 08:48 AM

QUOTE

I compiled using VS2015. Will try the debugger next if I get it to attach...


Are you compiling with VS2013 tools? As far as I know the HL2 engine is not compatible with VS2015+ compile tools.

looks like maybe it can't fine the files, don't know why it would be crashing though (apart from the VS tools thing)... did you check where exactly it is looking for the files by putting a watch on the variables?

Posted by: RoboCop Aug 29 2018, 05:10 PM

Did you check the weapons.ini file? You would need to add the weapon entities and classify those Black Mesa Weapons as a specific weaponlist or something. But I'm not so certain...

Posted by: ssteven Sep 1 2018, 03:09 PM

QUOTE(Cheeseh @ Aug 29 2018, 09:48 AM) *

Are you compiling with VS2013 tools? As far as I know the HL2 engine is not compatible with VS2015+ compile tools.

looks like maybe it can't fine the files, don't know why it would be crashing though (apart from the VS tools thing)... did you check where exactly it is looking for the files by putting a watch on the variables?


No as far as I know it's vanilla VS2015 setup. The only thing I did change in the project is use alliedmodders sdk libraries in project settings.

I changed to use the libs from the Rcbot2 source and it's still crashing instantly.

I'm not good when it comes to debugging C++ but if I double click on this first call in the stack I get this:

IPB Image

This doesn't look right to me? Where is it taking this from? I don't even have this folder.

Posted by: Emotional Sep 5 2018, 11:21 AM

Wow, wow!
Nice work. I hope you will succeed smile.gif