Script callbacks

Moderator: NADEO

User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Script callbacks

Post by w1lla »

Code: Select all

LibXmlRpc_LoadingMap = MapNumber INT(1)
Is missing.
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
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole »

First post edited, thanks.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post 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.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Script callbacks

Post by w1lla »

MatchmakingGetOrder is also a callback but not supported in any other way then for Matchmaking purposes.
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
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post 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"
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Script callbacks

Post 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.
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
User avatar
Jojo_44
Posts: 485
Joined: 12 Jul 2010, 15:58
Location: Germany->Bavaria
Contact:

Re: Script callbacks

Post 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
Image
my english sounds very unfriendly but it isn´t ;)
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Script callbacks

Post by w1lla »

Some Callbacks dont seem to work anymore with the update on the github located here: 26th July 2013.
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
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post 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?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Post Reply

Return to “Dedicated Server”

Who is online

Users browsing this forum: No registered users and 1 guest