.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   YaPB (http://forums.bots-united.com/forumdisplay.php?f=55)
-   -   CSBot enable plugin (http://forums.bots-united.com/showthread.php?t=5541)

FaTRuS 09-11-2009 09:45

Re: CSBot enable plugin
 
Send please yours csbot_enable_mm.so for check

FaTRuS 17-11-2009 04:59

Re: CSBot enable plugin
 
please need help!!!

FaTRuS 01-12-2009 11:33

Re: CSBot enable plugin
 
This problem arises with steam on 48 report, about 47 all works normally

Help to start bots on 48 report

Whistler 02-12-2009 10:31

Re: CSBot enable plugin
 
that looks like valve just removed the bot from the cs_i386.so (in previous versions valve just disabled it rather than removed it).

if that's true, then I don't think there is anything we can do about that :( maybe copying an cs_i386.so file from older versions can fix that (not sure if this will have any negative effect though).

Whistler 06-12-2009 17:58

Re: CSBot enable plugin
 
this can be confirmed, as the dlls in latest steam version of CS and CZero are already different.
gotta update the webpage to note that.

slam357 16-02-2010 01:16

Re: CSBot enable plugin
 
please help...not compile =(
Code:

[slam@myhost csbot_enable_mm]$ make
g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -w -O1 -s -DNDEBUG=1 -I/home/slam/hlsdk/multiplayer/common -I/home/slam/hlsdk/multiplayer/engine -I/home/slam/hlsdk/multiplayer/dlls -I/home/slam/hlsdk/multiplayer/pm_shared -I/home/slam/metamod-1.19/metamod -c dllapi.cpp -o dllapi.o
In file included from dllapi.cpp:40:
/home/slam/metamod-1.19/metamod/metamod.h:82: ошибка: conflicting declaration ‘HL_enginefuncs_t g_engfuncs’
/home/slam/hlsdk/multiplayer/dlls/enginecallback.h:26: error: ‘g_engfuncs’ has a previous declaration as ‘enginefuncs_t g_engfuncs’
make: *** [dllapi.o] Error 1

metamod 1.19
hlsdk 2.3-p3

tomba2k 10-01-2011 05:48

Re: CSBot enable plugin
 
here is version with modified Makefile to compile on SUSE x64:
http://www.megaupload.com/?d=QXX6O6JM
http://www.mediafire.com/?g4shd37vlhudqce

hope it will help someone.
btw, does anyone have p47 linux hlds engine?

P.S.: makefile compiles 32bit binary on x64 system.

Immortal_BLG 26-09-2011 01:07

Re: CSBot enable plugin
 
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

tomba2k 26-09-2011 12:49

Re: CSBot enable plugin
 
so, there's no solution for linux?
btw, your english is not so bad, but that isn't of such importance as effort you showed:)

Whistler 26-09-2011 14:29

Re: CSBot enable plugin
 
Quote:

Originally Posted by Immortal_BLG (Post 63998)
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

good job :D

tomba2k: maybe try patching the HLSDK & metamod sources to add the new engine API as Immortal_BLG noted and recompile?


All times are GMT +2. The time now is 12:27.

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