March 21, 2010, 07:10:59 AM
Home
Forums
Help
Search
Tags
Documentation
GitHub Wiki
Cheatsheet
Downloads
Source Code
Stable dev repo
XLR8or's dev repo
Login
Register
Activation Mail
You are here:
Big Brother Bot Forum
Add-Ons
Plugins
Releases!
TopKiller plugin 1.0.4
Pages: [
1
]
2
3
...
5
Go Down
« previous
next »
Print
Author
Topic: TopKiller plugin 1.0.4 (Read 8776 times)
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
TopKiller plugin 1.0.4
«
on:
November 18, 2008, 02:37:35 PM »
Hi,
I would like to share with you my new plugin called TopKiller. What it does? It counts the kills made by each player and show TOPKILLER player at the end of each round. Typical info showed to all player looks like:
Top killer:
NICK
with
NUM_OF_FRAGS
kills and damage:
DAMAGE_GIVEN !
One thing. Because of that there is missing ROUND_END event (which is needed to trigger console message 'TopKiller player'), I've created it by myself. At the q3a parser I've added the function:
Code:
def OnShutdowngame(self, action, data, match=None):
return b3.events.Event(b3.events.EVT_GAME_ROUND_END, data)
The plugin in fact is not new
I've created it in the middle of September (meanwhile questions raised here:
http://www.bigbrotherbot.com/forums/index.php?topic=474.0
). Of course I'm planning to made some cleaning in the code in the future (I hope very soon), but the plugin with the correction which I made is working fine last 2 months, and makes a player happy when his Nick is displayed as TOP
HF
Download (v1.0.4):
>>> Download <<<
«
Last Edit: June 03, 2009, 02:02:57 PM by Anubis
»
Logged
http://g4g.pl/
flinkaflenkaflrsk
B3 Contributor
Sr. Member
Posts: 239
Offline
Re: TopKiller plugin
«
Reply #1 on:
November 18, 2008, 03:25:29 PM »
Hey Anu
Wanted to look at it but when i click the link I get
http://cba.pl/cba.png
Logged
Deathslap
Registered plugin
Mapcycle plugin
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: TopKiller plugin
«
Reply #2 on:
November 18, 2008, 03:32:16 PM »
arghhh...
so you need to go to the
http://anoobis.cba.pl/
and then download... I didn't know that hotlinks does not working
Sorry.
I've also uploaded to the another server:
http://anoobis.republika.pl/b3/topkiller/1.0.1/topkiller.zip
regards
//link at the first post fixed
ps. I think I need to find another free hosting supporting hotlinks. <angry>
«
Last Edit: November 18, 2008, 11:52:18 PM by Anubis
»
Logged
http://g4g.pl/
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: TopKiller plugin
«
Reply #3 on:
November 19, 2008, 03:59:10 PM »
Still no comments
Does it work for you? Do you like it? Do you hate it? Anything
Logged
http://g4g.pl/
flinkaflenkaflrsk
B3 Contributor
Sr. Member
Posts: 239
Offline
Re: TopKiller plugin
«
Reply #4 on:
November 20, 2008, 01:46:49 AM »
sorry don't have time will probably look at it on saturday
Logged
Deathslap
Registered plugin
Mapcycle plugin
X
Jr. Member
Posts: 43
Offline
Re: TopKiller plugin
«
Reply #5 on:
November 20, 2008, 05:41:56 AM »
well i installed it on my cod4 sd server and nothing happens.
i put the py in plugins, i put the xml in conf folder, added the startup line in B3.xmln and added the code into my q3a parser and nothing happens. the plugin starts up in log with no errors but nothing shows.
maybe i put the code in wrong place in parser file?
Logged
flinkaflenkaflrsk
B3 Contributor
Sr. Member
Posts: 239
Offline
Re: TopKiller plugin
«
Reply #6 on:
November 20, 2008, 08:44:54 AM »
You running a cod4 server so why would you add the code to the q3a parser (which is for quake)
Logged
Deathslap
Registered plugin
Mapcycle plugin
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: TopKiller plugin
«
Reply #7 on:
November 20, 2008, 09:40:12 AM »
It's quite simple:
COD4.py:
Code:
import b3.parsers.cod2
import b3.parsers.q3a
import re
inheritance
In fact it does not really matter where it's placed between the functions. I've got it just before "OnClientdisconnect" function.
Code:
def OnShutdowngame(self, action, data, match=None):
return b3.events.Event(b3.events.EVT_GAME_ROUND_END, data)
def OnClientdisconnect(self, action, data, match=None):
client = self.getClient(match)
if client: client.disconnect()
return None
Are there any entries at your log file related to this plugin? Like:
Quote
081112 21:56:13 CONSOLE 28273:48 ShutdownGame:
081112 21:56:13 VERBOSE Queueing event Game Round End
081112 21:56:13 VERBOSE Parsing Event: Game Round End: TopkillerPlugin
081112 21:56:13 DEBUG TopkillerPlugin: Map End: Showing message
081112 21:56:13 VERBOSE RCON sending (
«
Last Edit: November 20, 2008, 11:04:10 AM by Anubis
»
Logged
http://g4g.pl/
Bakes
Dev. Team
Hero Member
Posts: 1039
Offline
Don't contact me on Xfire! I will just reject you!
Re: TopKiller plugin
«
Reply #8 on:
November 20, 2008, 10:11:18 AM »
Yeah, the fact is, cod4 basically is an improved quake 3 arena. Just like the whole CoD series and Urt.
This also makes the plugin compatible with every game supported with b3, apart from perhaps world of padman.
Logged
[
Openbanter
|
Scrim (cod4)
|
BanTweeter
|
FTPyTail
|
ForumLink
]
X
Jr. Member
Posts: 43
Offline
Re: TopKiller plugin
«
Reply #9 on:
November 20, 2008, 04:08:03 PM »
ill check here in about 2 hrs when i get home from work and post the log
Logged
X
Jr. Member
Posts: 43
Offline
Re: TopKiller plugin
«
Reply #10 on:
November 20, 2008, 05:39:27 PM »
Code:
'group_bits': 1, 'ip': '72.49.89.133', 'auto_login': 1, 'greeting': '', 'pbid': 'e20aaa0cb3b3bb390eee903ac8384770', 'connections': 31, 'mask_level': 0, 'guid': 'e20aaa0cb3b3bb390eee903ac8384770', 'id': 387}
081120 16:02:09
DEBUG
Client Authorized: [20] PiMPaLiCOus - e20aaa0cb3b3bb390eee903ac8384770
081120 16:02:15
CONSOLE
12505:22 K;1124913bdcc3cec7fe6898406536f313;9;;-MDK-DrJack;d8e9c169b422aa1f69564dc46af9c38e;24;;BulletNhead;m16_acog_mp;41;MOD_HEAD_SHOT;head
081120 16:02:15
DEBUG
TopkillerPlugin: Kill: BulletNhead count: 11 damage: 41 total damage: 503
081120 16:02:17
CONSOLE
12505:24 say;947152828fde0f9fe1527112b67c8a30;7;fosserfavre3;omfg
081120 16:02:17
DEBUG
AdminPlugin: OnSay handle 5:"omfg"
081120 16:02:17
DEBUG
ChatloggerPlugin: ALL, 382, fosserfavre3, omfg
081120 16:02:17
DEBUG
ChatloggerPlugin: query: INSERT INTO chatlog (msg_time, msg_type, client_id, client_name, client_team, msg) VALUES (1227218537, "ALL", 382, "fosserfavre3", -1, "omfg")
081120 16:02:17
DEBUG
ChatloggerPlugin: rowcount: 1, id:88186
081120 16:02:20
CONSOLE
12505:27 say;1124913bdcc3cec7fe6898406536f313;9;-MDK-DrJack;damn
081120 16:02:20
DEBUG
AdminPlugin: OnSay handle 5:"damn"
081120 16:02:20
DEBUG
ChatloggerPlugin: ALL, 1619, -MDK-DrJack, damn
081120 16:02:20
DEBUG
ChatloggerPlugin: query: INSERT INTO chatlog (msg_time, msg_type, client_id, client_name, client_team, msg) VALUES (1227218540, "ALL", 1619, "-MDK-DrJack", -1, "damn")
081120 16:02:20
DEBUG
ChatloggerPlugin: rowcount: 1, id:88187
081120 16:02:21
CONSOLE
12505:28 ShutdownGame:
081120 16:02:21
CONSOLE
12505:28 ------------------------------------------------------------
081120 16:02:21
CONSOLE
12505:28 ------------------------------------------------------------
081120 16:02:21
CONSOLE
12505:28 InitGame: \_Admin\IcE\_B3\www.bigbrotherbot.com\_Email\admin@fallenclan.com\_Location\US\_Website\http://www.fallenclan.com\g_compassShowEnemies\0\g_gametype\sd\gamename\Call of Duty 4\mapname\mp_backlot\protocol\6\shortversion\1.7\sv_allowAnonymous\0\sv_disableClientConsole\0\sv_floodprotect\1\sv_hostname\^1|^7FaLLeN^1| [HC] S&D ^2-STATS- B3\sv_maxclients\30\sv_maxPing\350\sv_maxRate\25000\sv_minPing\0\sv_privateClients\6\sv_punkbuster\1\sv_pure\1\sv_voice\1\ui_maxclients\40
081120 16:02:21
CONSOLE
12505:28 J;b79135ef64c9d4e9a53335efcb6a41e4;29;N()MA|)
081120 16:02:21
DEBUG
XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0x00E8C310>, Target None, Data None
081120 16:02:21
CONSOLE
12505:28 J;4ed7885beed6a5a2b23c1c73ecb5bc8b;27;|ALPHA| Nexus
081120 16:02:21
DEBUG
XlrstatsPlugin: xlrstats.dumpEvent -- Type 21, Client <b3.clients.Client object at 0x00E98D70>, Target None, Data None
Logged
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: TopKiller plugin
«
Reply #11 on:
November 21, 2008, 06:44:34 AM »
Thanks...
Well...
Round END event is not triggered at all. plugin counts the kills correctly:
Quote
TopkillerPlugin: Kill: BulletNhead count: 11 damage: 41 total damage: 503
So it's working. There is only thing with parser. OnShutdown is not triggered here.
Could you double check if the q3a is really modified? Maybe try to delete *.pyc file to force recompilation.
Logged
http://g4g.pl/
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: TopKiller plugin
«
Reply #12 on:
November 21, 2008, 09:10:58 AM »
Just wondering... at my environment it's working with "OnShutdowngame" (lower case "g"), however at URT parsert I can see upper case "G' "OnShutdownGame". Please try to change it. Maybe it helps.
//edit Baad idea... It's only working with "OnShutdowngame"
Quote
081121 22:55:44 DEBUG Register Event: Client Disconnect: TopkillerPlugin
081121 22:55:44 DEBUG Register Event: Game Exit: TopkillerPlugin
081121 22:55:44 BOT Start reading...
081121 22:56:27 CONSOLE 10112:39 ShutdownGame:
081121 22:56:27 DEBUG TopkillerPlugin: Map End: Showing message
I've tried to put it on the another server. And it works. Just restart the bot after q3a.py changes. There is no magic, it should work.
ps. What is the COD4 parser version?
«
Last Edit: November 21, 2008, 02:01:41 PM by Anubis
»
Logged
http://g4g.pl/
flinkaflenkaflrsk
B3 Contributor
Sr. Member
Posts: 239
Offline
Re: TopKiller plugin
«
Reply #13 on:
November 22, 2008, 06:07:45 AM »
Hey Anubis,
I just downloaded your .zip and opened it and noticed that everything is an B3 folder where your .py is under plugins and the config file is under extplugins directory. Maybe you should put the .py under extplugins and the conf file under /extplugins/conf/ like the rest of the plugins? I would also add a Readme.txt file since we have a lot of people who don't really know the structure of B3 this will give them some instructions how to deal with the plugin and some background information like version. I think this will reduce the number of support questions remarkably
Logged
Deathslap
Registered plugin
Mapcycle plugin
Anubis
Sr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers:
COD4
Posts: 229
Offline
Re: TopKiller plugin
«
Reply #14 on:
November 22, 2008, 02:04:20 PM »
Hello,
yeah.. good point. I'll do this.
Anyway... could you or someone else who is familiar with B3 and knows how to manage a problem with it, check my plugin whether it's working not on our machine only but on the others as well? I would be really gratefull.
Logged
http://g4g.pl/
Tags:
Pages: [
1
]
2
3
...
5
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Servers
=> News
=> General Discussion
-----------------------------
Support Forums
-----------------------------
=> Installation Support
=> General Usage Support
=> Game specific Support
===> CoD2
===> CoD4
===> CoD5
===> UrT
===> Other games
-----------------------------
Add-Ons
-----------------------------
=> Installers
=> Plugins
===> Releases!
=> XLR
===> XLR Releases!
=> Configurations
-----------------------------
Community Developers
-----------------------------
=> Plugin Developers
=> The Code Bin