View Single Post
Re: CSBot enable plugin
Old
  (#41)
wbyokomo
Zombie Slayer
 
Status: Offline
Posts: 17
Join Date: Apr 2012
Location: Cyberjaya MY
Default Re: CSBot enable plugin - 02-11-2012

Quote:
Originally Posted by Immortal_BLG View Post
Hello!

I seem have found the reason of crash when using plugin CSBot enable.
The reason not in a plug-in, but in a metamod. Specifically, in build 4554 valve has added in structure enginefuncs_t pointer to a new function pfnCheckParameter(). This new function is just used in mp.DLL for testing parameter "-nobots" when you create a bot. But since metamod does not pass this function in mp.DLL occurs "access violation reading location".

My solution: I just did bypass of a call of this function.

Source code is present.

New function definition:
Code:
// This function returns the launch parameter index in 'com_argv' array, 0 if nothing found. (*argument == com_argv[pfnCheckParameter()]) (Only latest steam versions has this function....)
const unsigned int (*pfnCheckParameter) (const char *const parameter, const char **const argument/* = NULL*/);    // (Example: "-nobots") (Added: 15 Jun 2009, build 4554)
WARNING: ONLY FOR WINDOWS 32 BIT!!!!

LINK

P.S. Sorry for bad english
Hi, can you please re-upload the SourceCode for this metamod? the link already dead. Thanks.
  
Reply With Quote