.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Bug Reports (http://forums.bots-united.com/forumdisplay.php?f=49)
-   -   R2b43 wired error messages (http://forums.bots-united.com/showthread.php?t=2688)

g4s 22-09-2004 13:53

R2b43 wired error messages
 
I updated my bots to R2b43 (Windows DS) days ago. But the server crashes very often. Then I tried it under linux. At first I thought there might be something wrong with my amxx plugins. After disabling amxx, and did a fresh install of podbot, the problem is still there. The error messages I got:
Quote:

Got a NaN velocity on grenade
Got a NaN origin on grenade
PM Got a NaN velocity 0
PM Got a NaN origin on 0
PM Got a NaN velocity 1
PM Got a NaN origin on 1
PM Got a NaN velocity 2
PM Got a NaN origin on 2
Got a NaN velocity on weaponbox
Got a NaN origin on weaponbox
... ...
These messages are endless.

I compiled both R2b1 and R2b43, R2b1 just works with no problems. But with R2b43, I got these messages right after I add bots.

any ideas?

KWo 22-09-2004 21:16

Re: R2b43 wired error messages
 
What the version of metamod do You use? Don't use under linux mm1.17.2 because there are some "memory leaks". I was reading it at some other forum. The problem with this mm is only under linux.

sPlOrYgOn 23-09-2004 00:11

Re: R2b43 wired error messages
 
yes Dethpod also mentioned this problem to me but I was unable to fix it or even surpress it..
I couldn't figure it out but perhaps a memory leak in metamod(linux) could explain it.. since Dethpod owns 2 linux servers..

g4s 23-09-2004 00:25

Re: R2b43 wired error messages
 
Yes, I'm using 1.17.2. But if it's the problem of metamod, it doesn't make sense that r2b43 has problems while r2b1 works ok.

sPlOrYgOn, is there anywhere I can download previous versions of podbot, like b41, b40...? Just want to see if I get same problems with those versions.

I'll first try to downgrade metamod and post the result here. Thanks for the info guys.

sPlOrYgOn 23-09-2004 00:37

Re: R2b43 wired error messages
 
an estimate of which build number it started at is probably around build 10 - build 36..
it's probably something stupid I added...

g4s 23-09-2004 00:47

Re: R2b43 wired error messages
 
nope, nothing to do with metamod. I downgraded metamod to 1.17.1, got those messages again.

sPlOrYgOn, if you still have backup of those old versions, I got time now to test them. Or I'll just stick with my modified version of b1 and wait for the next beta. :)

sPlOrYgOn 23-09-2004 00:50

Re: R2b43 wired error messages
 
Dethpod has been getting these messages for quite a long time.. I think even before 1.17.1 came out..
[edit]
and the only place that would have backup until build 38 would be the CVS..
I should probably keep backups but I'm sort of low on HDD space.. :|
[/edit]
[edit2]
Dethpod has source code from 06/27/04 and this does not produce the NaN stuff.. maybe you can change one thing at a time until those messages appear and see what is wrong..
http://www.mapzap.org/files/podbot/p...rc-6-27-04.zip
[/edit2]

g4s 23-09-2004 03:17

Re: R2b43 wired error messages
 
thanks but it seems the link is broken.

I switched back to r2b1, tested under linux, everything seems ok. But I'm pretty sure the recent releases are much better. so could you please check that zip file?

sPlOrYgOn 23-09-2004 03:20

Re: R2b43 wired error messages
 
lol sorry when I tested the link it worked but when I wrote the link there i forgot the s in files
[edit]
using this code as test code is better since it's not as far back as b1...
[/edit]

sPlOrYgOn 25-09-2004 20:42

Re: R2b43 wired error messages
 
I found something...
I wonder when this gets called..
I'll see what I can do when I have time..
this is found in the HLSDK in a file called pm_shared.c
PHP Code:

/*
================
PM_CheckVelocity

See if the player has a bogus velocity value.
================
*/
void PM_CheckVelocity ()
{
    
int        i;

//
// bound velocity
//
    
for (i=i<i++)
    {
        
// See if it's bogus.
        
if (IS_NAN(pmove->velocity[i]))
        {
            
pmove->Con_Printf ("PM  Got a NaN velocity %i\n"i);
            
pmove->velocity[i] = 0;
        }
        if (
IS_NAN(pmove->origin[i]))
        {
            
pmove->Con_Printf ("PM  Got a NaN origin on %i\n"i);
            
pmove->origin[i] = 0;
        }

        
// Bound it.
        
if (pmove->velocity[i] > pmove->movevars->maxvelocity
        {
            
pmove->Con_DPrintf ("PM  Got a velocity too high on %i\n"i);
            
pmove->velocity[i] = pmove->movevars->maxvelocity;
        }
        else if (
pmove->velocity[i] < -pmove->movevars->maxvelocity)
        {
            
pmove->Con_DPrintf ("PM  Got a velocity too low on %i\n"i);
            
pmove->velocity[i] = -pmove->movevars->maxvelocity;
        }
    }


[EDIT]
The code tags really need help...
[/EDIT]


All times are GMT +2. The time now is 15:33.

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