.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > RealBot > The RealBot 'Source'
The RealBot 'Source' Discuss things about the source code. You can here point out bugs, share ideas and code. Assign to become an 'official team member' and so on!

Reply
 
Thread Tools
RealBot and MS Visual Studio.NET
Old
  (#1)
m.wohlers
Guest
 
Status:
Posts: n/a
Default RealBot and MS Visual Studio.NET - 19-06-2004

Hello!

I've recently tried to compile the RealBot sources with Microsoft Visual C++ .NET and everything worked fine - the realbot_mm.dll is created.

But - when I start Counterstrike 1.6 via STEAM, Metamod says "BADF LOAD" when I use "meta list" and the bot is not started.

Any clues what could be wrong?

Thanks in advance...
--
Michael Wohlers (http://www.michaelwohlers.de)
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#2)
MusicMan
Member
 
Status: Offline
Posts: 236
Join Date: Feb 2004
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

did you make sure that the path in your plugins.ini is 100% correct?
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

You need to create the .def file. You can borrow one from the HPB-bot source code.
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#4)
m.wohlers
Guest
 
Status:
Posts: n/a
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

I have just replaced realbot_mm.dll from the WIP #10 made by Stefan with the new compiled one from me...

Quote:
Originally Posted by Whistler
You need to create the .def file. You can borrow one from the HPB-bot source code.
What .def file do you mean?

Thanks...
--
Michael Wohlers (http://www.michaelwohlers.de)
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#5)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

do you use metamod 1.17.1?

a badf error means either that the plugin is not valid (its not a dll file) or its not existing. Try to verify this plz


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#6)
dstruct2k
 
dstruct2k's Avatar
 
Status: Offline
Posts: 225
Join Date: Feb 2004
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

....or a badf error could mean you compiled it for metamod 1.17.... Plugins aren't cross-compatible, as far as my experience goes.
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#7)
m.wohlers
Guest
 
Status:
Posts: n/a
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

Hello Stefan!

Quote:
Originally Posted by stefanhendriks
do you use metamod 1.17.1?

a badf error means either that the plugin is not valid (its not a dll file) or its not existing. Try to verify this plz
I am using Metamod 1.17.1, yes. But, indeed, the hint from Whistler was the right one. I created a file named "realbot_plugin.def" with the following content:

Code:
 LIBRARY realbot_mm
 EXPORTS
 	GiveFnptrsToDll			@1
 SECTIONS
 	.data READ WRITE
And - voilą - it worked!

The bot runs now, but very slow and with massive CPU usage. And, furthermore, the bots ain't learning as it seems, because they do not leave their spawned positions and hang around... I could not motivate them to move!

Thanks for your help...
--
Michael Wohlers (http://www.michaelwohlers.de)
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#8)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

I wonder if you ran around the map to create node connections to every spawn point. You do know how the wip version works in that sense ?


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#9)
m.wohlers
Guest
 
Status:
Posts: n/a
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

Hello Stefan!

Quote:
Originally Posted by stefanhendriks
I wonder if you ran around the map to create node connections to every spawn point. You do know how the wip version works in that sense ?
Well, I tried to take the bots "with me" and wandered around the map - but the bots did not follow me at all! The WIP 9 and 10 bots behaved totally different and needed just a bit help in the beginning, then started to wander around.

The heavy CPU usage worries me, too. Does this come from the MSVC++ or from recent changes in the code base!?

Best regards...
  
Reply With Quote
Re: RealBot and MS Visual Studio.NET
Old
  (#10)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: RealBot and MS Visual Studio.NET - 19-06-2004

I will rebuild my entire dll and then add bots on a map that has no nodes. Then i will simply walk around (bots shooting off)...

what kind of computer do you have in CPU terms? I have a P4 2.5 Ghz


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com