.:: 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
Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#1)
Asurmen
Member
 
Asurmen's Avatar
 
Status: Offline
Posts: 37
Join Date: Mar 2004
Location: CraftWorld
Default Bug-NUM_FOR_EDICT Error: Bad Pointer - 04-05-2004

Sup all.

Thought I would start a new thread on this bug since I have now gotten this error typicaly on map change. Have not really pin pointed which maps are doing it yet.

Please if anyone else is getting this error and has some code to post to fix this that would be great. Again, only post code on this bug on this thread. Thanx

Lastly, could anyone who posts code post it in a way so anyone can understand it at to where the fix needs to be changed. Thanx to all that contribute.

Until next time..Cheers!


-The needs of the many outweigh the needs of the few. -Spok Star Trek

-Go forth and kick ass soldiers! -Quake2
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#2)
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 - 04-05-2004

Asurmen, yes I know of this bug but.. I have no idea what that error means or what could be causing it because I have never experienced it.
Could you give some steps to reproduce it somehow?
make sure you can reproduce it a few times.
I'll be checking in the code where the server changes maps.
and what command did you use to change the map? "changelevel"/"map"
and also post some information about your setup.
and does this only happen in 1.6?
  
Update...
Old
  (#3)
Asurmen
Member
 
Asurmen's Avatar
 
Status: Offline
Posts: 37
Join Date: Mar 2004
Location: CraftWorld
Default Update... - 04-05-2004

Spiorygon,

My setup is:

Steam CS 1.6 Listen Server
Metamod 1.17X3 from AMXX site-which seems to not matter which one I use wether it is the Filebase on this site or the above.
Latest Podbot MM here at Bots-United
AMXX 0.16

I do not use AMX anymore since the last update from Valve basicly made it un-usable.

I have done quite of testing with several bots in the past. I just haven't done much debugging. Is there any commands that I can add to my shorcut and or listenserver.cfg to get the information that would shed light on this? Thanx.

Until next time...Cheers!


-The needs of the many outweigh the needs of the few. -Spok Star Trek

-Go forth and kick ass soldiers! -Quake2
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#4)
Boondoggler
Guest
 
Status:
Posts: n/a
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 05-05-2004

I get this bug now as well on my dedicated mEAn PODbot server. The maps I experience this on are de_nuke , and as_oilrig. In the past I had this bug when I first started working on getting POD up and running on a 1.6 listen server. The error at that time would occur the instant the bomb was to drop out of the hand to the ground. I fixed this problem by reinstalling metamod, podbot, and amx. Anyway I haven't spent alot of time figuring out why its happening now, I know it doesn't happen on the map change. There is deffinately an action that triggers this kind of error. Wether its a sound that gets asked for or what I'm not sure.
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#5)
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 - 05-05-2004

Well the way I'm interpreting this error is...
There was a BAD Pointer (pointed to some wrong memory address) that was supposed to be pointed at an edict (entity).
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#6)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Bug-NUM_FOR_EDICT Error: Bad Pointer - 05-05-2004

I think what your looking for can be found in the quake 1 source...

Code:
 int NUM_FOR_EDICT(edict_t *e)
 {
 	int		b;
 	
 	b = (byte *)e - (byte *)sv.edicts;
 	b = b / pr_edict_size;
 	
 	if (b < 0 || b >= sv.num_edicts)
 		Sys_Error ("NUM_FOR_EDICT: bad pointer");
 	return b;
 }
Basically make sure any calls to ENTINDEX are within range.
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#7)
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 - 05-05-2004

Well I was in the middle of a massive cs_office bot pwnage and it poped up
Well now I know it happens in 1.5 also.
I still don't know what is causing it because mine wasn't during changelevel but it did change round using amx's voting.
  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#8)
>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 - 05-05-2004

A friend of mine is running CS 1.6 on a Linux DS (just MM + PB), and he gets the error, too. Also on cs_office, among other maps I don't remember right now. So it really seems to be on all platforms, CS versions and OS'es...



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

  
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Old
  (#9)
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 - 05-05-2004

Perhaps it happens only on a certain type of maps ?
for example cs_ maps ?

That would be a problem related to hostages...



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
  (#10)
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 - 05-05-2004

Asurmen, try to delete all *.pxp and all *.pvi files from your WPTDEFAULT directory. After this test once again and describe us step by step, what did You do to see crash?
For example
1. I start to play on map de_dust.
2. Timelimit for map has reached.
3. New map cs_italy has began to load.
4. I saw the crash with this NUM_FOR_EDICT.

Write us , what is a date stamp of pwf file corresponding to map at which CS crashed. For example if You saw the crash at cs_office, write us date and time of creating the file cs_office.pwf in WPTDEFAULT directory.
  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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