Page 1 of 1

[Tuto][ManiaLive] Disable Legacy Callbacks in scripted TM

Posted: 14 Aug 2014, 10:20
by w1lla
Hi,

Want to disable legacy callbacks and use the xmlrpc callbacks sent from the scripted gamemodes?

Do the following:

Add in your plugin you are writing:

Code: Select all

$this->connection->setModeScriptSettings(array('S_UseScriptCallbacks' => true)); //Debug Way...
$this->connection->setModeScriptSettings(array('S_UseLegacyCallbacks' => false)); //Debug Way...
in the

Code: Select all

onLoad(){
}
function of your plugin.

This will disable the legacy callbacks and enable the scriptCallbacks.

However in manialive the Storage.php has no way of checking things for updateRanking and such.

This will need to be worked on.

If there are people around and want to help make manialive a bit better for scripted gamemodes please be free and send a pm.

Re: [Tuto][ManiaLive] Disable Legacy Callbacks in scripted T

Posted: 14 Aug 2014, 16:53
by The_Big_Boo
w1lla wrote:

Code: Select all

$this->connection->setModeScriptSettings(array('S_UseScriptCallbacks' => true)); //Debug Way...
$this->connection->setModeScriptSettings(array('S_UseLegacyCallbacks' => false)); //Debug Way...
This should be done in a single call instead of two.

Otherwise, I agree a better support for scripts would be nice. It could be done by a plugin adding new events for scripts though it won't change anything to the Storage class...

Re: [Tuto][ManiaLive] Disable Legacy Callbacks in scripted T

Posted: 15 Aug 2014, 08:50
by oliverde8
I do not understand the interest of deactivating legacy modes events totaly. eXpansion has SM Elite & Script callbacl support and it has been added as described by The_Big_Boo. The core plugin initiate a class depending if SM Elite or other script mode and that object will then send new events.