.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Releases, Installers, Docs & Coding (http://forums.bots-united.com/forumdisplay.php?f=48)
-   -   POD-bot back into shape. (http://forums.bots-united.com/showthread.php?t=833)

Cooley 09-03-2004 23:56

Re: POD-bot back into shape.
 
I just got this error with PODbot on a linux server.


hlds_i686: bot.cpp:8084: void BotThink(bot_t *): Assertion `(pEdict->v.v_angle.x > -181.0) && (pEdict->v
.v_angle.x < 181.0) && (pEdict->v.v_angle.y > -181.0) && (pEdict->v.v_angle.y < 181.0) && (pEdict->v.ang
les.x > -181.0) && (pEdict->v.angles.x < 181.0) && (pEdict->v.angles.y > -181.0) && (pEdict->v.angles.y
< 181.0) && (pEdict->v.ideal_yaw > -181.0) && (pEdict->v.ideal_yaw < 181.0) && (pEdict->v.idealpitch > -181.0) && (pEdict->v.idealpitch < 181.0)' failed.


Any idea on a solution to this. Any help would be appreciated and nice work on the new version Pierre-Marie Baty.

Cooley

Pierre-Marie Baty 10-03-2004 11:09

Re: POD-bot back into shape.
 
Dethpod is trying to put together a Linux bot to help debugging the bot. Once this will be done I'll have a quick look and fix all the Linux issues that have been mentioned. I can't devote much time to this bot as I already have mine to grow, hope you understand. :)

Terran 10-03-2004 11:33

Re: POD-bot back into shape.
 
Try YaPB, you can find it in the Off-Topic forum. It's a modified podbot and works very well at my linux server 8)

Pierre-Marie Baty 10-03-2004 11:52

Re: POD-bot back into shape.
 
Actually I redid the ClampAngle() functions in a nicer way
Code:

void UTIL_ClampAngle (float *fAngle)
{
  if (*fAngle >= 180)
          *fAngle -= 360 * ((int) (*fAngle / 360) + 1);
  if (*fAngle < -180)
          *fAngle += 360 * ((int) (-*fAngle / 360) + 1);
}

void UTIL_ClampVector (Vector *vecAngles)
{
  if (vecAngles->x >= 180)
          vecAngles->x -= 360 * ((int) (vecAngles->x / 360) + 1);
  if (vecAngles->x < -180)
          vecAngles->x += 360 * ((int) (-vecAngles->x / 360) + 1);
  if (vecAngles->y >= 180)
          vecAngles->y -= 360 * ((int) (vecAngles->y / 360) + 1);
  if (vecAngles->y < -180)
          vecAngles->y += 360 * ((int) (-vecAngles->y / 360) + 1);
  vecAngles->z = 0.0;
}

And I added two ClampAngle() calls on idealpitch and ideal_yaw at the bottom of BotThink(), this way the assertion can't fail anymore.

I updated the podbot DLL

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

Cooley 10-03-2004 17:40

Re: POD-bot back into shape.
 
Unfortunately I am still getting the same error, but thanks for working on it.

Pierre-Marie Baty 10-03-2004 19:10

Re: POD-bot back into shape.
 
Pisses me off. I've added this barbarian fix.
Code:

void UTIL_ClampAngle (float *fAngle)
{
  if (*fAngle >= 180)
          *fAngle -= 360 * ((int) (*fAngle / 360) + 1);
  if (*fAngle < -180)
          *fAngle += 360 * ((int) (-*fAngle / 360) + 1);
 
  // if we're still above the limit then something's REALLY fuckedup!!!
  if ((*fAngle >= 180) || (*fAngle < -180))
          *fAngle = 0; // no mercy.
}

try this one now.
http://racc.bots-united.com/releases/podbot.zip
still uploading as I write this.

*edit* upload finished, go for it.

Cooley 10-03-2004 20:31

Re: POD-bot back into shape.
 
Sorry still getting


hlds_i686: bot.cpp:8089: void BotThink(bot_t *): Assertion `(pEdict->v.v_angle.x
> -181.0) && (pEdict->v.v_angle.x < 181.0) && (pEdict->v.v_angle.y > -181.0) &&
(pEdict->v.v_angle.y < 181.0) && (pEdict->v.angles.x > -181.0) && (pEdict->v.an
gles.x < 181.0) && (pEdict->v.angles.y > -181.0) && (pEdict->v.angles.y < 181.0)
&& (pEdict->v.ideal_yaw > -181.0) && (pEdict->v.ideal_yaw < 181.0) && (pEdict->v.idealpitch > -181.0) && (pEdict->v.idealpitch < 181.0)' failed.

Now when I try to kill the server with the exit command I get the following error:

L 03/10/2004 - 12:17:56: "Make me Laugh<-1><><CT>" disconnected
Dropped Make me Laugh from server
Reason: Server shutting down
L 03/10/2004 - 12:17:56: "Hemp Invader<-1><><TERRORIST>" triggered "Dropped_The_Bomb"
./hlds_run: line 423: 17448 Segmentation fault $HL_CMD
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem



Thanks for the continued work.

Cooley

Pierre-Marie Baty 10-03-2004 22:29

Re: POD-bot back into shape.
 
heck, it's IMPOSSIBLE!!! ???:(
can you try this one ?
http://racc.bots-united.com/podbot_mm_i386.so
it won't work any better but it will help me locate the bug.

Cooley 11-03-2004 02:48

Re: POD-bot back into shape.
 
Here is the new error


hlds_i686: bot.cpp:8088: void BotThink(bot_t *): Assertion `(pEdict->v.ideal_yaw > -181.0) && (pEdict->v.ideal_yaw < 181.0)' failed.
./hlds_run: line 423: 17605 Aborted $HL_CMD
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem

Could these error be related to other metamod plugins (just checking, no programing background). I am running adminmod 2.50.58-beta and StatsMe 2.8.0.

Cooley

walten 11-03-2004 08:49

Re: POD-bot back into shape.
 
I am running linux and i have no problem getting it up and running. The plugin that is.

[ 1] AMX, v0.9.7, Nov 28 2003, by OLO, see http://www.amxmod.net
[ 2] FUN, v0.9.8, Nov 28 2003, by OLO, see http://www.amxmod.net
[ 3] CS STATS, v0.9.7, Nov 28 2003, by OLO, see http://www.amxmod.net
[ 4] WebMod, v0.47, 2003/05/19, by dJeyL, see http://djeyl.net/w
[ 5] Vexd Util. Module, v0.2.0.7, Nov 28 2003, by Vexd, see No Website
[ 6] POD-Bot, v2.5, 20/02/2004, by Count Floyd, Austin, Wei Mingzhi, Pierre-Marie Baty, see http://www.bots-unite

That is my meta list.

When i hit my podbotmenu key it says that it is an unknown command.

any ideas

-walten


All times are GMT +2. The time now is 11:56.

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