.:: 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)

lickityspliff 22-07-2006 01:02

CSBot enable plugin
 
i saw this on your download section and was wondering how to install it with meta mod, the readme isnt very clear where tp put things.

Whistler 22-07-2006 11:56

Re: csbots enable plugin
 
See the wiki for details :)

lickityspliff 22-07-2006 20:23

Re: csbots enable plugin
 
ok so mabey i wasnt being very specific in my question
when i go to http://yapb.bots-united.com/downloads.html
and download this link http://yapb.bots-united.com/files/csbot_enable_mm.zip
now im running meta mod and amxx 1.75 and when i install the plugin in the metamod's plugin.ini and i restart the server and type meta list all it shows me is a bunch of amx stuff i think its the modules, and addbot doesnt work and there is no documentation stating which commands work and so forth.

i just dont see anything for this plugin on the wiki

Ancient 22-07-2006 20:49

Re: csbots enable plugin
 
include csbot in the plugins.ini

win32 "Release\csbot_mm.dll"
//linux "Release\csbot_mm.so" (take out the slashes if you run a linux server.)

Then upload everything changed and upload everything new.

bot_add are csbot functions.
bot_* anything.
bot_kick etc...

lickityspliff 04-08-2006 23:16

Re: CSBot enable plugin
 
doh nvm

lickityspliff 06-08-2006 17:42

Re: CSBot enable plugin
 
ok so picking up from this problem, i only have upto libstdc++.so.5.0.5
and my gcc is at 3.3.2 so my questions are
1. how do i update the gcc installation
2. does that come with libstdc++.so.6 ? or do i have to update that aswell

keep in mind its a remote machine because i was just having troubles with cygwin so i did it on the box.

Quote:

Originally Posted by Whistler
libstdc++.so.5 is older version of the GNU C++ Library. See if there is a libstdc++.so.6 file in your /usr/lib or /lib directory in your server, if so, try using GCC 3.4 or newer to compile the plugin. (libstdc++.so.5 is used by GCC 3.3.x)

EDIT: i do have libstdc++.so.6 on another server but gcc is not installed on it. would it be easier to install gcc on that machine vs updating the other one?

Whistler 07-08-2006 03:20

Re: CSBot enable plugin
 
Not sure which version of GNU/Linux you are using, but you can try finding a binary package in the official repository (you will need the root account of the server, not sure if you have it). If there is no official binary package, you can download the source code of GCC at http://ftp.gnu.org/pub/gcc and compile it.

lickityspliff 07-08-2006 04:39

Re: CSBot enable plugin
 
on the one server with the lib.6 thing is running fedoracore3 (redhat 10)
and on the older one im not sure probly similar.

im not sure where this official repository is or which dir it is.

gcc looks hard to install atleast the config part from the website

im pretty tired at the moment maybe it wont look so hard tomarrow

Whistler 07-08-2006 09:18

Re: CSBot enable plugin
 
If it's Fedora Core 3, it would be easier to just install the "compat-libstdc++" package. For more information about the official YUM repository, check out their web site: http://fedora.redhat.com

Of course you MUST have the root access to the server.

lickityspliff 07-08-2006 18:10

Re: CSBot enable plugin
 
I forgot to mention that yes I do have root access through ssh to 3 servers.

2 of them have gcc on it but only version 3.3.x cause they are fedora 1 and fedora 2 and neither of them will update with the yum update gcc command. it says its up to date blah blah.

i did that install of the compat-libstdc++ on my fedoracore 3 server and i installed gcc through yum aswell its at v3.4.x

when i try to compile i get this error
Code:

g++ -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp -w -O1 -s -DNDEBUG=1 -I/home/games/hl1/sdk/hlsdk/multiplayer/common -I/home/games/hl1/sdk/hlsdk/multiplayer/engine -I/home/games/hl1/sdk/hlsdk/multiplayer/dlls -I/home/games/hl1/sdk/hlsdk/multiplayer/pm_shared -I/home/games/hl1/sdk/metamod-1.19/metamod -c dllapi.cpp -o dllapi.o
make: g++: Command not found
make: *** [dllapi.o] Error 127


Whistler 08-08-2006 05:10

Re: CSBot enable plugin
 
"make: g++: Command not found"
then install the "gcc-c++" package.

lickityspliff 08-08-2006 07:01

Re: CSBot enable plugin
 
we are making progress!

ive compiled it and am at the next point and error :(

Quote:

meta load addons/csbot/csbot_enable_mm
L 08/07/2006 - 20:51:24: [META] ERROR: dll: Failed query plugin '<csbot_enable_mm>'; Couldn't open file '/home/hlds_2/cstrike/addons/csbot/csbot_enable_mm.so': /home/hlds_2/cstrike/addons/csbot/csbot_enable_mm.so: undefined symbol: GetEngineFunctions
L 08/07/2006 - 20:51:24: [META] ERROR: dll: Skipping plugin '<csbot_enable_mm>'; couldn't query
Couldn't load plugin '<csbot_enable_mm>'; see log
i am waiting to look at the log file because im deleting all the ones that were there 3000+ YIKES...

Whistler 08-08-2006 07:21

Re: CSBot enable plugin
 
Sorry, this is a bug. :( I've updated it. Please redownload the source code.

lickityspliff 08-08-2006 18:36

Re: CSBot enable plugin
 
alright cool.
dont be sad though these things happen especialy with the big change in metamod.

i noticed your only using metamod 1.18 in your make file.

im using 1.19 here and i still got this error after compiling it again

Quote:

L 08/08/2006 - 08:33:36: [META] ERROR: dll: Failed query plugin '<csbot_enable_mm>'; Couldn't open file '/home/hlds_2/cstrike/csbot_enable_mm.so': /home/hlds_2/cstrike/csbot_enable_mm.so: undefined symbol: GetEngineFunctions

Whistler 09-08-2006 02:50

Re: CSBot enable plugin
 
Don't use the Makefile from the old version (as it has a problem).

lickityspliff 09-08-2006 05:11

Re: CSBot enable plugin
 
Doh! Thank you so much for helping me through that, it works great!!!
I Really appreciate your time. I made a simple sig for you, least i could do in return, dunno if its your style though.
http://lickityspliff.com/images/sigs/whistler_sig.gif

something to take up that extra space in your posts =P http://lickityspliff.com/images/whistler_sig.gif

lickityspliff 09-08-2006 06:22

Re: CSBot enable plugin
 
oh hey like in my favorites list my server now shows up as a condition zero server =/

FaTRuS 08-11-2009 14:04

Re: CSBot enable plugin
 
sorry my bad english

I have the problem

i making csbot_enable_mm.so with make file

csbot_enable_mm.so creating

i copy csbot_enable_mm.so to addons/csbot/

enabling csbot_enable_mm.so in plugins.ini in metemod

run the server? server is work

if i write bot_add server is stoping with error Segmentation fault

i using
hlsdk - hlsdk-2.3-p3
metamod - metamod 1.19

please help me

напишу по русски мож кто из русскоязычноего неселения читает

Делаю csbot_enable_mm.so с помощью make файла
фаил создается нормально весит 9,6 kb

поключаю к Metamod 1.19 т.е. создаю папку addon/csbot добовляю туда csbot_enable_mm.so, потом прописываю csbot_enable_mm.so в plugins.ini в metamod

запускаю сервер, сервер работает
как только я ввожу строчку bot_add сервер виснит с сообщением Segmentation fault

Использую для сборки ботов
hlsdk - hlsdk-2.3-p3
metamod - metamod 1.19
Помогите кто чем может

Whistler 09-11-2009 06:33

Re: CSBot enable plugin
 
you also need a BotProfile.db file from CZero, which is already mentioned in the readme.txt file.

FaTRuS 09-11-2009 09:26

Re: CSBot enable plugin
 
I added a file BotProfile.db, but all the same an error there is also a server stops

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?

Immortal_BLG 27-09-2011 01:48

Re: CSBot enable plugin
 
Thanking Whistler, I remembered that I can just update metamod without those wild hacks :{D

Sorry....

LINK

tomba2k 28-09-2011 02:30

Re: CSBot enable plugin
 
thanx for advice, i will definitely try.
i just wasn't sure is it possible to do the same for linux.
i still havent figured out is this piece of code that imortal is talking about functioning for him?
(at least on windows)

Immortal_BLG 28-09-2011 12:54

Re: CSBot enable plugin
 
You just need to download updated metamod from post above, compile it under linux, and use it instead of your metamod - that's all :)

ExAnimo 24-10-2011 11:06

Re: CSBot enable plugin
 
Whether probably to switch -off artificial intelligence at hostages on cs_ maps? That they were at a stop and didn't run when I shoot nearby.
I have plugin prometheus.amxx, but with this zbot plugin doesn't work.

Immortal_BLG 24-10-2011 12:33

Re: CSBot enable plugin
 
It is possible but only with the patch.
The fact that the code to create a class CHostageImprov (which is responsible for advanced hostage AI) looks like this:

Code:

void CHostage::IdleThink (void)
{
        if (!TheNavAreaList.IsEmpty ())        // THIS LINE SHOULD BE "REWRITTEN/PATCHED" TO "if (false)"
        {
                if (m_improvPointer == NULL)
                        m_improvPointer = new CHostageImprov (this);
        }
        else
        {
                if (m_improvPointer != NULL)
                        delete m_improvPointer;

                m_improvPointer = NULL;
        }

        // .....................
}


ExAnimo 24-10-2011 16:17

Re: CSBot enable plugin
 
Тут по русски можно сказать?
Я ничё не понял , я не программист, компилировать не умею ) , можешь сделать такой патченый длл ? пожалуйста.

Immortal_BLG 25-10-2011 08:07

Re: CSBot enable plugin
 
Here, I did what you asked for. To turn off the advanced hostage AI you just need to execute the console command "csbotenable_toggle_advanced_hostage_AI"

WARNING: ONLY FOR WINDOWS 32 BIT!!!!

ExAnimo 25-10-2011 12:47

Re: CSBot enable plugin
 
Thanks big, now all work ideally

ExAnimo 29-10-2011 13:18

Re: CSBot enable plugin
 
Found you post

Quote:

Originally Posted by Immortal_BLG (Post 60069)
Sorry for flood.

I too try to create bot from YaPB, GINA and some examples from other bots (RCBot2, koraxBot, JoeBotXP, ....)....
Please don't laugh....
Many things do not work..., as I bad know c++ language :(
Warning: This is only work on win32, steam cs 1.6 (maybe CZ).

There can be it to somebody to be useful....
http://rapidshare.com/files/24319877...3_src.zip.html
http://rapidshare.com/files/24319906...g_bin.zip.html

where i can download you last release YaPB3 with improvements from other bots (RCBot2, koraxBot, JoeBotXP, ....)
If you do not develop this now, you can throw off last build and source ?

ExAnimo 13-11-2011 10:39

Re: CSBot enable plugin
 
Has found an interesting plug-in
http://forums.alliedmods.net/showthread.php?t=171807

SnowWars MOD

Whether it is possible to make so that bots threw all time a snowball (grenade) in the opponent ?

To switch on and off with comand like
csbotenable_SnowWars 1


All times are GMT +2. The time now is 01:50.

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