.:: 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 > Bug Reports
Bug Reports Post any bug you experience with the latest release of this bot here

Closed Thread
 
Thread Tools
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#101)
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: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

yea we already know that..
just try de_prodigy..
crashes pretty fast..
sometimes right when one bot joins..

[edit]
WOOT!
I have finally narrowed the bug down to one piece of code
Code:
        // find a reachable target button
         while (!FNullEnt (pButton = FIND_ENTITY_BY_STRING (pButton, "target", STRING (tr.pHit->v.targetname))))
         {
            v_button_origin = VecBModelOrigin (pButton);

            TRACE_LINE (v_trace_start, v_button_origin, ignore_monsters, pEdict, &tr2);
            if ((tr2.pHit == pButton) || (tr2.flFraction > 0.95))
            {
               pBot->dest_origin = v_button_origin;
               pBot->f_wpt_timeset = gpGlobals->time;
               pBot->bCheckTerrain = FALSE;

               if (((v_button_origin - pEdict->v.origin).Length () < 40)
                   && (RANDOM_LONG (1, 100) < 10))
                  pEdict->v.button |= IN_USE;

               break;
            }
         }
This code is from BotDoWaypointNav().
It is when it is searching for the button that will open a door..
I don't see what is wrong with this code yet tho..
if anyone can help it'd be appreciated.
I will also upload a new podbot BETA dll
for those of you who get NUM_FOR_EDICT error a lot or know how to get it very well..
Tell me if the dll fixes it.
BETA DLL HERE!
[/edit]

[edit2]
some more narrowing...
Code:
while (!FNullEnt (pButton = FIND_ENTITY_BY_STRING (pButton, "target", STRING (tr.pHit->v.targetname))))
the first time it reaches that piece of code it gives the NUM_FOR_EDICT error.
I have no idea what the arguments for FIND_ENTITY_BY_STRING are...
any help on that?
[/edit2]

[edit3]
HAHHA
screw this
It's Fixed
I'll upload a new PODBOT BETA DLL..
just use the same link as above..
[/edit3]

[edit4]
oops forgot to tell you guys how i fixed it...
all i did was add
Code:
pButton = NULL;
right before the loop and it's fixed
[/edit4]

[edit5]
Please test to see if it is fixed for all of us..
[/edit5]

Last edited by sPlOrYgOn; 27-07-2004 at 04:19..
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#102)
biohazerd87
Moderator by day Waypointer by night
 
biohazerd87's Avatar
 
Status: Offline
Posts: 1,039
Join Date: Apr 2004
Location: Missouri
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

Well I ran a server with 17 bots and it didn't crash ( I ran the server for about 10 mins) I think you have fixed it. You are the man!!!
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#103)
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: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

well if you say so...

I'll add a few features and stuff because just one bug fix isn't enough for a release
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#104)
biohazerd87
Moderator by day Waypointer by night
 
biohazerd87's Avatar
 
Status: Offline
Posts: 1,039
Join Date: Apr 2004
Location: Missouri
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

Yeah I think when you fixed this bug it also had a good effect on the bots difficulty. They seem to monuvier and shoot better nice job!
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#105)
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: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

Congratulations sPlOrYgOn!
Sincerely!
You're the man



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#106)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

You are Great, sPlOrYgOn!!! Congratulations!!!
Yes - all of these maps noticed by people as generating this bug - all they have some button to "use" near some doors. This night I experienced one map more with this bug (cs_arabstreets, but I had not time to repeat the test with this map) - this map has the button to open the door, too.
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#107)
Aragon
Guest
 
Status:
Posts: n/a
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

Great! Can you plz make us an podbot_mm_i386.so to?
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#108)
biohazerd87
Moderator by day Waypointer by night
 
biohazerd87's Avatar
 
Status: Offline
Posts: 1,039
Join Date: Apr 2004
Location: Missouri
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

Splor I can't say it enough you are the man!!! Hey, I am really trying to learn C++ maybe someday i can help you it's just that I'm not old enough to take the classes for it yet so I have to teach programming languages myself. I know VB which isn't all that hard but it helps on the path to C++.
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#109)
>BKA< T Wrecks
Moderator [PBmm/Waypointing]& PODBot mm waypointer
 
>BKA< T Wrecks's Avatar
 
Status: Offline
Posts: 1,492
Join Date: Feb 2004
Location: C.C.A.A., Germania
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

/Me pops a beer and hoists one for sPlOrYgOn...

mega-! Thank you a million times - you da man!
Strange, I really don't know why I got this error on maps without buttons, but I'll test and see if it works.



Roses are #FF0000, violets are #0000FF // all my base, are belong to you.

  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#110)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 21-05-2004

OK - today I tested 5 times last R2.1 on cs_arabstreets and every first minute the server was crashed with this NUM_FOR_EDICT. So this map for me was the best for test (for example on cs_office I had wait about 10 min to see this crash). Right now, I 'm testing this beta version and my HLDS win32 CS1.5 is still working (about 0.5 hour) on this cs_arabstreets. Seems it's really fixed!!!
God job!

Quote:
Originally Posted by sPlOrYgOn
I'll add a few features and stuff because just one bug fix isn't enough for a release
OK - look to the Idea and Bug reports subforums - I think there is a lot of job. But if this is still not sufficient for You - I can report few bugs and ideas more - no problem.
  
Closed Thread


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