Re: Script callbacks
Posted: 16 Aug 2014, 20:27
The Maniaplanet Beta forum has been moved to: http://forum.maniaplanet.com/viewforum.php?f=481
I have noticed, that on controller start Rounds_SetPointsRepartition seems only to set the given Pointslimit, when a Player is connected. And sometimes it seems to do not set the Pointslimit at all, but Rounds_GetPointsRepartition returns the given ones, but i currently didn't have figured out when and why...oliverde8 wrote:and it seems Rounds_SetPointsRepartition & Rounds_GetPointsRepartition don't work.
whatever I do Rounds_GetPointsRepartition returns "1" just that nothing else even throught points repartition is still at default. while Rounds_SetPointsRepartition seems to do nothing.
Code: Select all
$points = array('10', '6', '4', '3', '2', '1');
$aseco->client->query('TriggerModeScriptEventArray', 'Rounds_SetPointsRepartition', $points);
Yes... a pain in the a.... ahm... face.oliverde8 wrote: While at it, we still can't change script modes.
I fixed the link to the documentation on the first page. It should be up to date already. The Uid was listed in the BeginMap callback, do you see something else missing?kremsy wrote:The ManiaPlanet Beta forums are not existing anymore, you had the newest verison of callbacks there, can you update them here as well or update the docs: http://doc.maniaplanet.com/dedicated-se ... ripts.html I think you added the Uid to the BeginMap and some other things.
I gotEole wrote: @Oliderde8 and undef.de :
You can try the files from this commit, it should fix the problems with Rounds_SetPointsRepartition & Rounds_GetPointsRepartition. They worked only when a round was running, now they should work anytime.
Code: Select all
[2014/09/08 21:48:43] Script compilation failed: ERROR[Modes/TrackMania/ModeBase.Script.txt : 528, 9] Incorrect arguments to call the function BeginMatch
Script compilation failed.
Code: Select all
Void BeginMatch(Integer _Number)
Code: Select all
XmlRpc::BeginMatch(MB_SectionMatchNb, MB_MapRestarted);
Code: Select all
XmlRpc::BeginMatch(MB_SectionMatchNb);
Code: Select all
// ---------------------------------- //
/** Callback sent at the beginning of the match
* Data:
* [Number of the match, Map restarted]
*/
Void BeginMatch(Integer _Number, Boolean _Restarted) {
if (!G_UseLibXmlRpc) return;
declare Restarted = "False";
if (_Restarted) Restarted = "True";
Private_SendCallbackArray("LibXmlRpc_BeginMatch", [TL::ToText(_Number), Restarted]);
}