.:: 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 > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
Re: Lets get this stuff rolling!
Old
  (#21)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Lets get this stuff rolling! - 15-12-2004

very nice botman! It looks like we're having some progress. I have some spare time now so i will dig into this right now.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#22)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Lets get this stuff rolling! - 15-12-2004

Ok, i have changed the wiki page, and added a bot specific page to it. I also have put in 'how to load interfaces'. I also succeeded loading them, thx to botman's code and searching for the right headers and declarations. I am trying to access data now, but i stumble into some problems here (You can read it at the wiki, at the bottom). It would be nice if someone else also edits the wiki when there is more information...


http://wiki.bots-united.com/index.php/Bot%20Specific


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#23)
Jerry
Member
 
Jerry's Avatar
 
Status: Offline
Posts: 10
Join Date: Dec 2004
Location: Woerden, The Netherlands
Default Re: Lets get this stuff rolling! - 15-12-2004

Check out:
Gameinterface.* (h & cpp)

Code:
  // Normally, when the engine calls ClientPutInServer, it calls a global function in the game DLL
  // by the same name. Use this to override the function that it calls. This is used for bots.
  typedef CBasePlayer* (*ClientPutInServerOverrideFn)( edict_t *pEdict, const char *playername );
This is looking good. But I can't implement the IServerGameClients interface. I get a lot of errors.

Edit: I got the interface implemented. Now to see how I can use it .


Imagination is more important than knowledge. Knowledge is limited - Albert Einstein

Last edited by Jerry; 15-12-2004 at 13:41..
  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#24)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Lets get this stuff rolling! - 15-12-2004

hmm, you got it compiling WITH that CBasePlayer? Because thats what kind of trouble i have...


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#25)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Lets get this stuff rolling! - 15-12-2004

nice, looks like my idea was on the right track ...

@Jerry : because of that function I was trying to get there, also pointed that out in my post

but first theoretical physics :/ then a weekend of HL2 SDK stuff


  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#26)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Lets get this stuff rolling! - 15-12-2004

Well we (jerry and i) are talking on msn and try to get this stuff working. We finally can compile igamemovement.h fine and such.

But the problem is, we need something to get to CBasePlayer. So we thought of util_shared, but thats client sided only (UTIL_bla).

I thought, the entity list should be loaded, biut this interface (client side only i think) does not load. THere HAS to be a way to get info on the entities list... not just sure how to get there.

When that works, we should be able to create our own CBasePlayer * returning function. Unless its hidden somewhere else.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#27)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Lets get this stuff rolling! - 15-12-2004

already tried to copy the CBasePlayer.h stuff from the sdk and include it ? since we have a pointer to CBasePlayer ( right ), the class def should be the problem, the entity list not ( yet ).


  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#28)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Lets get this stuff rolling! - 15-12-2004

Everything you include that is not in game_shared gives a heap of compile errors. Everything within game_shared is solvable, well, most of it

gonna try, but i can't make promises.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#29)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Lets get this stuff rolling! - 15-12-2004

well, then baseplayer_shared.h looks promising ... ok, I really gotta do university stuff first, i'm gonna join your work at the weekend


well, sry for deleting, but this post was just shit. including baseplayer_shared.h even with more std include paths doesnt work, produces only thousands of errors whose reason I cannot find out even using browse files from the SDK itself.



Last edited by @$3.1415rin; 15-12-2004 at 17:05..
  
Reply With Quote
Re: Lets get this stuff rolling!
Old
  (#30)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Lets get this stuff rolling! - 15-12-2004

hehe, nice , deleted post

there is no cBasePlayer.h file or something, the other header files i found link to player.h, so its quite tough for a server_plugin to work.

Darn it Asp, get msn quick!


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