[XASECO1+2] Alternative Admin (13.3.2012)

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
reaby
smooth traffic navigator
smooth traffic navigator
Posts: 213
Joined: 02 Jul 2009 21:24
Owned TM-games: TMUF

[XASECO1+2] Alternative Admin (13.3.2012)

Post by reaby » 13 Mar 2012 12:11

Alternative Admin
version 1


Problem:
I need to use every time /admin help and read&search the hard reading list though to see what command was it, that i want to perform.

Solution:
New admin plugin in addition to built-in admin module.
Easy to remember command structure and interactive help to guide you thought the wanted action you want to perform.

Examples:
/adm set server gamemode rounds
/adm set ta timelimit 6:00
/adm set team force player reaby red
/adm set rounds custompoints f1gp
/adm set server stop xaseco

Change log:
13.3.2012 v1 Initial release.

Bugs:
I tried to test it out the best, but there might be some bugs still lurking around.
In that case, report back any issues you encounter.

Download:
http://koti.mbnet.fi/reaby/xaseco/adm_v1.zip

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1305
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XASECO1+2] Alternative Admin (13.3.2012)

Post by undef.de » 16 Feb 2013 09:32

Aloha reaby,

i found a Bug that change the $aseco->server->game from "TmForever" into "ManiaPlanet". This Bug brings trouble into my TM-Karma API changes for the next Maniaplanet environment 'Stadium', because its use the $aseco->server->game to see which TM is running.

See the logs:
###############################################################################
XASECO v1.15b running on 127.0.0.1:5002
Name : SERVERNAME - SERVERLOGIN
Game : ManiaPlanet United - United - Stunts
Version: 2.11.26 / 2011-02-21
Authors: Florian Schnell & Assembler Maniac
Re-Authored: Xymph
###############################################################################

Please change line 215 - 219 from this:

Code: Select all

        if ($this->aseco->server->game = "ManiaPlanet") {
            self::addAdminCommand(array($this, 'getPlanets'), array('get', 'server', 'planets'), false, false, false);
        } else {
            self::addAdminCommand(array($this, 'getCoppers'), array('get', 'server', 'coppers'), false, false, false);
        }
to this

Code: Select all

        if ($this->aseco->server->game == "ManiaPlanet") {
            self::addAdminCommand(array($this, 'getPlanets'), array('get', 'server', 'planets'), false, false, false);
        } else {
            self::addAdminCommand(array($this, 'getCoppers'), array('get', 'server', 'coppers'), false, false, false);
        }
Line 215 contains "=" instead of "==".

Btw.: It would be nice if you add support for Third-party Plugins UpToDate.
Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

Post Reply