Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Duel plugin  (Read 15734 times)

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: Duel plugin
« Reply #15 on: February 17, 2011, 02:33:01 PM »
b3.log:
Quote
110217 21:26:34 CONSOLE 11:48 ClientDisconnect: 0
110217 21:26:34 VERBOSE Queueing event Client Disconnect 0
110217 21:26:34 VERBOSE Parsing Event: Client Disconnect: PoweradminurtPlugin
110217 21:26:34 VERBOSE Parsing Event: Client Disconnect: TkPlugin
110217 21:26:34 VERBOSE Parsing Event: Client Disconnect: CtimePlugin
110217 21:26:34 DEBUG   CtimePlugin: CTIME LEFT:
110217 21:26:34 DEBUG   CtimePlugin: CTIME LEFT: Player 0 var not set!
110217 21:26:34 VERBOSE Parsing Event: Client Disconnect: DuelPlugin
110217 21:26:34 DEBUG   DuelPlugin: client disconnecting : None
110217 21:26:34 ERROR   handler DuelPlugin could not handle event Client Disconnect: AttributeError: 'NoneType' object has no attribute 'var' [('/home/b34/b3/parser.py', 874, 'handleEvents', 'hfunc.parseEvent(event)'), ('/home/b34/b3/plugin.py', 157, 'parseEvent', 'self.onEvent(event)'), ('/home/b34/b3/extplugins/duel.py', 63, 'onEvent', 'self.onDisconnect(event)'), ('/home/b34/b3/extplugins/duel.py', 75, 'onDisconnect', "duels = event.client.var(self, 'duelling', {}).value")]
110217 21:26:34 VERBOSE Parsing Event: Client Disconnect: ExtraadminPlugin
110217 21:26:34 VERBOSE ExtraadminPlugin: Deconnection : 0
b3.xml
Code: [Select]
<plugin name="duel"/>

« Last Edit: February 17, 2011, 02:35:09 PM by ryry46d9 »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: Duel plugin
« Reply #16 on: February 17, 2011, 02:36:33 PM »
This is a known issue which (to my knowledge) does not prevent this plugin to function as expected. If you see any issue related to this, please describe it precisely so I can reproduce your situation

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: Duel plugin
« Reply #17 on: February 18, 2011, 08:02:23 AM »
The plug-in work's.
A few users enjoy it.
I just hate seeing "ERROR" in the log files  :P and thought I would post it.
In case you had a fix.
 

Offline lolasaurous

  • Jr. Member
  • **
  • Posts: 22
Re: Duel plugin
« Reply #18 on: July 16, 2011, 03:24:29 PM »
Sorry for necromancing this thread. Not sure if it's against the rules but I figured I'd let you know that I installed this on my Homefront server and didn't have any one to test it with at the time but the bot recognized the command and looks like it will work. I can see this being alot of fun on our server.

Having tested I can confirm it works perfectly as described.
« Last Edit: July 16, 2011, 07:16:10 PM by lolasaurous »

Offline Bazza

  • Jr. Member
  • **
  • Posts: 10
Re: Duel plugin
« Reply #19 on: August 07, 2011, 12:27:59 PM »
Awesome plugin mate, not the most serious plugin out there but its alot of fun. Whereabouts can I change it so you just type !d instead (Lots of people misspelling duel....dual)?

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duel plugin
« Reply #20 on: August 08, 2011, 12:23:03 AM »
I modded the .py - do you want to test?
backup, replace duel.py, delete the duel.pyo and see if it works?)

[attachment deleted by maintenance]
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Bazza

  • Jr. Member
  • **
  • Posts: 10
Re: Duel plugin
« Reply #21 on: August 08, 2011, 09:27:29 AM »
Works great! Thanks very much....Tried to edit it my self last night but every time I typed the writing would change colour....I am still so nub at this :(

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duel plugin
« Reply #22 on: August 08, 2011, 02:33:10 PM »
NP. I was considering making a .xml file for the plugin so it would be easy to set a aliases and levels for it, but it is not my plugin to do so.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: Duel plugin
« Reply #23 on: August 08, 2011, 04:23:00 PM »
feel free to fork the project on github and submit pull requests  ;)
Any help is welcome

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duel plugin
« Reply #24 on: August 08, 2011, 05:21:27 PM »
Thanks. I will set that up now...
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Bazza

  • Jr. Member
  • **
  • Posts: 10
Re: Duel plugin
« Reply #25 on: August 15, 2011, 10:27:08 PM »
One thing we have noticed....When a player duels, then leaves the server the duel keeps going.....And then when you try to cancel the duel it say that it cannot find the player.

Offline Oaker

  • Newbie
  • *
  • Posts: 8
Re: Duel plugin
« Reply #26 on: August 04, 2012, 06:58:29 PM »
Great plugin...

Is there a way to switch the score PM's to display globally?  I looked at the duel.py but could not see a way to mod it... not that I'm literate there.

Thanks in advance... ;D

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: Duel plugin
« Reply #27 on: August 04, 2012, 07:53:13 PM »
in a plugin, 'client.message("blah")' will send the text "blah" to the player represented by the 'client' variable.

while 'self.console.say("blah")' will send the text "blah" to all players

Offline Netsky

  • Full Member
  • ***
  • Posts: 79
    • Netsky Server
Re: Duel plugin
« Reply #28 on: March 16, 2013, 01:26:53 PM »
Any update on a .xml? I have checked MordyT's GitHub but there is no .xml
I would like to change the lvl to use it.

Thanks.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Duel plugin
« Reply #29 on: March 18, 2013, 03:13:24 PM »
Any update on a .xml? I have checked MordyT's GitHub but there is no .xml
I would like to change the lvl to use it.

Thanks.

Quick and dirty is to open up the .py and search for the level and change it there. Delete pyo before restarting b3.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

 


Rate this page +1 at Google Search