Re: POD-bot back into shape.
Quote:
The function will exit and the angle will still be overflown. |
Re: POD-bot back into shape.
Anyway I have tested it with this little program and it's all ok:
Code:
#include <stdio.h> |
Re: POD-bot back into shape.
i got a thing here.....with a new waypoint done within these last 2 updates.....that does not show up on waypoints from before........
i cant even show you a demo cuz you dont have the map...........(PMB) (its cs_1337_assault) the ct gets the hostages and then appears a message: waypoint problem: no path found and the bot cannot get out of this room......with his hostages........when he accidentaly does.....hes walking straight through a no hostage flag...... thinking it was a no hostage flag placement mistake of mine......i went through the routes he should take and did a wp delete flag on every single waypoint from the goal to the rescue waypoint.......and the error still occurs. 2 errors in one shot....... i went into cs_assault..to see if it happens here and it runs perfectly......no clue man......and the PODERROR.txt...(now much smaller!) shows no error of any kind. |
Re: POD-bot back into shape.
both ways work just fine...
[edit] of course this is about the angles.. [/edit] [edit2] Code:
#include <stdio.h> |
Re: POD-bot back into shape.
@Whistler:
Nope ! it's NOT okay, because even if your resulting angles are in bounds, they are NOT ANYMORE modulo 360 versions of the original one ! it's as if you were doing Code:
if ((angle < -180) || (angle >= 180)) Nevertheless your code is wrong, and I can prove it. Instead of running your test program, rather run this one: Code:
void main (void) And NOT only this, but if you add a Code:
printf ("in=%f out=%f\n", random_angle, result_angle); Believe me, I've tested it all thoroughly, thanks to you pointing me that bug, and I've found the right code. It goes like this: Code:
float WrapAngle (float angle) The only check left to do is the floating point truncation (precision error) that would make the final angle land accurately on a rounded 180 (which would be just above the limit). |
Re: POD-bot back into shape.
@SoUlFaThEr, your problem IS a waypoint problem. It means that the bot can find a way to get TO the hostages, but it can't find a way BACK, because all the routes it could take are blocked with a FL_NOHOSTAGE flag. Try waypointing your map again, you'll see it works. I understand now why you said the bot was ignoring the FL_NOHOSTAGE flag before on this map, that was because the bot couldn't find ANY other way back. Double-check your waypoints again, and beware of one-way connections :)
|
Re: POD-bot back into shape.
EDIT
MY BAD DUDE......i ran through it without seing one waypoint with a no connect........im sorry!!!!!!!! ok i suck :) thats what happens when you dont sleep :) |
Re: POD-bot back into shape.
tsk tsk tsk, check them again. I *know* how the code works, and I tell you, your waypoints will STILL be saved even if all of them wear a FL_NOHOSTAGE flag. The checking routine doesn't check for this.
Isn't there simply a FL_NOHOSTAGE right at the exit of the room ? Test them again. Trust me. Waypoint problem. :) ... if I'm wrong I pay you a pack of beer and I ship it by air mail. *edit* then no beer for Tim :D hehehehehehehe |
Re: POD-bot back into shape.
damn and i was getting thirsty......i owe you some beer.....what you want?
Guiness? |
Re: POD-bot back into shape.
lol dude, any blonde will do :D
/me pops off a garette and waits for the beer... :P |
All times are GMT +2. The time now is 13:02. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.