In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)Specifications request of !nextmap and the general use of commands
Pages: [1]   Go Down
  Print  
Author Topic: Specifications request of !nextmap and the general use of commands  (Read 926 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: --No B3 installed--
Gameservers: CoD7
Posts: 36
Offline Offline
WWW
« on: August 13, 2011, 06:05:15 AM »

Hey,

at first very nice tool. Smiley Thank you for that!

I have two question.

1) How can i edit the !nextmap-command, that all player will see the result in the public chat? At the moment only the player see the result, who will write the command.

2) Is there a possibility to type the commands in the teamchat? At the moment the commands only work, when i type them in the publicchat.


Greetings,

Ma$H
_____________________
Gamers - Extreme | www.g3x-clan.de
Logged

Gamers - Extreme | www.g3x-clan.de

Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #1 on: August 13, 2011, 06:50:25 AM »

Greetings mash and welcome to the forums.

1. If an admin types @nextmap then the results will be displayed to all players. It is likely to get annoying if everyone has that ability.

2. No, currently it only takes commands from public chat.  You could alter it to take team chat commands, but why would you want to do that?

Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #2 on: August 13, 2011, 06:55:14 AM »

Complementary to the previous reply:

1.) A good start to use B3 would be our documentation, the admin plugin handles the most commonly used commands. Also the 'command_prefix_loud' (@) is in the admin configuration.

2.) Admin plugin only handles public commands and private commands, not teamsay commands...

(http://wiki.bigbrotherbot.net/usage:private_commands)
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 80
Offline Offline
« Reply #3 on: August 13, 2011, 07:06:16 AM »

Hello there! There are a couple options for what you are trying to accomplish.

It took me so long to write this, 2 other people replied, but w/e.  Cheesy

Short answer to 1): type @nextmap if you are above level 20 and the response will come through global chat instead of a PM.

Long, more informative answer to 1):

1. The !nextmap command actually can be issued using the 'loud' or 'big' command prefix. If you look in /path/to/your/b3/b3/conf/plugin_admin.xml, you will see a line like this:
Code:
<set name="command_prefix_loud">@</set>
.
This will determine what character is used for the 'loud' command prefix. You may change it if you'd like. When issuing some commands (such as nextmap), you can use the loud prefix to have the B3 response sent to the global chat instead of being private messaged back to you. With the prefix set to "@", typing @nextmap will give you the result you are looking for. The next setting down in the config file is the 'big' prefix. If you start a command with that, depending on the game, it will bigtext the response to the whole server.
Now look down a couple lines in your plugin_admin.xml, you will see
Code:
<set name="admins_level">20</set>
. This tells B3 what level you consider to be someone of admin or moderator status on your server. Keep in mind that a player has to be at or above this level to issue a command with either the 'loud' or 'big' command prefix.

However if you want everyone who has access to the !nextmap command to be able to have the response appear in the global chat, you could edit /path/to/your/b3/b3/plugins/admin.py. If you open that up, search for "cmd_nextmap", look a few lines down and change
Code:
cmd.sayLoudOrPM(client, '^7Next Map: ^2%s' % mapname)
to
Code:
self.console.say( '^7Next Map: ^2%s' % mapname)
. If you do this, I recommend backing up your admin.py file first. After editing this file, you must restart B3 for the changes to take effect.

Answer to 2):

If you are looking to hide the commands you are executing from the rest of the server, you can PM them to yourself in Quake based games. To do so, type /tell <your name or client number> !command.
Logged
Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #4 on: August 13, 2011, 07:46:51 AM »

Correct me if i'm wrong but if i remember right the default !nextmap cmd from admin plugin does not print the correct map anyway since cod7 servers do a random map shuffle.

Rotationmanager plugin has helped me there.
Logged
Jr. Member
**
OS: Windows
Type: --No B3 installed--
Gameservers: CoD7
Posts: 36
Offline Offline
WWW
« Reply #5 on: August 13, 2011, 08:55:12 AM »

Hey,

thanks for all your answers.

To 1) I have installed the B3 with the windowsinstaller. Unfortunately i dont't see to the folder "plugins" how Leito it called to me. How can i edit the "admin.py" with a windows-installed version?

To 2) There was a other tool we operated in the past on our servers. Our players are accustomed, that they can type the commands in public- and teamchat. I find it better too, because there is less spam in the public chat. Can i change it any way?

Greeting and thanks a lot,

Ma$H
_____________________
Gamers - Extreme | www.g3x-clan.de
Logged

Gamers - Extreme | www.g3x-clan.de
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #6 on: August 13, 2011, 10:05:10 AM »

+1 get the commands working from teamchat too...
i think it should not matter where we type the commands... they should be recognized everywhere...

also i cant get the private commands with "tell #" working on my cod4 servers...  Cry
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #7 on: August 15, 2011, 05:39:16 AM »


also i cant get the private commands with "tell #" working on my cod4 servers...  Cry

There is no private function in CoD4. Issue with the game, not the bot.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #8 on: August 15, 2011, 07:12:08 AM »

To 1) I have installed the B3 with the windowsinstaller. Unfortunately i dont't see to the folder "plugins" how Leito it called to me. How can i edit the "admin.py" with a windows-installed version?

Unfortunately there is no way to edit the files in the compiled version, you would have to install one of the other versions in order to do so.
Logged
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #9 on: August 15, 2011, 10:19:46 AM »

There is no private function in CoD4. Issue with the game, not the bot.
only the server itself or a rcon tool can use the tell command...
but if b3 can use tell with rcon why cant i use it with /rcon tell # too?
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #10 on: August 15, 2011, 11:01:06 AM »

only the server itself or a rcon tool can use the tell command...
but if b3 can use tell with rcon why cant i use it with /rcon tell # too?

Which RCON tool can use rcon tell in CoD4?
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: --No B3 installed--
Gameservers: CoD7
Posts: 36
Offline Offline
WWW
« Reply #11 on: January 12, 2012, 12:36:50 AM »

Greetings mash and welcome to the forums.
2. No, currently it only takes commands from public chat.  You could alter it to take team chat commands, but why would you want to do that?

Hello,

which files i have to change, that the commands work also in the teamsay-chat?

Is that a big effort?


Greetings

Ma$H
Logged

Gamers - Extreme | www.g3x-clan.de
Jr. Member
**
OS: Windows
Type: --No B3 installed--
Gameservers: CoD7
Posts: 36
Offline Offline
WWW
« Reply #12 on: February 04, 2012, 07:07:17 AM »

Hello,

which files i have to change, that the commands work also in the teamsay-chat?

Is that a big effort?


Greetings

Ma$H

Push Smiley


Greetings,

Ma$H
« Last Edit: February 04, 2012, 07:09:24 AM by mash » Logged

Gamers - Extreme | www.g3x-clan.de
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #13 on: February 04, 2012, 11:39:11 AM »

It is the admin plugin that recognizes commands of the chat.

Look at the admin.py file (in b3/plugins directory). Search for
Code: python
        self.registerEvent(self.console.getEventID('EVT_CLIENT_SAY'))
       self.registerEvent(self.console.getEventID('EVT_CLIENT_PRIVATE_SAY'))
replace with :
Code: python
        self.registerEvent(self.console.getEventID('EVT_CLIENT_SAY'))
       self.registerEvent(self.console.getEventID('EVT_CLIENT_TEAM_SAY'))
       self.registerEvent(self.console.getEventID('EVT_CLIENT_PRIVATE_SAY'))

and search for
Code: python
    def handle(self, event):
       if event.type == self.console.getEventID('EVT_CLIENT_SAY'):
           self.OnSay(event)
replace with
Code: python
    def handle(self, event):
       if event.type in (self.console.getEventID('EVT_CLIENT_SAY'), self.console.getEventID('EVT_CLIENT_TEAM_SAY')):
           self.OnSay(event)

that should do the trick
Logged

Jr. Member
**
OS: Windows
Type: --No B3 installed--
Gameservers: CoD7
Posts: 36
Offline Offline
WWW
« Reply #14 on: February 07, 2012, 10:13:58 AM »

Thank you very much. Works fine Wink


Greetings,

Ma$H
Logged

Gamers - Extreme | www.g3x-clan.de
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal