AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   Counter Strike Bot Control (https://forums.alliedmods.net/showthread.php?t=40097)

EKS 06-10-2006 16:24

Counter Strike Bot Control
 
This plugin allows you to control the counter strike source bots more easly, you can have them them automaticly keep the server populated. You can have bots automaticly killed when all the human players are dead, and any changes can be made in the bot menu

http://eks.steamfriends.com/SourceMM/botmenu.png

Usage:
admin_botmenu

For the menu to work you need to have a admin plugin that supports the AdminInterface .

Cvars:
csb_autokill - If bots should be auto killed when no human players are alive
csb_autoadd - What the minimum amount of players are, if player count is bellow this bots are automaticly added

These cvars can be added to any .cfg file, like server.cfg

Remember, if you want bots on the server with human players. Change the cvar bot_join_after_player 0

Download: ( Docs on how to install in addons\csbotc\docs )
Regular
Source

Quote:

Originally Posted by Changelog
CSB 1.0.5
- Added: Safty code incase plugin is loaded on other mods then css or on a version of css thats missing a ton of cvars?
- Fixed: Incorrect hooking/unhooking of events

CSB 1.0.4
- Fixed: Posible crash bug ( That fun ServerExecture(); thing )
- Changed: More compatibility with sourcemm 1.4

CSB 1.0.3
- Changed: Now requires sourcemm 1.4.x
- Changed: Now uses AdminInterface 1 ( Access right used: Class: CSBotControl Right: botmenu)

CSB 1.0.2
- Fixed: Version number ;)
- Fixed: Now sets players dont have a menu open on first server load ( Potensial issue with other plugins )

CSB 1.0.1
- Fixed: Added: Message to feezing bots
- Fixed: Unknown command shown when the admin_botmenu was shown
- Fixed: Remove bot via menu could not lower bots bellow 1


GeForce 06-10-2006 16:36

Nice man! Works fine :)

Opossum 06-10-2006 17:30

Yes, nice man. I'll test it tomorrow.

tron73 06-10-2006 18:01

Hello there,

is your plugin also usable with mani-admin-plugin (source-mm version) ??

If not, could you make a special version ? :)

EKS 06-10-2006 19:14

Quote:

Originally Posted by tron73
Hello there,

is your plugin also usable with mani-admin-plugin (source-mm version) ??

If not, could you make a special version ? :)

It can be used with any other admin plugin. But the bot menu will not function untill mani has time to add the AdminInterface ( He said he is going to ).

Hellraiser 06-25-2006 11:44

Re: Counter Strike Bot Control
 
i got every thing installed but still can not get the admin_botmenu to work i put my steam id in the ini to i can not get the the admin_menu to work to plz help and were do i change how many bot are added auto i checked meta list andall is working to. ps i am running beetles mod.

Rebell 06-25-2006 12:09

Re: Counter Strike Bot Control
 
Good idea !

EKS 06-25-2006 18:59

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by Hellraiser
i got every thing installed but still can not get the admin_botmenu to work i put my steam id in the ini to i can not get the the admin_menu to work to plz help and were do i change how many bot are added auto i checked meta list andall is working to. ps i am running beetles mod.

For menu support the admin plugin needs to support the AdminInterface, im gonna guess that beetlemod dont support it. You could tell the author to go to this to read about it. And the info required to add support in beetlemod.

The cvars for this plugin can be put in any .cfg file, i would personaly use server.cfg.

Falco 06-28-2006 02:35

Re: Counter Strike Bot Control
 
Linux rented server crashes with the use of:

[02] Statsmeminimum Plug 1.3.0.8 Roger Devil RUN

Logs show nothing relevent. Sever runs fine if I comment out Statsmeminimum

00:34:05 meta list
00:34:05 -Id- Name Version Author Status
[01] Mani Admin Plugin 1.2BetaN Mani RUN
[02] Statsmeminimum Plug 1.3.0.8 Roger Devil RUN
[03] GoreMod 3.2.3 c0ldfyr3 RUN

00:36:30 Loaded plugins:
---------------------
0:<TAB>"zBlock Max 2.0.3"
1:<TAB>"Mattie's EventScripts, http://mattie.info/cs, Version:1.0.0.018"
2:<TAB>"The_WuH's EventScript Tools (c) 2006, http://www.ThewAc.NET"
3:<TAB>"CountryFilter-1.0.3 by Guwashi, http://d3.jpn.org/"
---------------------

EKS 06-28-2006 09:58

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by Falco
Linux rented server crashes with the use of:

[02] Statsmeminimum Plug 1.3.0.8 Roger Devil RUN

Logs show nothing relevent. Sever runs fine if I comment out Statsmeminimum

00:34:05 meta list
00:34:05 -Id- Name Version Author Status
[01] Mani Admin Plugin 1.2BetaN Mani RUN
[02] Statsmeminimum Plug 1.3.0.8 Roger Devil RUN
[03] GoreMod 3.2.3 c0ldfyr3 RUN

00:36:30 Loaded plugins:
---------------------
0:<TAB>"zBlock Max 2.0.3"
1:<TAB>"Mattie's EventScripts, http://mattie.info/cs, Version:1.0.0.018"
2:<TAB>"The_WuH's EventScript Tools (c) 2006, http://www.ThewAc.NET"
3:<TAB>"CountryFilter-1.0.3 by Guwashi, http://d3.jpn.org/"
---------------------

If you PM me your full setup. So i can fire it up and see where the crash starts. ( I have a win server).

Other then that, if this is a windows server you can just post the crash file. mdump

EKS 06-29-2006 11:35

Re: Counter Strike Bot Control
 
Quote:

CSB 1.0.1
- Fixed: Added: Message to feezing bots
- Fixed: Unknown command shown when the admin_botmenu was shown
- Fixed: Remove bot via menu could not lower bots bellow 1
Update released, just minor tweaks.

Falco 07-07-2006 19:43

Re: Counter Strike Bot Control
 
Possible to add your own prefix before bot name?

FlyingMongoose 07-07-2006 20:40

Re: Counter Strike Bot Control
 
rcon bot_prefix texthere

Falco 07-08-2006 20:17

Re: Counter Strike Bot Control
 
Then am I able to also use the other Valve bot cvars with this? Sorry for the confusion as I thought the plugin handled this.

EKS 07-09-2006 05:49

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by Falco
Then am I able to also use the other Valve bot cvars with this? Sorry for the confusion as I thought the plugin handled this.

Yes.

This plugin only adds a few extra settings and provides a menu to the most commen settings. You can still play around with all the bot_ cvars

[KdF]meigrafd 07-17-2006 07:44

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by EKS
CSB 1.0.1

eh, the zipfile and so is titled as v1.0.1 but on 'meta list' it says:

CS Bot Control 1.0.0

EKS 07-18-2006 13:20

Re: Counter Strike Bot Control
 
Thats very posible as i forgot to change the version number

[NATO]Hunter 07-21-2006 06:35

Re: Counter Strike Bot Control
 
Hello,

great work again, EKS!

I am running it with BAT on my server now.

But, now I have to report some problems.

1. bot_quota can't be changed anymore, after mapstart. (only the first change in server.cfg takes effect.)

2. bot_kick is also not working. (I don't want to go ingame to reduce the bot count everytime.)

Quote:

// Bot System
csb_autokill 0
csb_autoadd 6

This is my setup for the plugin. But, sometimes there are more than 6 bots on the server, if there were human players on the server that had disconnect. Now my problem is, my server can't hold more than 6 bots. (performance issue ;) ).

Any ideas?

Greets
Hunter

Roger Devil 07-21-2006 09:07

Re: Counter Strike Bot Control
 
Hi,
Sorry have wriiten it in german. Your plugin has a bug in the following code, preventing other plugins to show their menu :
Code:

        if (strcmp(command,"menuselect") == 0)
        {
                char *arg1 = m_Engine->Cmd_Argv(1);
                //catch menu commands
                if (arg1)
                {
                        int arg = atoi(arg1);
                        if(arg < 1 || arg > 10) // Make sure makes no invalid selection.
                                return;

                        g_MenuMngr.MenuChoice(id, arg);
                        RETURN_META(MRES_SUPERCEDE);
                }
        }

You have to add a check if BotControl has a menu opened, otherwise ignore the menuselect-command to give the other plugin the possiblity to react.
The bug was reported with with my Clanmatch-Plugin.
Please change the code.....

EKS 07-21-2006 14:12

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by [NATO]Hunter
Hello,

great work again, EKS!

I am running it with BAT on my server now.

But, now I have to report some problems.

1. bot_quota can't be changed anymore, after mapstart. (only the first change in server.cfg takes effect.)

2. bot_kick is also not working. (I don't want to go ingame to reduce the bot count everytime.)



This is my setup for the plugin. But, sometimes there are more than 6 bots on the server, if there were human players on the server that had disconnect. Now my problem is, my server can't hold more than 6 bots. (performance issue ;) ).

Any ideas?

Greets
Hunter

change the autoadd cvar instead

EKS 07-22-2006 10:09

Re: Counter Strike Bot Control
 
@Roger Devil
When does this problem happen?
If it happens in this order:
Someone opens BOT menu, then opens the clan menu without closing the BOT menu there is nothing that can be done with this without adding a extra callback to the AdminInterface ( That i can think of). Atm there is no way for a plugin to know when another plugin has opend a menu ontop of another menu.
So admins need to close the menu in 1 plugin before opening it in the next

You have to add a check if BotControl has a menu opened, otherwise ignore the menuselect-command to give the other plugin the possiblity to react.

I do if you look right above that code:
Quote:

if(g_HasMenuOpen[id] == false) <-- This being the magic line that checks if the user has a menu open
RETURN_META(MRES_IGNORED);
if (strcmp(command,"menuselect") == 0)
{
char *arg1 = m_Engine->Cmd_Argv(1);
//catch menu commands

if (arg1)
{
int arg = atoi(arg1);
if(arg < 1 || arg > 10) // Make sure makes no invalid selection.

return;
g_MenuMngr.MenuChoice(id, arg);
RETURN_META(MRES_SUPERCEDE);
}
}



[NATO]Hunter 07-22-2006 10:56

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by EKS
change the autoadd cvar instead

Ok, thanks for tip.

But I have an other problem. If I setup 0 bots and if now a player disconnects, a Bot is added. How can I avoid this? The autoadd variable is at 0.

EKS 07-22-2006 11:35

Re: Counter Strike Bot Control
 
make sure you have the updated version ( Download from first page ).

I could not reproduce your problem

tron73 07-22-2006 11:44

Re: Counter Strike Bot Control
 
Hello there, I am the User from Rogers Plugin and I desribe the error as follows:

there is no Bot-Control open, but I can't open the menu for the clanmatch-plugin. It seems, that Bot-Control blocks the function, to open other plugins menus .....

When I run Clanmatch-Plugin and B.A.T. alone, everything is fine ....

EKS 07-22-2006 18:16

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by tron73
Hello there, I am the User from Rogers Plugin and I desribe the error as follows:

there is no Bot-Control open, but I can't open the menu for the clanmatch-plugin. It seems, that Bot-Control blocks the function, to open other plugins menus .....

When I run Clanmatch-Plugin and B.A.T. alone, everything is fine ....

PM me your addons folder, and a clear way of reproduce the posible bug. Looking at the code this plugin has no fault in how it handles menus ( Its handles menus EXACLY like BAT actualy (should at least) and ForgiveTK plugin).
Also make sure you dont have a Bot menu open when you try to use the clanmatch plugin menu, that will mean both plugins handle your menu selections and fun problems will happen.

Roger Devil 07-24-2006 05:22

Re: Counter Strike Bot Control
 
In your code g_bHasMenuOpen is never initialized to false.
So perhaps that could be a problem. Will also take a look furthe to what happens exactly.

EKS 07-24-2006 13:38

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by Roger Devil
In your code g_bHasMenuOpen is never initialized to false.
So perhaps that could be a problem. Will also take a look furthe to what happens exactly.

Correct. I fixed that in this release.

Quote:

CSB 1.0.2
- Fixed: Version number ;)
- Fixed: Now sets players dont have a menu open on first server load ( Potensial issue with other plugins )

xlkiller 08-11-2006 04:30

Re: Counter Strike Bot Control
 
I use Mani Admin Plugin and not BAT.
When i type admin_botmenu the menu not appear ...
when are you update this plugin for me ? :p

louie666 08-15-2006 14:58

Re: Counter Strike Bot Control
 
hey chap if you bothered to read thread you would notice its mani that has to update to be compataible not other way round.. and mani is working on this... :)

Isias 08-16-2006 15:30

Re: Counter Strike Bot Control
 
Could you add the bot join after player join server cvar? Lots of people are requesting this on the Mani Forum.

EKS 08-16-2006 15:57

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by -<[PAGC]>- Isias (Post 368452)
Could you add the bot join after player join server cvar? Lots of people are requesting this on the Mani Forum.

first, why would they request things for this plugin in the mani forums?

secondly there is a cvar for it. bot_join_after_player

Isias 08-16-2006 17:02

Re: Counter Strike Bot Control
 
They're not directly requesting this plugin, of course. But lots of people are asking for the server cvars to let bots play online even if the server is not populated. I'd avise this plugin for them in the forum, instead of reposting the same server cvars each time.

Of course you don't need to add them, bot for every menu point of your plugin there's a server cvar. Adding this would make the plugin more complete, from my point of view.

Spectral 08-31-2006 21:28

Re: Counter Strike Bot Control
 
I have version 1.0.2 adn with the new css update when i type admin_botmenu it says unkown command. I did meta list and it says the plugin is running fine.

EKS 09-01-2006 00:30

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by Spectral (Post 375935)
I have version 1.0.2 adn with the new css update when i type admin_botmenu it says unkown command. I did meta list and it says the plugin is running fine.

Do you have BAT or mani loaded properbly? if i remember correctly its gonna give you unknown command if you dont have access to the command. I used the plugin yesterday on my lanserver ( fully updated ) and that worked fine

xlkiller 09-01-2006 11:40

Re: Counter Strike Bot Control
 
i use Mani Admin Plugin 1.2 BetaN RC 2.3 and i have the same problem.

EKS 09-01-2006 12:11

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by xlkiller (Post 376198)
i use Mani Admin Plugin 1.2 BetaN RC 2.3 and i have the same problem.

does that mani version support the AdminInterface?

Spectral 09-02-2006 05:23

Re: Counter Strike Bot Control
 
i use mani 1.2betaN as well and yes i believe so because it uses menus aswell. but mani is loaded through a VDF file so i dont see why mani would make it not work, i dont know *shrugs*

Spectral 09-07-2006 01:04

Re: Counter Strike Bot Control
 
anything???

EKS 09-07-2006 16:02

Re: Counter Strike Bot Control
 
Quote:

Originally Posted by Spectral (Post 378355)
anything???


You need to use a mani that has the AdminInterface . I dont know what version that would be

mascimax 11-19-2006 07:50

Re: Counter Strike Bot Control
 
the plugin not work i when i write admin_botmenu the console say me non correct command!!!!

The souce mm plugin work well and also load the plugin well!!


All times are GMT -4. The time now is 03:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.