Script callbacks

Moderator: NADEO

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

Re: Script callbacks

Post by w1lla » 24 Jul 2013, 11:40

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: 1216
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole » 24 Jul 2013, 14:22

First post edited, thanks.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!

kremsy
Posts: 1720
Joined: 21 Jul 2011, 09:51

Re: Script callbacks

Post by kremsy » 24 Jul 2013, 14:42

Eole wrote:First post edited, thanks.
Oh just noticed that there is that callback, I guess it comes directly after mapstart, so it's the callback I needed ;).
Lukas alias Kremsy, Developer of:
ManiaControl: http://www.maniacontrol.com
ParagonLeague: http://league.paragon-esports.com
MPAseco: http://mpaseco.org
ManiaViewer: http://www.maniaviewer.com

User avatar
Eole
Nadeo
Nadeo
Posts: 1216
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole » 31 Jul 2013, 09:42

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: 2360
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Script callbacks

Post by w1lla » 31 Jul 2013, 09:52

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: 1216
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole » 31 Jul 2013, 11:41

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: 2360
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Script callbacks

Post by w1lla » 31 Jul 2013, 12:20

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: 500
Joined: 12 Jul 2010, 15:58
Location: Germany->Bavaria
Contact:

Re: Script callbacks

Post by Jojo_44 » 13 Aug 2013, 20:10

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: 2360
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Script callbacks

Post by w1lla » 13 Aug 2013, 20:19

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: 1216
Joined: 26 Apr 2011, 21:08

Re: Script callbacks

Post by Eole » 14 Aug 2013, 09:56

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 3 guests