Page 7 of 10

Re: Script callbacks

Posted: 24 Jul 2013, 11:40
by w1lla

Code: Select all

LibXmlRpc_LoadingMap = MapNumber INT(1)
Is missing.

Re: Script callbacks

Posted: 24 Jul 2013, 14:22
by Eole
First post edited, thanks.

Re: Script callbacks

Posted: 31 Jul 2013, 09:42
by Eole
First post editd with two new methods:

Code: Select all

Extend the warm up timer for x milliseconds:
String1: "WarmUp_Extend"
String2: "60000" (time in ms)

Code: Select all

Stop the warm up:
String1: "WarmUp_Stop"
String2: ""
Also the goal average of the players is accessible in the callbacks of Elite now. The OnShoot, OnHit and OnArmorEmpty callbacks give the position of the players.

Re: Script callbacks

Posted: 31 Jul 2013, 09:52
by w1lla
MatchmakingGetOrder is also a callback but not supported in any other way then for Matchmaking purposes.

Re: Script callbacks

Posted: 31 Jul 2013, 11:41
by Eole
Indeed I forgot that one. In Elite if the matchmaking is activated on the server there's a callback and a method to set a specific order for the players.

Callback:

Code: Select all

Name: "MatchmakingGetOrder"
Data: nothing
Note: The server sends this callback and then wait during 5 seconds to receive the "MatchmakingSetOrder" script event.
Mode script event:

Code: Select all

Define a specific order for the players.
String1: "MatchmakingSetOrder"
String2: "Login1TeamA,Login2TeamA,Login3TeamA|Login1TeamB,Login2TeamB,Login3TeamB"

Re: Script callbacks

Posted: 31 Jul 2013, 12:20
by w1lla
More forgotten:

Mode script event:

Code: Select all

String1: "LibXmlRpc_Lobby_SetRoundDuration"
String2: "INT(6000)" // Set RoundDuration to 6000 seconds.
Note: Define a SetRoundDuration inside LobbyMode

Code: Select all

String1: "LibXmlRpc_Lobby_Verbosity"
String2: "Silent" // Must be a setting in Lobby mode. (not sure)
Note: Lobby Verbosity
Callback:

Code: Select all

String1: "TeamReady"
String2: "PlayerLogin1;PlayerLogin2;PlayerLogin3;" // PlayerLogin of TeamReady.
Note: TeamReady in WaitingList/WaitingQueue.

Re: Script callbacks

Posted: 13 Aug 2013, 20:10
by Jojo_44

Code: Select all

Name: "LibXmlRpc_LoadingMap"
Data: An array with the number of the map
The number of the map means the index of the map in the matchsettings ? Why is the number returned as a String ?

regards, Jojo

Re: Script callbacks

Posted: 13 Aug 2013, 20:19
by w1lla
Some Callbacks dont seem to work anymore with the update on the github located here: 26th July 2013.

Re: Script callbacks

Posted: 14 Aug 2013, 09:56
by Eole
Jojo_44 wrote:

Code: Select all

Name: "LibXmlRpc_LoadingMap"
Data: An array with the number of the map
The number of the map means the index of the map in the matchsettings ? Why is the number returned as a String ?

regards, Jojo
No, it's the number of map played since the script started. I can add the uuid and/or the index of the map in the maplist to the array if needed.
This number is a String because the function to send callback from ManiaScript only allows to send a String or an array of String.
w1lla wrote:Some Callbacks dont seem to work anymore with the update on the github located here: 26th July 2013.
Do you have the names of the callbacks and the name of the game mode?