.:: 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: How to do correct movement
Old
  (#21)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: How to do correct movement - 09-01-2005

that are primarily compile errors, no linking errors


  
Reply With Quote
Re: How to do correct movement
Old
  (#22)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: How to do correct movement - 09-01-2005

There is a visual C++ .NET workspace, I guess you're still using VC 6 ?

edit: yeah I think there is just something missing to compile it properly.
  
Reply With Quote
Re: How to do correct movement
Old
  (#23)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: How to do correct movement - 09-01-2005

Yeah I just got a message from my brother having the same problem, so I'm starting from a blank SDK just incase I cahnged something in the main files. Hopefully I'll have a working solution shortly.
  
Reply With Quote
Re: How to do correct movement
Old
  (#24)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: How to do correct movement - 09-01-2005

doh, something so annoying is solved by something so easy;
just add
GAME_DLL
to your preprocessor defines, and (fingers crossed) it should be problem sorted.
Attached Files
File Type: zip SCBot.zip (15.1 KB, 628 views)

Last edited by SteveC; 09-01-2005 at 16:09..
  
Reply With Quote
Re: How to do correct movement
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: How to do correct movement - 09-01-2005

that wasnt the reason I guess ... still lots of errors


  
Reply With Quote
Re: How to do correct movement
Old
  (#26)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: How to do correct movement - 09-01-2005

It works for your SCBot source, but not with my bot, I get even more errors than I used to. (1761 errors to be exact!) (also seems a bit of a hack since it isn't the game dll we're building)

Last edited by Cheeseh; 09-01-2005 at 16:26..
  
Reply With Quote
Re: How to do correct movement
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: How to do correct movement - 09-01-2005

that last zip file steve uploaded doesnt even work here ...


  
Reply With Quote
Re: How to do correct movement
Old
  (#28)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: How to do correct movement - 09-01-2005

It does work for me o_O . Just this second I just created a new Source SDK (under the name test2) and extracted the above file /|\ into the utils/SCbot dir and it compiled first time.
You will probably need to do a re-build though.
The problem was in the file public/networkvar.h, on line 421 they have a preprocessor if statement which only creates the CNetworkHandleBase class if you have defined CLIENT_DLL or GAME_DLL. I didn't define either (i had modified the file in earlier attempts) but defining GAME_DLL works perfectly.
  
Reply With Quote
Re: How to do correct movement
Old
  (#29)
SteveC
Member
 
Status: Offline
Posts: 37
Join Date: Jan 2005
Location: UK
Default Re: How to do correct movement - 09-01-2005

Quote:
Originally Posted by Cheeseh
It works for your SCBot source, but not with my bot, I get even more errors than I used to. (1761 errors to be exact!) (also seems a bit of a hack since it isn't the game dll we're building)
Yeah if you define GAME_DLL (or CLIENT_DLL) and include some other files then you can cause major problems. I don't think you need much more than cbase.h normally (apart from the interface headers).

And the only reason it's a 'hack' is because valve forces us to define one to get the Networkvar.h to compile properly. The first time I had commented the #if statement on line 421 of Networkvar.h, so I didn't need to define either DLL type.
I can see your point though that I'm missleading the engine a little tiny bit.

Last edited by SteveC; 09-01-2005 at 16:34..
  
Reply With Quote
Re: How to do correct movement
Old
  (#30)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: How to do correct movement - 09-01-2005

works now, reisnatlleds the sdk again ... dunno what was the reason


  
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