.:: 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 ::. > Cyborg Factory > POD-Bot mm > Releases, Installers, Docs & Coding
Releases, Installers, Docs & Coding Where the official development happens

Closed Thread
 
Thread Tools
Re: POD-bot back into shape.
Old
  (#301)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: POD-bot back into shape. - 01-04-2004

time to test my C++ debugging skills
[edit]
it might be because he removed that flag to fix the glass problem...
because when i join a map that I don't have waypoints for the map is brighter.. but when i join a map with waypoints and add bots the map looks darker..
[/edit]
[edit2]
i noticed that
Code:
/*   for (i = gpGlobals->maxClients + 1; i < gpGlobals->maxEntities; i++)
   {
      pent = INDEXENT (i);

      if (!FNullEnt (pent)
          && (strcmp (STRING (pent->v.classname), "func_wall") == 0)
          && (pent->v.rendermode == kRenderTransTexture))
         pent->v.flags &= ~FL_WORLDBRUSH;
   }*/
was commented out.. wasn't this the glass fix?
[/edit2]
[edit3]
i don't get it.. i used to be able to compile.. but now it says i'm missing files that metamod requires like pthread.h, unistd.h, and dlfcn.h...
[/edit3]
[edit4]
uncommented it and it did nothing :o
i know absolutely nothing
[/edit4]
[edit5]
this is probably one of the reasons to have a cvs repository...
then we could look at what got changed and see if theres a screw up somewhere..
[/edit5]

Last edited by sPlOrYgOn; 01-04-2004 at 06:53..
  
Re: POD-bot back into shape.
Old
  (#302)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: POD-bot back into shape. - 01-04-2004

It looks like I've done something wrong again !

Don't go to bed just yet, there might be a little fix in 1/2 an hour or so.....



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Re: POD-bot back into shape.
Old
  (#303)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: POD-bot back into shape. - 01-04-2004

don't worry.. its barely 21:00 over here
  
Re: POD-bot back into shape.
Old
  (#304)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: POD-bot back into shape. - 01-04-2004

HERE's the fix fix fix!
Code:
void UTIL_ClampAngle (float *fAngle)
{
   // Whistler, TEST your bugfixes before submitting them!!! :D
   if (*fAngle >= 180)
	  *fAngle -= 360 * ((int) (*fAngle / 360) + 1); // and not 0.5
   if (*fAngle < -180)
	  *fAngle += 360 * ((int) (-*fAngle / 360) + 1); // and not 0.5
   if ((*fAngle >= 180) || (*fAngle < -180))
	  *fAngle = 0; // heck, if we're still above the limit then something's REALLY fuckedup!
}

void UTIL_ClampVector (Vector *vecAngles)
{
   // Whistler, TEST your bugfixes before submitting them!!! :D
   if (vecAngles->x >= 180)
	  vecAngles->x -= 360 * ((int) (vecAngles->x / 360) + 1); // and not 0.5
   if (vecAngles->x < -180)
	  vecAngles->x += 360 * ((int) (-vecAngles->x / 360) + 1); // and not 0.5
   if (vecAngles->y >= 180)
	  vecAngles->y -= 360 * ((int) (vecAngles->y / 360) + 1); // and not 0.5
   if (vecAngles->y < -180)
	  vecAngles->y += 360 * ((int) (-vecAngles->y / 360) + 1); // and not 0.5
   vecAngles->z = 0.0;
   if (vecAngles->x > 89)
	  vecAngles->x = 89;
   else if (vecAngles->x < -89)
	  vecAngles->x = -89;
   if ((vecAngles->x >= 180) || (vecAngles->x < -180))
	  vecAngles->x = 0; // heck, if we're still above the limit then something's REALLY fuckedup!
   if ((vecAngles->y >= 180) || (vecAngles->y < -180))
	  vecAngles->y = 0; // heck, if we're still above the limit then something's REALLY fuckedup!
}
I'm compiling a nunux library and then I'll wrap all this up together in a .zip file.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Re: POD-bot back into shape.
Old
  (#305)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: POD-bot back into shape. - 01-04-2004

You're quick finding this stuff
[edit]
you're right i changed it and it worked
[/edit]

Last edited by sPlOrYgOn; 01-04-2004 at 07:44..
  
Re: POD-bot back into shape.
Old
  (#306)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: POD-bot back into shape. - 01-04-2004

lol, 4 years experience always make a difference

the bot is uploaded
http://racc.bots-united.com/releases/podbot.zip
this one should work as expected...



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Re: POD-bot back into shape.
Old
  (#307)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: POD-bot back into shape. - 01-04-2004

good job
they work!
  
Re: POD-bot back into shape.
Old
  (#308)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Re: POD-bot back into shape. - 01-04-2004

Pm, does this email no longer work for you?
pm@racc-ai.com
I put in a menu SF wanted and tried to send you the modifield files but the email bounced. Send me your latest email please.

I added a new menu for SF to set the autopathMaxDistance.
I add two commands.
wpmenu autopathmaxdistance
wpmenu apmd
They both will bring up the same menu that lets you set the auto path max distance.

You can get the source code changes here:
http://austinbots.com/misc/pod2.6Changes.zip

To make it easy for you to put these changes into your code I commented the changes with:
// ??? ABS
Here are the places that were changed:
----------------------------------------
C:\CS\DEV\BOTS\PM POD2.6\PODBOT\SRC\bot.h(280): // ??? ABS menu to ----------------------------------------
C:\CS\DEV\BOTS\PM POD2.6\PODBOT\SRC\bot_globals.cpp(629): // ??? ABS ----------------------------------------
C:\CS\DEV\BOTS\PM POD2.6\PODBOT\SRC\bot_globals.h(209): // ??? ABS
----------------------------------------
Find '// ??' in 'C:\CS\DEV\BOTS\PM POD2.6\PODBOT\SRC\dll.cpp' :
C:\CS\DEV\BOTS\PM POD2.6\PODBOT\SRC\dll.cpp(994): // ??? ABS
C:\CS\DEV\BOTS\PM POD2.6\PODBOT\SRC\dll.cpp(1066): // ??? ABS comamnd C:\CS\DEV\BOTS\PM POD2.6\PODBOT\SRC\dll.cpp(189: // ??? ABS

Please put these changes in and remove the // ??? ABS comments, thanks!
Also:

Can you include your custom "makeres" build command?
=> 'makeres' is not recognized as an internal or external command,

Another weirdness is I get these message at LINK time.
I have an include path pointing to these and other mm utils I build don't have this problem.
Linking...
Creating library .\Release/podbot_mm.lib and object .\Release/podbot_mm.exp
C:\CS\Dev\SDK\MM\metamod\metamod\osdep.h(103): Could not find the file dlfcn.h.
C:\CS\Dev\SDK\MM\metamod\metamod\osdep.h(172): Could not find the file unistd.h.
C:\CS\Dev\SDK\MM\metamod\metamod\osdep.h(182): Could not find the file unistd.h.
C:\CS\Dev\SDK\MM\metamod\metamod\osdep.h(226): Could not find the file pthread.h.
C:\CS\Dev\SDK\MM\metamod\metamod\osdep.h(103): Could not find the file dlfcn.h.
...
Got any idea why I should get this building pod2.6?
(the path IS fine and works with other mm builds.)
It is WEIRD that it builds fine but gives me these header errors at L-I-N-K time! WEIRD?

Finally.
Please give me a link to the HL SDK you are using, and the metamod SDK you are using, or that I should be using now.

Thanks a lot!

Last edited by Austin; 01-04-2004 at 10:21..
  
Re: POD-bot back into shape.
Old
  (#309)
SoUlFaThEr
Moderator
 
SoUlFaThEr's Avatar
 
Status: Offline
Posts: 860
Join Date: Mar 2004
Default Re: POD-bot back into shape. - 01-04-2004

the crouch waypoint navigation is still...somehow not right yet.

they only crouch-bounce when approaching a crouch waypoint.

here a very quick demo...seeing the waypoints hopefully....
Attached Files
File Type: zip crouchwpts.zip (416.9 KB, 259 views)



Last edited by SoUlFaThEr; 01-04-2004 at 13:17..
  
Re: POD-bot back into shape.
Old
  (#310)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: POD-bot back into shape. - 01-04-2004

hmmm yes... this issue is typical of a flat ground where waypoints have the same height. I've added an offset to handle the case. Tell me if it works better. Thanks for the demo

http://racc.bots-united.com/releases/podbot.zip

@Austin: the email bounced because I simply forgot that my domain expired one week ago! I've just bought a one year extension but it'll take some days before the DNS update. In the meantime my preferred email address is pm@bots-united.com
You should check the thread "CZ released" in the Offtopic forum, memed provides a link to an updated SDK that we use on the Bots United server. Also I didn't get your changes at all !?? Your archive only contains bot.cpp, util.cpp and waypoint.cpp, I see no bot_globals.cpp, bot.h or dll.cpp... ???
Also I get the same warnings too at link time, but it doesn't prevent the DLL to be built. I believe it's a problem in the metamod source code. dlfcn.h, unistd.h and pthread.h are UNIX headers that have no equivalents in Windows. Will Day cares very little about native Windows compilers.

Oh BTW here's my makeres utility (it updates the version info of the DLL automatically and does a lot of other stuff at compile time with the .res files) :
Attached Files
File Type: zip makeres.zip (22.0 KB, 249 views)



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Closed Thread


Currently Active Users Viewing This Thread: 2 (0 members and 2 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