Pages: [1] 2   Go Down
  Print  
Author Topic: PowerAdminCoD7  (Read 4147 times) Bookmark and Share
XLRstats dev.
Dev. Team
*
OS: Linux
Type: Home user
Gameservers: COD5, COD7, BF3
Posts: 947
Offline Offline
WWW
Support Specialty: XLRstats webfront
« on: April 19, 2011, 04:00:19 AM »

Description

This plugin adds some extra functionality to B3 in both ranked and unranked CoD:Blackops servers.

Commands

Ranked servers only:
 !pasetmap <mapname> - Set the next map in rotation

Ranked/Unranked servers:
 !paplaylist - Display current playlist
 !pagetplaylists - Display available playlists
 !pasetplaylist <playlist_number> - Set a playlist
 !paexcludemaps <maps> - Excludes entered maps from rotation. Example: !paexludemaps mp_villa mp_nuked mp_array
 !paversion - Identifies PowerAdminCoD7 version and creator
 !paident [<playername>] - Show the ip and guid of a player
 !paset <cvar> <value> - Set a server cvar to a certain value
 !paget <cvar> - Returns the value of a server cvar
 !pasetdlc <dlc number> <on | off> - Turn given DLC mappack on or off. Example: !pasetdlc 1 off.
 !palistcfg - List available server config files in b3 conf folder
 !paload <configfile.cfg> - Load a server configfile.


Unranked servers only:
 !pafastrestart - Restart current map without reloading it
 !pamaprestart - Restart current map
 !pagametype <gametype> - Change gametype. Example: !gametype tdm

Changelog

- 19.04.2011 - v1.0
    - Initial release
- 02.06.2011 - v1.1
    - DLC2 maps added
- 09.06.2011 - v1.2
    - !pasetmap (!setmap) command now works both with console map names and easy map names as well as console map name without "mp_" at the beginning. (as printed out by !maps command)
    - Added new commands !pasetdlc, !palistcfg and !paload
- 28.07.2011 - v1.3
    - DLC3 maps added

Notes
-----
If you're loading a config file using !paload command, it may take a while to load the complete file depending on the file size. Note that, during the loading process, other B3 commands issued will be queued but they may timeout. Hence it is NOT recommended to load config files in peak server times.

Download
« Last Edit: February 18, 2012, 02:42:04 AM by Freelander » Logged


Beta Testers
*
OS: Windows
Type: Renting Server, no B3
Gameservers: COD4 | COD2 | COD BO (Ranked and Unranked) | MOH 2010
Posts: 129
Offline Offline
« Reply #1 on: April 19, 2011, 06:24:38 AM »

Thanks, this is now running on the [DAD] Servers, we will test it tonight
Logged
Full Member
***
OS: Windows
Type: --No B3 installed--
Posts: 61
Offline Offline
« Reply #2 on: April 19, 2011, 09:33:46 AM »

Good job Freelander!  I'll be testing that in my Ranked server.
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3,Cod2,Cod4,Cod5,Cod6,Cod7
Posts: 257
Offline Offline
WWW
« Reply #3 on: April 26, 2011, 10:44:03 AM »

Hi
i test this on my ranked server but i got an error mp_nuketown is not a stock CoD7 map ??

110426 20:39:38   CONSOLE   140:51 say;9309652;1;[ACF]Silencer;!setmap nuketown
110426 20:39:38   VERBOSE   Queueing event Say !setmap nuketown
110426 20:39:38   VERBOSE   Parsing Event: Say: AdminPlugin
110426 20:39:38   DEBUG   AdminPlugin: OnSay handle 5:"!setmap nuketown"
110426 20:39:38   DEBUG   AdminPlugin: Handle command !setmap nuketown
110426 20:39:38   DEBUG   Poweradmincod7Plugin: Requested map for next round is mp_nuketown
110426 20:39:38   VERBOSE   RCON sending (195.122.135.110:3244) 'tell 1 ^0(^2ACF^0)^7: ^3[pm]^7 mp_nuketown is not a stock CoD7 map, please check your spelling and try again!'
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Posts: 234
Offline Offline
« Reply #4 on: April 26, 2011, 11:00:27 AM »

yeah, well, mp_nuketown is not a map, it tells you the truth.

mp_nuked is the name of the map.
Logged
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3,Cod2,Cod4,Cod5,Cod6,Cod7
Posts: 257
Offline Offline
WWW
« Reply #5 on: April 26, 2011, 11:38:51 AM »

Only the half maps works z.b Radiation, Crisis, Array and Cracked others not
WDM is translate to mp_wdm usw.

class Poweradmincod7Plugin(b3.plugin.Plugin):
    _adminPlugin = None
    _isranked = None
    _issetmap = False
    _isplaylist_enabled = True
    _admin_excluded_maps = None
    _cod7maps = {
                  'mp_array' : 'Array',
                  'mp_cracked' : 'Cracked',
                  'mp_crisis' : 'Crisis',
                  'mp_firingrange' : 'Firing Range',
                  'mp_duga' : 'Grid',
                  'mp_hanoi' : 'Hanoi',
                  'mp_cairo' : 'Havana',
                  'mp_havoc' : 'Jungle',
                  'mp_cosmodrome' : 'Launch',
                  'mp_nuked' : 'Nuketown',
                  'mp_radiation' : 'Radiation',
                  'mp_mountain' : 'Summit',
                  'mp_villa' : 'Villa',
                  'mp_russianbase' : 'WMD',
                  'mp_berlinwall2' : 'Berlin Wall',
                  'mp_discovery' : 'Discovery',
                  'mp_kowloon' : 'Kowloon',
                  'mp_stadium' : 'Stadium'
« Last Edit: April 26, 2011, 11:42:02 AM by Platanos » Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Posts: 234
Offline Offline
« Reply #6 on: April 26, 2011, 11:54:59 AM »

It seems to work with the original names, the translation is only used after the nextmap is set for the ingame message.

Try "nuked" as nextmap, but should be possible to modify this function Smiley
Logged
XLRstats dev.
Dev. Team
*
OS: Linux
Type: Home user
Gameservers: COD5, COD7, BF3
Posts: 947
Offline Offline
WWW
Support Specialty: XLRstats webfront
« Reply #7 on: April 29, 2011, 03:11:08 AM »

You must use console names for map names, otherwise it won't work.
Logged

XLRstats dev.
Dev. Team
*
OS: Linux
Type: Home user
Gameservers: COD5, COD7, BF3
Posts: 947
Offline Offline
WWW
Support Specialty: XLRstats webfront
« Reply #8 on: June 02, 2011, 12:09:49 PM »

v1.1 released. It includes DLC 2 maps. See first post for download link.
Logged

Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD7, BF3
Posts: 72
Offline Offline
« Reply #9 on: June 05, 2011, 03:00:11 PM »

Code:
    def cmd_pasetmap(self, data, client, cmd=None):
        '''\
        <mapname> - Set the next map in rotation
        (You can safely use the command without the 'pa' at the beginning)
        '''
        if not self._isranked:
            client.message('This command is not functional in unranked servers. You can use ^2!map ^7or ^2!maprotate ^7 commands instead.')
            return False

        if not data:
            client.message('missing parameter, try !help pasetmap')
            return False
        else:
            data = data.split(' ')
            mapname = data[0].lower()
            if mapname.startswith('mp_'):
                mapname = mapname
            else:
                mapname = ('mp_%s' % mapname)

Is there any way to have this look at both map name and real map name? so that i can type !pasetmap Hanoi ?

thanks Freelander
Logged



Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #10 on: June 05, 2011, 11:57:10 PM »

This is really a great plugin, especially for unranked servers when playing matches.

If i could wish for an additional feature it would be !paexec. I'd like to be able to store some cfg's in the B3 directory containing a handful of cvars. For example one cfg for competitive mode with cvars according to the esl ruleset, g_password "xxxxx" etc and another cfg for public mode with g_password "", g_gameytpe "gungame", sv_mapRotation "" and others. That would be really great.
Logged
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: BF3,Cod2,Cod4,Cod5,Cod6,Cod7
Posts: 257
Offline Offline
WWW
« Reply #11 on: June 06, 2011, 03:30:26 AM »

hi
it is possible to add a command to the COD7-PA to turn on and off the DLC´s

!pafs on/off    for firststrike
!paes on/off   for escalation

setadmindvar playlist_excludeDlc2 "0"

setadmindvar playlist_excludeDlc3 "0"

MFG
Logged

XLRstats dev.
Dev. Team
*
OS: Linux
Type: Home user
Gameservers: COD5, COD7, BF3
Posts: 947
Offline Offline
WWW
Support Specialty: XLRstats webfront
« Reply #12 on: June 07, 2011, 07:00:12 AM »

This is really a great plugin, especially for unranked servers when playing matches.

If i could wish for an additional feature it would be !paexec. I'd like to be able to store some cfg's in the B3 directory containing a handful of cvars. For example one cfg for competitive mode with cvars according to the esl ruleset, g_password "xxxxx" etc and another cfg for public mode with g_password "", g_gameytpe "gungame", sv_mapRotation "" and others. That would be really great.

Thanks Prez for the kind words.

Regarding your request, I don't think it's possible to execute a remote file (remote to gameserver) using rcon exec or am I wrong?
Logged

Beta Testers
*
OS: Linux
Type: Home user
Gameservers: CoD4 SoF2
Posts: 103
Offline Offline
WWW
« Reply #13 on: June 07, 2011, 08:01:31 AM »

I can't answer you that Freelander, my knowledge about these things is way too limited.

I was just assuming that it's somehow possible as the official rcon tool and other 3rd party rcon tools let you save and load/execute cfg files. The poweradmin plugin for UrT has the paexec command which allows me to execute cfg's that are stored in the servers root folder. Wouldn't it be possible to let the plugin scan for configs in other folders than the gameservers directory?

Anyway, my fortune does not depend on this feature and there is probably not much demand for something like this by other people than me. Just thought i'd ask and maybe someone would say "sure no biggie".  Wink
Logged
XLRstats dev.
Dev. Team
*
OS: Linux
Type: Home user
Gameservers: COD5, COD7, BF3
Posts: 947
Offline Offline
WWW
Support Specialty: XLRstats webfront
« Reply #14 on: June 07, 2011, 09:45:27 AM »

official rcon tool and other 3rd party rcon tools let you save and load/execute cfg files.

Then it should be doable. I'll check that. Thanks!
Logged

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


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal