.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   RACC (http://forums.bots-united.com/forumdisplay.php?f=11)
-   -   Bug in RACC Template 2 (http://forums.bots-united.com/showthread.php?t=2572)

koraX 30-08-2004 22:43

Bug in RACC Template 2
 
first look here

Defined in dlls\h_export.cpp :
Code:

int DLLEXPORT Server_GetBlendingInterface
(int version, struct sv_blending_interface_s **ppinterface, struct engine_studio_api_s *pstudio,
float (*rotationmatrix)[3][4], float (*bonetransform)[MAXSTUDIOBONES][3][4])
{
  // this function synchronizes the studio model animation blending interface (i.e, what parts
  // of the body move, which bones, which hitboxes and how) between the server and the game DLL.
  // some MODs can be using a different hitbox scheme than the standard one.
  static SERVER_GETBLENDINGINTERFACE other_Server_GetBlendingInterface = NULL;
  static bool missing = FALSE;
  // if the blending interface has been formerly reported as missing, give up
  if (missing)
      return (FALSE);
  // do we NOT know if the blending interface is provided ? if so, look for its address
  if (other_Server_GetBlendingInterface == NULL)
      other_Server_GetBlendingInterface = (SERVER_GETBLENDINGINTERFACE) GetProcAddress (h_Library, "Server_GetBlendingInterface");
  // have we NOT found it ?
  if (!other_Server_GetBlendingInterface) {
      missing = TRUE; // then mark it as missing, no use to look for it again in the future
      return (FALSE); // and give up
  }
  // else call the function that provides the blending interface on request
  return ((other_Server_GetBlendingInterface) (version, ppinterface, pstudio, rotationmatrix, bonetransform));
}

***ERROR*** : This function is not exported under MSVC. DLLEXPORT macro is wrong and there is no declarator telling that this function should be exported. If this function will be exported by some miracle or .def file, it will crash whole Half-life for sure, because of wrong __stdcall calling convention. Calling convention for this function is __cdecl, which is default



.

Pierre-Marie Baty 30-08-2004 23:46

Re: Bug in RACC Template 2
 
Yep, this is one of the various bugs that were in the template 2. Hopefully the template 3 will come soon now. It has been ported to metamod hence this bug has disappeared in the process :)

MarD 31-08-2004 19:21

Re: Bug in RACC Template 2
 
Heyyo,

Is template #3 your current work, or just a small update of template #2 to entertain us while we await your next big release? ;)

Pierre-Marie Baty 01-09-2004 01:30

Re: Bug in RACC Template 2
 
Heyyo,

option #1 :D

To explain better I'll say that this template will feature bots that work, realize the team's objectives and all, but don't shoot at enemies. Still no combat code. It took much time to get to this little result because I wrote the code in such a way that it is now very portable among different game engines. My idea is also to propose this concept as a candidate for a portable slab for the United Bot. I'll have no trouble at all, I suppose, to have it to work in HLČ.

MarD 01-09-2004 18:47

Re: Bug in RACC Template 2
 
Heyyo,

cool! I'll give it a go anywho, n' try meanmod, or your ol' botaim plugins to see if that might make em' shoot... if not? *sighs* I guess I'll have to do all the killing... lmao. :P

[EDIT]
Hmm, I just realized it's a template... oh well, I'll try compiling it myself... lol, hopefully I can at least do that. I'm trying to learn a little C++ myself... It's a lot harder than pearl programming language to learn, that's for sure. ;)

Pierre-Marie Baty 02-09-2004 02:48

Re: Bug in RACC Template 2
 
...won't make them shoot :) At all :)

No combat code ! They'll just gaze at you in despair and incomprehension while you'll be slaughtering them :)

MarD 03-09-2004 19:10

Re: Bug in RACC Template 2
 
Heyyo,

LMAO! I think I'll find a way to live with that. Or, if I somehow fluke out, I could try to implement the aiming code of template #2, or someother one... I'm probably thinking beyond my abilities right now.... cause I tried to compile the HPBbot complete source with metamod n' the HL SDK v2.3 rar file that you have in the filebase, n' it keeps saying that it can't find the necessary files.... the ones I loaded into the project. lol... I'm trying to use DEV C++, cause it's free, and I'm broke. :P

If I can't figure this out, is there any chance you can have a pre-compiled .dll file like the complete HPBbot editing rar?

[EDIT]
OOH! just thought of a good question! what program are you using to compile the dlls? and is it free? :)

Pierre-Marie Baty 07-09-2004 22:53

Re: Bug in RACC Template 2
 
well, it's Microsoft Visual C++... and unfortunately it's not :(

what is Dev C++ ? Which compiler is that ? Borland ?
I don't know the real names, only the brand names

MarD 08-09-2004 19:58

Re: Bug in RACC Template 2
 
Heyyo,

It's by bloodshed, check it out: http://www.bloodshed.net/devcpp.html

It seems good, but I can't compile it yet... I have yet to figure out how it works... I better start RTFM I guess. :P

Whistler 09-09-2004 14:51

Re: Bug in RACC Template 2
 
the GCC version included with Dev-C++ seems to have problem with compiling bot code.
update to GCC 3.2.3 (Note it's 3.2.3, not newer version of GCC/MingW !) first before using Dev-C++


All times are GMT +2. The time now is 12:09.

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