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: PowerAdmin MoH  (Read 68117 times)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
PowerAdmin MoH
« on: October 24, 2010, 12:31:04 AM »
I started the PowerAdminMoH plugin and I need enthusiast admins to help with tests

Use this topic for bug report and feedbacks. Please provide as much details as you can including : the plugin version (see at the top of poweradminmoh.py), the plugin config and your b3.log

Download


Command
Description
Status
Stability
!pb_sv_command <punkbuster command>Execute a punkbuster commanddoneOK
!runnextroundSwitch to next round, without ending currentdoneOK (v0.6)
!restartroundRestart current rounddoneOK (v0.6)
!kill <player>Kill a player without scoring effectsdoneOK
!teamsMake the teams balanceddoneOK (v0.5)
!teambalance <on/off>Set teambalancer on/offdoneOK (v0.5)
!changeteam [<name>]change a player to the other teamdoneOK (v0.5)
!match <on/off> and !readySet server match mode on/offdoneneed feedbacks
!swap <player A> <player B>will swap players (they must be in different teams obviously)since v0.7OK (v0.7)
!scrambleplan team scramble at next rounddone in 0.9OK (v0.12)
!scramblemodescramble teams randomly or by player scoresdone in 0.10need feedbacks
!autoscramblescramble teams automatically at each round or mapdone in 0.10OK (v0.12)
autobalance immunitythe bot won't balance player above a given B3 level/group (see maxlevel in config)done in v0.13need feedbacks
!spectforce a player to spectate modedone in v1.0need feedbacks
!reserveslotreserve a slot for a given playerdone in v1.0need feedbacks
!unreserveslotremove player from reserved slot listdone in v1.0need feedbacks
!setnextmapchoose the next map to be playeddone in v1.0need feedbacks


« Last Edit: November 21, 2012, 11:52:44 PM by Courgette »

Offline foxinabox

  • Sr. Member
  • ****
  • Posts: 157
    • Clan ATRS (Atreides)
Re: PowerAdmin MoH
« Reply #1 on: October 24, 2010, 01:33:32 AM »
I get this error when loading.

101023 19:31:49   BOT       Loading Plugin #6 poweradminmoh [C:\Program Files (x86)\BigBrotherBot_1.4.0 TA\extplugins\conf\plugin_poweradminmoh.xml]
101023 19:31:49   INFO   Could not load built in plugin poweradminmoh (No module named poweradminmoh)
101023 19:31:49   INFO   trying external plugin directory : C:\Program Files (x86)\BigBrotherBot_1.4.0 TA\extplugins
101023 19:31:49   CRITICAL   Error loading plugin: No module named connection
Traceback (most recent call last):
  File "b3\parser.pyo", line 526, in loadPlugins
  File "b3\parser.pyo", line 626, in pluginImport
  File "C:\Program Files (x86)\BigBrotherBot_1.4.0 TA\extplugins\poweradminmoh.py", line 33, in <module>
ImportError: No module named connection
xfire: foxinabox85
[email protected]
www.clanatrs.com

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: PowerAdmin MoH
« Reply #2 on: October 24, 2010, 03:06:06 AM »
thanks for the report. It should go fine with B3 v1.4 now.
See download link in first post.

Also I wonder if you guys really want the autobalancer from this plugin as the game already has one built in.

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: PowerAdmin MoH
« Reply #3 on: October 24, 2010, 03:50:29 AM »
thanks for the report. It should go fine with B3 v1.4 now.
See download link in first post.

Also I wonder if you guys really want the autobalancer from this plugin as the game already has one built in.

As far as I can tell, the autobalancer in MOH doesn't work, so it would be nice to have.

I will add this to the available plugins at PHS for my customers, and add it to my own MOH server, and see how it works.

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: PowerAdmin MoH
« Reply #4 on: October 24, 2010, 04:28:05 AM »
When I use the !runnextround or !restartround commands, I get this: "There was an error processing your command"

Offline foxinabox

  • Sr. Member
  • ****
  • Posts: 157
    • Clan ATRS (Atreides)
Re: PowerAdmin MoH
« Reply #5 on: October 24, 2010, 05:22:34 AM »
Here's my rundown.

Works
!kill
!match - Appears to work, I couldn't get everyone to type !ready, will fully test it tomorrow.

Almost
!teambalance - The command will turn it on/off, however at one point we had 4 more players on one team over the other for about 10 minutes, and there was no team balance.

Doesn't
!teams - error > "There was an error processing your command" **NOTE** The command is mispelled in the .xml as 'team', The actual command is 'teams' as coded in the .py
!nextrnd - error > "There was an error processing your command" **NOTE** B3 says forcing next round, but then the process error pops up.
!restartrnd - error > "There was an error processing your command" **NOTE** B3 says forcing restart round, but then the process error pops up.
!changeteam - error > "There was an error processing your command"
!pb_sv_command - error > "There was an error processing your command" Probably because you can't enable the punkbuster plugin on MoH servers?
 
Any chance there could be a !readycheck command for when you want to start a match, but not everyone does !ready, and !readycheck would tell you who has or hasn't done !ready?
« Last Edit: October 24, 2010, 06:57:29 AM by foxinabox »
xfire: foxinabox85
[email protected]
www.clanatrs.com

Offline Darkskys

  • Full Member
  • ***
  • Posts: 79
    • 82nd Infantry Division
Re: PowerAdmin MoH
« Reply #6 on: October 24, 2010, 04:07:50 PM »
Works
!kill
!match

Doesn't Work
!teambalance = turns on and off but the teams do not autobalance and the admin yell doesn't display in the server but i see it in the log.
 101024 07:30:20   DEBUG   getCommand: ('admin.say', '<82ID>: [pm] There was an error processing your command', 'player', 'Darkskys')
 101024 07:30:20   VERBOSE   RCON (1/1) ('admin.yell', '<82ID>: Autobalancing Teams!', '2400', 'all')

!teams = 101024 07:30:20   VERBOSE   RCON (1/1) ('admin.say', '<82ID>: [pm] There was an error processing your command', 'player', 'Darkskys')
 101024 07:30:20   CONSOLE   ['player.onChat', 'Server', '<82ID>: [pm] There was an error processing your command', 'player', 'Darkskys']

!changeteam = 101024 07:33:47   CONSOLE   ['player.onChat', 'Darkskys', '!changeteam kiki', 'all']
101024 07:33:47   VERBOSE   Queueing event Say !changeteam kiki
101024 07:33:47   VERBOSE   Parsing Event: Say: SpamcontrolPlugin
101024 07:33:47   VERBOSE   Parsing Event: Say: AdminPlugin
101024 07:33:47   DEBUG   AdminPlugin: OnSay handle 5:"!changeteam kiki"
101024 07:33:47   DEBUG   AdminPlugin: Handle command !changeteam kiki
101024 07:33:47   DEBUG   getCommand: ('admin.say', '<82ID>: [pm] There was an error processing your command', 'player', 'Darkskys')
101024 07:33:47   ERROR   handler AdminPlugin could not handle event Say: AttributeError: PoweradminmohPlugin instance has no attribute 'parseUserCmd' [('b3\\parser.pyo', 855, 'handleEvents', None), ('b3\\plugin.pyo', 157, 'parseEvent', None), ('b3\\plugin.pyo', 175, 'onEvent', None), ('b3\\plugins\\admin.pyo', 206, 'handle', None), ('b3\\plugins\\admin.pyo', 346, 'OnSay', None), ('b3\\plugins\\admin.pyo', 1941, 'execute', None), ('c:\\program files (x86)\\bigbrotherbot_1.4.0\\extplugins\\poweradminmoh.py', 235, 'cmd_changeteam', None)]
101024 07:33:47   VERBOSE   RCON (1/1) ('admin.say', '<82ID>: [pm] There was an error processing your command', 'player', 'Darkskys')
101024 07:33:47   CONSOLE   ['player.onChat', 'Server', '<82ID>: [pm] There was an error processing your command', 'player', 'Darkskys']

NOT Tried
!runnextround
!restartround
!pb_sv_command

Hope this info helps.
I Really need a autobalance feature.


Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: PowerAdmin MoH
« Reply #7 on: October 24, 2010, 04:21:02 PM »
thanks for the feedbacks. Could you please also attach your b3.log that shows your test ?

Offline foxinabox

  • Sr. Member
  • ****
  • Posts: 157
    • Clan ATRS (Atreides)
Re: PowerAdmin MoH
« Reply #8 on: October 24, 2010, 04:48:54 PM »
Also noticed a few other things I missed from in-game the first time.
-When you issue !teambalance on or off, the response is mispelled. It will respond with either "Teambancer is now enabled" or "Teambancer is now disabled"
-When you try to start a match, and type in !ready....the bot sends you 2 responses of "You are now ready", one is global, the other is a [pm]. I think just the pm would be sufficient.

Hope it helps.
« Last Edit: October 24, 2010, 11:15:20 PM by foxinabox »
xfire: foxinabox85
[email protected]
www.clanatrs.com

Offline Darkskys

  • Full Member
  • ***
  • Posts: 79
    • 82nd Infantry Division
Re: PowerAdmin MoH
« Reply #9 on: October 24, 2010, 04:56:28 PM »
Here you go.

[attachment deleted by admin]

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: PowerAdmin MoH
« Reply #10 on: October 24, 2010, 08:05:23 PM »
thanks for you quick feedbacks and logs.

Any chance there could be a !readycheck command for when you want to start a match, but not everyone does !ready, and !readycheck would tell you who has or hasn't done !ready?
Not needed IMHO as the ppl we are waiting for get their names broadcasted to everyone every 10 seconds

fixes have been made to all that mess :)
See first post the the download link and next wave to tests

Offline foxinabox

  • Sr. Member
  • ****
  • Posts: 157
    • Clan ATRS (Atreides)
Re: PowerAdmin MoH
« Reply #11 on: October 24, 2010, 09:00:35 PM »
Very similar results as first test, except you fixed the spelling corrections of !teambalance response, and added the !kill response for when a player is already dead.
Also got different response when i used the !pb command, but I don't know any pb commands for MoH, or if the commands are all the same as other games, the commands aren't working, was trying to use kick and restart commands.
« Last Edit: October 24, 2010, 11:15:50 PM by foxinabox »
xfire: foxinabox85
[email protected]
www.clanatrs.com

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: PowerAdmin MoH
« Reply #12 on: October 24, 2010, 09:29:43 PM »
« Last Edit: October 25, 2010, 12:31:47 AM by Courgette »

Offline foxinabox

  • Sr. Member
  • ****
  • Posts: 157
    • Clan ATRS (Atreides)
Re: PowerAdmin MoH
« Reply #13 on: October 24, 2010, 09:41:18 PM »
Sure thing, my next response won't be so immediate though, dinner soon.
xfire: foxinabox85
[email protected]
www.clanatrs.com

Offline foxinabox

  • Sr. Member
  • ****
  • Posts: 157
    • Clan ATRS (Atreides)
Re: PowerAdmin MoH
« Reply #14 on: October 24, 2010, 10:16:11 PM »
http://pastebin.com/LnX6MiEx - log

!teams - successfully balanced!!, however my server is too busy atm to test the auto-balance feature, people filling empty slots too quickly.
!changeteam - successful!!


All other commands are same as before.

**edit**
When using !changeteam and server is full, the command will act like it's working, as in it will bring you to the class selection screen, however you will be on the same team. Any chance it can be changed in this instance that it won't attempt to switch the player?
« Last Edit: October 24, 2010, 10:31:37 PM by foxinabox »
xfire: foxinabox85
[email protected]
www.clanatrs.com

 


Rate this page +1 at Google Search

anything