.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2 SDK (http://forums.bots-united.com/forumdisplay.php?f=62)
-   -   How to do correct movement (http://forums.bots-united.com/showthread.php?t=3369)

@$3.1415rin 09-01-2005 14:07

Re: How to do correct movement
 
that are primarily compile errors, no linking errors

Cheeseh 09-01-2005 14:17

Re: How to do correct movement
 
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.

SteveC 09-01-2005 14:18

Re: How to do correct movement
 
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.

SteveC 09-01-2005 15:05

Re: How to do correct movement
 
1 Attachment(s)
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.

@$3.1415rin 09-01-2005 15:15

Re: How to do correct movement
 
that wasnt the reason I guess ... still lots of errors

Cheeseh 09-01-2005 15:18

Re: How to do correct movement
 
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)

@$3.1415rin 09-01-2005 15:23

Re: How to do correct movement
 
that last zip file steve uploaded doesnt even work here ...

SteveC 09-01-2005 15:24

Re: How to do correct movement
 
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.

SteveC 09-01-2005 15:30

Re: How to do correct movement
 
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.

@$3.1415rin 09-01-2005 15:37

Re: How to do correct movement
 
works now, reisnatlleds the sdk again ... dunno what was the reason


All times are GMT +2. The time now is 02:34.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.