![]() |
Re: Let the revolution begin!!!
ok how the hell do I debug with .Net and HL2 ?? :( sorry Im a bit mad at it... (most of the time it crashes and I have to close CS:S cause it blocks the MSVC window when it wants to break.. so its stops debugging..)
Also it doesnt debug the source, only the dissasembly which is a bit crap since I cant read that damn stuff |
Re: Let the revolution begin!!!
I have notes in the ReadMe.txt file that explains how to set up .NET 2003 for debugging the plugin.
Does that not work for you? botman |
Re: Let the revolution begin!!!
Yeah I did that but there are problems such as not copying the DLL file to the bin folder, even though it says "1 file(s) copied" I don't see it in the counter-strike source/bin folder.
I'll read over it all again ( I tried doing it myself without reading too much)... this is gonna be my new years, I can tell for sure :p oh it seems the default dir was c:\program files\valve\steam\... where mine should just be in c:\program files\steam , trying again |
Re: Let the revolution begin!!!
Keep up the good work botman...you are the best! :)
And keep up the good work all you others bot-coders also! |
Re: Let the revolution begin!!!
stefan, regarding the view angles.
I don't set them in the HPB_bot2 WriteUsercmd() function. You will probably want to change that code. Instead of this... Code:
buf->WriteOneBit( 0 ); // viewangles[0] Code:
EDIT: Doooh!!!! The last one is only 8 bits... The gameclients->ProcessUsercmds() eventually calls CBasePlayer :: PlayerRunCommand() which does this... Code:
if ( pl.fixangle == FIXANGLE_NONE) EDIT: When I do this, the bot's don't turn their bodies, but the DO move in a different direction each time the YAW changes in the viewangles. Perhaps the bot's model rendering isn't being handled properly somewhere (your client doesn't know which way they are really facing), so you see them as facing one direction, but they are really facing a completely different direction (Half-Life1 bots had this problem initially too). It should be easy to tell which way they are facing by setting the pitch to zero and have them shoot their weapons every second or so and see which way the bullets go! botman |
Re: Let the revolution begin!!!
thx botman. I do wonder how you figure this stuff out, as it seems most of the time i am looking into the wrong direction :)
Will try that soon! , edit: found somewhere in baseplayer_shared.cpp (dunno if it could be of any help) Code:
//----------------------------------------------------------------------------- |
Re: Let the revolution begin!!!
I'm wondering how to get Vector.Length() to work without getting _pfSqrt external errors (?)
|
Re: Let the revolution begin!!!
looks like you can have different coordinate systems and the matrix multiplications are used to transform one into another. if there is the need for info about transformations one could write another wiki article once we know what this is exactly about ...
no idea about that sqrt stuff ... the parameter of sqrt is always >=0 so I dunno where the problem can be ... no hl2 vector class here at the moment :) |
Re: Let the revolution begin!!!
got it working... well partially ;)
http://forums.bots-united.com/showth...1474#post31474 |
Re: Let the revolution begin!!!
Can someone post a compiled dll of this?
Whenever I try to load the one I compiled I get the very descriptive "could not load plugin" error message which makes it hard to track it down. |
All times are GMT +2. The time now is 17:05. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.