View Single Post
Re: POD-bot back into shape.
Old
  (#122)
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. - 11-03-2004

Quote:
Originally Posted by Cooley
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
This is the weirdest error I've ever seen. There is a UTIL_ClampAngle() call on pEdict->v.ideal_yaw just above the failing assert(), and ClampAngle can't let an overflown angle pass, so the assert should NEVER fail, but it does ???

The only reason perhaps is that pEdict points to an invalid entity, and ClampAngle lands in a highly volatile part of the memory. In which case it's a strange behaviour of Linux, because the program should have crashed sooner already.

Try this new library, I've added a check preventing BotThink() to be called when pEdict is invalid (it should never happen but who knows ?)
http://racc.bots-united.com/podbot_mm_i386.so



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