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)Instant !kick, !ban !tempban !permban doesn't work
Pages: [1] 2   Go Down
  Print  
Author Topic: Instant !kick, !ban !tempban !permban doesn't work  (Read 2410 times) Bookmark and Share
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 104
Offline Offline
WWW
« on: January 17, 2010, 03:18:21 PM »

Hi,
If I use the following command's like:
Quote
!kick, !ban !tempban !permban

B3 syays that the player is kicked, banned BUT the player keep in the server, but only if the map changed the player will be kicked/banned.

Why???

I use this plugins:
Code:
 
    <plugin name="spamcontrol" priority="1" config="@b3/conf/plugin_spamcontrol.xml"/>
    <plugin name="admin" priority="2" config="@b3/conf/plugin_admin.xml"/>
    <plugin name="stats" priority="3" config="@b3/conf/plugin_stats.xml"/>
    <plugin name="pingwatch" priority="4" config="@b3/conf/plugin_pingwatch.xml"/>
    <plugin name="adv" priority="5" config="@b3/conf/plugin_adv.xml"/>
    <plugin name="status" priority="6" config="@b3/conf/plugin_status.xml"/>
    <plugin name="antinoob" priority="7" config="@b3/extplugins/conf/plugin_antinoob.xml"/>
    <plugin name="welcome" priority="8" config="@b3/conf/plugin_welcome.xml"/>
    <plugin name="publist" priority="9" config="@b3/conf/plugin_publist.xml"/>
     <plugin name="voting" priority="10" config="@b3/conf/voting.xml"/>

AND the strang thing is that it worked good before, but now not anymore :S help me please...

Kind regards,
Melroy vd Berg
Logged

JoinMyServer.com
Call of Duty 4 Game Servers

Sr. Member
****
OS: Windows
Type: Gameserver Rental Co.
Gameservers: CoD4
Posts: 182
Offline Offline
« Reply #1 on: January 17, 2010, 03:38:33 PM »

IS your Mysql connection ok? Make sure that works as well as make sure in your configof your gameserver this setting is this way:

g_logsync 2
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #2 on: January 17, 2010, 05:26:39 PM »

the b3.log file is a good place to look at to understand what goes wrong
Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 104
Offline Offline
WWW
« Reply #3 on: January 18, 2010, 11:07:56 AM »

Ok thank you I read to read the log file (in debug mode).

@dakotaboul123
Yes My database connection is just fine, also my log settings in-game or the path to the log file Wink
Very thing worked before just normal  Huh
No idea what I changed so far
Logged

JoinMyServer.com
Call of Duty 4 Game Servers
Sr. Member
****
OS: Windows
Type: Gameserver Rental Co.
Gameservers: CoD4
Posts: 182
Offline Offline
« Reply #4 on: January 18, 2010, 11:14:17 AM »

OMFG! Same thing is happening to me to and its really frusting me right now.I cant tell you how much >Tongue

Who's your Web hosting provider?
Logged

Sr. Member
****
OS: Windows
Type: Gameserver Rental Co.
Gameservers: CoD4
Posts: 182
Offline Offline
« Reply #5 on: January 18, 2010, 11:16:47 AM »

Sorry for the double post but are you using the standalone version or the python?
Logged

Sr. Member
****
OS: Windows
Type: Gameserver Rental Co.
Gameservers: CoD4
Posts: 182
Offline Offline
« Reply #6 on: January 18, 2010, 07:50:21 PM »

Ok Make sure your web hosting account doesn't have your server ips blocked mine did and i had them unblocked on remote sql and they had em blocked god knows where...
Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 104
Offline Offline
WWW
« Reply #7 on: January 20, 2010, 01:22:10 PM »

I don't think its a SQL problem. Because I can use other commands for example !admins, !lookup or !say. Both commands are working OK. However for example not !kick. Besides that I can !kick people when I run B3 for just 20 seconds but NOT when I run B3 for about 10 minutes.
But just for be sure I added the server IP to "Access Hosts" of the database.

I got a log file, 1 logfile named b3_nobug.txt which I used !kick without any problems and b3_bug.txt this log file the bug occurred.

Hint: try to search for setClientPenalty.

First the b3_bug.txt Log in Debug Mode (THE BUG, you will notice that I try to kick @222 twice without success)
Second the b3_nobug.txt Log in Verbose Mode (NO BUG discovered, functional normally)

For clarity, I tried in b3_nobug.txt kick @2501 and in the other kick @222...

Look at the attachments.

Ps.
Yes i'm using the python script. And yes everything worked normally for about 4 months.

Already thanks for find out what the problem is  Kiss

[attachment deleted by maintenance - older than 60 days]
« Last Edit: January 20, 2010, 01:35:46 PM by danger89 » Logged

JoinMyServer.com
Call of Duty 4 Game Servers
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #8 on: January 20, 2010, 02:04:11 PM »

Can you check into the penalty table if the kick has been saved into database (despite the fact the player was not kicked)

Also can you reproduce to bug with log level set to 9
Code:
<set name="log_level">9</set>
so we can see what's happening with RCON commands

Also provide your full b3.xml (remove passwords)
Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 104
Offline Offline
WWW
« Reply #9 on: January 24, 2010, 05:52:58 AM »

Log file within the bug (b3_3.log.txt) running at log level 9 & settings xml file (b3_3.xml.txt), look at my attachments...

Ps.
I try to kick Nitro.
And most of the time the kick will be successful after I changed the map or automatic maprotate.

[attachment deleted by maintenance - older than 60 days]
« Last Edit: January 24, 2010, 05:57:20 AM by danger89 » Logged

JoinMyServer.com
Call of Duty 4 Game Servers
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: January 24, 2010, 07:47:54 AM »

well, we can only provide support for B3 v1.2.1...
If you modified the bot code we cannot debug things in your code
Logged

Echelon v2. Dev.
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 114
Offline Offline
WWW
Support Specialty: Echelon v.2
« Reply #11 on: January 24, 2010, 07:48:22 AM »

You say they are getting banned t the map change. B3 reloads the database at the map change. This shows that the Ban/penalty is making it into the DB all right.

Now how the banning works is you type in !ban Eire rule1 or what not. B3 will do things to ban the user. B3 will add a record of the Ban to the DB, which it seems your computer is doing. The other thing b3 does is it sends an rcon command to remove the user from the server. The RCON command is what gets them off the server, not a DB record.

Please look at line 20 of your b3.xml.
Code:
<set name="punkbuster">off</set>
What this line is about is whether or not B3 has access to PB on your game server.
Because this is set to off B3 will not run the command that will remove them from the server. Thus the player will not be removed until map change when the ban added to the DB gets kicked in. So you need to make sure your RCON access is correct and you need to set line 20 to read "on". Restart B3 to make sure this change takes affect. Once you have done that B3 should remove players from the server before map change.


EDIT: also on line 48 you will need to uncomment the PB plugin I think. (I'm not sure exactly whats in there but if it doesn't work with it commented you will need to uncomment it.)
« Last Edit: January 24, 2010, 07:50:45 AM by eire.32 » Logged

Eire.32
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #12 on: January 24, 2010, 07:50:56 AM »

Quote
100124 08:37:13   DEBUG   AdminPlugin: Handle command !kick @2445
100124 08:37:13   DEBUG   Storage: getClientsMatching {'id': '2445'}
100124 08:37:13   VERBOSE   RCON sending (127.0.0.1:28961) clientkick None
100124 08:37:14   DEBUG   Storage: setClientPenalty data {'time_edit': 1264340234, 'keyword': '', 'type': 'Kick', 'admin_id': 2, 'reason': '', 'inactive': 0, 'data': '', 'client_id': 2445, 'time_add': 1264340234, 'time_expire': 0}
100124 08:37:14   VERBOSE   RCON sending (127.0.0.1:28961) say ^0(^1Admin^0)^7: *FiSt- Nitro!^7^7 was kicked by Dangerous_I^7^7

for some reason the slot number for that guy was not found
on your next test, use the command !list
then kick with : !kick nitro
« Last Edit: January 24, 2010, 07:54:07 AM by Courgette » Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 104
Offline Offline
WWW
« Reply #13 on: January 24, 2010, 02:19:46 PM »

@Courgette
It's just version 1.2.1, but I maked an other version control for my self. In theory it's just the same  Wink

@eire.32
I don't run punkbuster at the server, so I don't want to enable it. My own opinion is that I can decide whether punkbuster is on or off.
Reason is very simple, I got PB framedrops when I turn it on (no I tried alot to fix it) running CoD4.

@Courgette (next message)
Quote
VERBOSE   RCON sending (127.0.0.1:28961) clientkick None

I think this could be the problem!  Shocked
Ok, I will try to kick using !list insteed of !lookup <playername> and see if that make any difference.
It could be that B3 'forgot' the playerID when B3 need to kick/ban/etc. the player using rcon.
« Last Edit: January 24, 2010, 02:21:18 PM by danger89 » Logged

JoinMyServer.com
Call of Duty 4 Game Servers
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #14 on: January 25, 2010, 12:21:59 AM »

@<id> represent the id of a player in database.
This is useful to ban a player after he left the game. You use !lookup to get his database id and ban with !ban @<id>

Now when you kick a player, this player (obviously) has to be in the game. Then why bother using !lookup and use its database id when you can just type !kick <the player name> ?

I made no test, but I suspect that using the database id will get back the player info from database (and from database only). The slot num used by a player is not saved in database (and that would be stupid anyway). Hence the bot seems unable to kick using a database id...
Logged

Tags:
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal