.:: 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 ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Desperate Help !!! :))
Old
  (#1)
He@dShot
Member
 
He@dShot's Avatar
 
Status: Offline
Posts: 40
Join Date: Mar 2008
Location: Romania, Craiova
Cool Desperate Help !!! :)) - 26-05-2008

My bots don't receive any net messages except ScreenFade...I did everything correctly...I even set the "_vgui_menus" 0...Can anyone show me some examples on how to implement correctly MessageBegin function ????
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#2)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Desperate Help !!! :)) - 26-05-2008

http://filebase.bots-united.com/inde...on=file&id=380

Look into dll.cpp, engine.cpp, bot_client.cpp.
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#3)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Desperate Help !!! :)) - 26-05-2008

There is bot examples for CS from where you can see how they are getting the messages. If you still can't do it show us how actually you are hooking the functions and parsing the messages.
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#4)
He@dShot
Member
 
He@dShot's Avatar
 
Status: Offline
Posts: 40
Join Date: Mar 2008
Location: Romania, Craiova
Default Re: Desperate Help !!! :)) - 27-05-2008

Here's my project Storm...take a look at it if you may...and pls don't laugh at it.. There is only 1 cpp file...it includes all that I implemented so far...
Attached Files
File Type: zip CounterBot_mm.zip (73.1 KB, 400 views)
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#5)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Desperate Help !!! :)) - 27-05-2008

Oh, putting everything in one is really bad idea.

This night my time (GMT+2) I will have some free time and I will play with your code to find the problem, deal ?

Last edited by The Storm; 27-05-2008 at 15:40..
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#6)
He@dShot
Member
 
He@dShot's Avatar
 
Status: Offline
Posts: 40
Join Date: Mar 2008
Location: Romania, Craiova
Default Re: Desperate Help !!! :)) - 27-05-2008

Of course...and pls if you can and won't fall asleep... pls comment it k ???
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#7)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Desperate Help !!! :)) - 27-05-2008

Ok, the problem is that you are not calling RunPlayerMove() each frame in StartFrame() function (that you haven't hooked) for each bot. Because I see that the "ShowMenu" is called for me but not for the bot the problem can be only that.
As soon as the bot is putted in to the server with ClientPutInServer() you must begin to call the RunPlayerMove() function.
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#8)
He@dShot
Member
 
He@dShot's Avatar
 
Status: Offline
Posts: 40
Join Date: Mar 2008
Location: Romania, Craiova
Default Re: Desperate Help !!! :)) - 27-05-2008

Please, fell free to modify it as you will...add your name to the project...I won't have time right now to thinker it...I have exams coming up in my art class and I have to draw,draw,draw...! HLSDK is such a headaque


The noblest pleasure is the joy of understanding...Leonardo da Vinci

Last edited by He@dShot; 27-05-2008 at 16:38.. Reason: forgot something
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#9)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: Desperate Help !!! :)) - 27-05-2008

From that I saw you have been using metamod 1.17 headers, the current metamod is 1.19 and dunno what version of the SDK, probably the original from the installer witch is out of date. I putted in to the archive the latest HLSDK and Metamod headers and I modified your project file to work with them, I modified some parts of the source and I putted comments, just look for "The Storm" without the quotes, your RunPlayerMove() function is not calling because the check in StartFrame() that loops around all bots fails, you must see whats wrong there, I can't easy go up with so messy code. :}
Find the structure with the engine function tables like the DLL_FUNCTIONS structure and put there your hook functions that you want to call because now the MessageBegin() will not be called because I deleted this lines so you to be able to fix it up. So After all the main problem is that the loop in StartFrame() that search for bots and call RunPlayerMove() for them is failing.

I recommend downloading Metamod from http://metamod-p.sf.net/ and to create new project with the "stub" plugin example and make it clean this time.
Attached Files
File Type: zip CounterBot_mm_modded.zip (256.8 KB, 429 views)
  
Reply With Quote
Re: Desperate Help !!! :))
Old
  (#10)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Desperate Help !!! :)) - 28-05-2008

I don't think it's necessary to use the latest Metamod/HLSDK headers as they are backward compatiable.

Using the latest headers will only do 2 things: 1) give you access to the latest HLSDK functions (which are mostly unnecessary for bots) and 2) make the plugin incompatiable with older versions of Metamod.
  
Reply With Quote
Reply


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

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 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com