![]() |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
well it doesn't exactly crash..
hlds shuts down the server properly with a -1 return.. and if you try it with a calculator 0/0 is undefined/error. the compiler even warns me that there could be a zero divide. [edit] well i've changed it to Code:
if (iEdictNum == 0) iEdictNum = 1 / iEdictNum; I REALLY think something else is doing it.. [/edit] |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Quote:
|
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Okay I got a new plan of action!
How about everyone who crashes a lot post all the maps they crash at... Maybe we can find some similarities between them and see what the bot does wrong with the certain thing.. so far I only crash on cs_office. [edit] new info... only ENTINDEX can cause a "NUM_FOR_EDICT: bad pointer" error.. if INDEXENT was causing the error it would be "EDICT_NUM: bad number %i". [/edit] |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
sPlOrYgOn,
You got it. I will start compiling a list of maps that PodBot2.1-mm crashes on. -Dethpod |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Well that is very nice Whistler, but tell me, why on this frikkin Earth would I want to check for possible h@x0r 3xpl0its and buffer overflows on a function that I myself have written and that I myself am the only one using ??? o_O
/me gonna practice breaking into my own code now... |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
sorry Dethpod but I found a way to break point when Sys_Error is called..
I'm testing it right now.. It stopped at the break point but it's currently inside the Sys_Error function.. I built the dll with debug info during the compiling and the linking. my call stack says Quote:
after some more work I now know that the last call to ENTINDEX is from pfnMessageBegin. [/edit] [edit2] well I can't seem to solve it because in pfnMessageBegin it already runs FNullEnt against the Edict. I also tried STRING (ed->v.classname)[0] == 0 still no. If I remember correctly pfnMessageBegin shouldn't catch message calls in the bot dll.. So that means the game dll is using MESSAGE_BEGIN with a messed up edict? [/edit2] |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
So does this mean we have figured out the problem or are we still working on it?
|
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
like this, if ANY user connected to a server running RACC typed a command which is more than 128 characters will cause buffer overrun and crash the server...
Code:
char pcmd[129]; // no way, I hate pointers... |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
Nice try Whistler, but I know that already, that wouldn't work ;)
It is impossible for a HL client to send a client command of more than 128 bytes long :P it's not to an old monkey that one can teach how to pull funny faces :D /me pulls funny face |
Re: Bug-NUM_FOR_EDICT Error: Bad Pointer
So have you fixed the NUM_FOR_EDICT error? or are we still waiting
|
All times are GMT +2. The time now is 20:50. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.