LibXmlRpc Improvements

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: LibXmlRpc Improvements

Post by undef.de »

Is it possible to change LibXmlRpc_LoadingMap to have the same array contents as LibXmlRpc_BeginMap?

Detailed:

Code: Select all

LibXmlRpc_LoadingMap

    Data : An array with the number of the map, its UID and if the map is new or restarted.
    Example : ["1", "2icir0pvzfqwf4h9j3B5lkjYu4n", "False"]
    Note : This callback is sent when the script start to load a map

LibXmlRpc_BeginMap

    Data : An array with the number of the map, its UID and if the map is new or restarted.
    Example : ["1", "2icir0pvzfqwf4h9j3B5lkjYu4n", "False"]
    Note : This callback is sent before the beginning of each map
This would be nice to have more time to load all required data from ManiaExchange, Dedimania, ManiaKarma... on a map start to fill and send the widgets to the players just while the intro runs (in TM2).
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: LibXmlRpc Improvements

Post by Eole »

kremsy wrote:Sounds amazing, but always be sure it never ever could get sent twice .
Done, it will be available in the next update of Maniaplanet. One warning though, because the callback is very specific I couldn't implement it in ModeBase.Script.txt, only in each game mode individually. This means that all Nadeo modes will send the callback, but players creating custom modes have to invoke the callback manually.
undef.de wrote:Is it possible to change LibXmlRpc_LoadingMap to have the same array contents as LibXmlRpc_BeginMap?
Done too.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: LibXmlRpc Improvements

Post by undef.de »

Eole wrote:
undef.de wrote:Is it possible to change LibXmlRpc_LoadingMap to have the same array contents as LibXmlRpc_BeginMap?
Done too.
Thanks! :pil
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: LibXmlRpc Improvements

Post by w1lla »

When no player finishes a map in a gamemode his time is given as this:

Code: Select all

1;w1lla;$fff《$f80ЅCYLLΔ$fff》$o$iW1lla;0:00.001;0;
Is that correct or a bug somewhere in maniascript?

thx for any answers.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest