Page 1 of 1

custom score distribution

Posted: 10 Feb 2011, 11:49
by Vins75
hello all,
so I know if I'm in the right section I wanted to know if the Warn message could be modified "french traduct" or another averts. some server run in round mod how to change the distribution of points in the type motogp 25/20 /.... ... thank you lot

Re: custom score distribution

Posted: 10 Feb 2011, 11:56
by farfa
I don't understand your post.
You want to modified the averts or the points distribution ?
It it's the score distribution you can create a plugin changing for different score distribution thanks to the method

Code: Select all

ManiaLive\DedicatedApi\Connection::setRoundCustomPoints(array $customPoints, bool $relaxChecking, bool $multicall)
If it's message in the FreeZone Plugin, the answer is simply no

Re: custom score distribution

Posted: 10 Feb 2011, 12:19
by Vins75
sorry my thirst question his how to modified this warn message if possible
Image

and my second question : how to change score distribution in motogp, I remember as I was typing in XAseco
/admin rpoints motogp, is there a trick ?

Re: custom score distribution

Posted: 10 Feb 2011, 13:42
by Knutselmaaster
Your questions concern Plugin functionality.
I will move this topic to the plugins section.

There is no possibility to change rounds points yet, such a plugin does not exist for ManiaLive at the moment.

As for the warning message; open \libraries\ManiaLivePlugins\MLEPP\AdminPanel\AdminPanel.php
Go to line 576 (not sure for the line number as i don't know what version you run) it should say:

Code: Select all

$window->setText('Admin has $f00warned$fff you for your $o$soffensive behaviour$z.'."\n\n".'Continuing this behaviour will get you either:'."\n".'* Removed from chat'."\n".'* Kicked from server '."\n".'* You might get a ban'."\n\n".'Please take this in consideration, while playing here.'); 
You can change your message there.

Re: custom score distribution

Posted: 14 Feb 2011, 11:33
by reaby
Custom round scores is now implemented to developer / svn version of adminpanel.
We, Mlepp developers are extending the plugin pack and new features is being added. Currently we are testing the database/local records/jukebox plugin combination, there is still too many bugs left after the great data structure change from last database format to the new one.

the new adminpanel has it's own "code language" now, tho there are shortcuts to commonly used admin command, but the rest are grouped like this.

/admin [action] [subject] [property] parameter1 (parameter2)

[action] can be set / get / add / remove
[subject] can be player / server / ta / team / rounds / laps / cup / [from other plugin]
[property] will be the subset of commands from each [subject]

few examples to mention a few of many from the system we are testing:

/admin set player unban [login]
/admin get player ignorelist

/admin get server coppers
/admin set server pay [login] [amount]
/admin set server stop

/admin add tmx [tmxid] [gameversion]

/admin set rounds custompoints f1new
/admin set ta timelimit 5:15