Script callbacks

Moderator: NADEO

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

Re: Script callbacks

Post by kremsy » 16 May 2013, 17:03

Is there a way in the future the the Scoreboard get also hidden via these commands while Warmup?
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

MuNgLo
Posts: 316
Joined: 12 Jul 2012, 03:37

Re: Script callbacks

Post by MuNgLo » 16 May 2013, 17:06

with the latest update you need to ask for the callbacks for Elite also?

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

Re: Script callbacks

Post by Eole » 16 May 2013, 17:14

MuNgLo wrote:with the latest update you need to ask for the callbacks for Elite also?
Yes, the S_UseScriptCallbacks setting must be set to true like in the other modes now.
kremsy wrote:Is there a way in the future the the Scoreboard get also hidden via these commands while Warmup?
It doesn't? It should work at least in Elite and Heroes, I've made some changes in other modes too, but maybe I forget some.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!

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

Re: Script callbacks

Post by kremsy » 16 May 2013, 17:16

I tested it in Elite, it works while Playing but not due Warm-Up.
Last edited by kremsy on 16 May 2013, 17:20, edited 1 time in total.
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
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Script callbacks

Post by steeffeen » 16 May 2013, 17:17

Eole wrote:
MuNgLo wrote:with the latest update you need to ask for the callbacks for Elite also?
Yes, the S_UseScriptCallbacks setting must be set to true like in the other modes now.
as this is a not backwards-compatible change, may the script callbacks in elite get updated to the new style as well?
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

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

    Re: Script callbacks

    Post by Eole » 16 May 2013, 17:26

    @Kremsy:
    What's the version of ModeSport.Script.txt in the log when you start the script?

    @Steeffeen:
    It's not on the high priority list, but I hope that I'll have time to do it at some points.
    Contribute to the ManiaPlanet documentation on GitHub
    A question about ManiaScript? Ask it here!

    MuNgLo
    Posts: 316
    Joined: 12 Jul 2012, 03:37

    Re: Script callbacks

    Post by MuNgLo » 16 May 2013, 17:35

    For Elite I now get these new callbacks..

    LibXmlRpc_BeginMatch
    LibXmlRpc_BeginTurn
    startTurn
    LibXmlRpc_EndTurn
    LibXmlRpc_Rankings

    ^¨ might not be complete list

    At first glance all the old ones seems to still be there and these seems to contain no really useful info so isn't it just excessive and a waste to send these?

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

    Re: Script callbacks

    Post by kremsy » 16 May 2013, 18:11

    Eole wrote:@Kremsy:
    What's the version of ModeSport.Script.txt in the log when you start the script?

    @Steeffeen:
    It's not on the high priority list, but I hope that I'll have time to do it at some points.
    148> Script: ModeSport.Script.txt | Version: 2013-05-14

    In Heroes it's working.

    Edit: Strange, after Restarting the server again it's working, sorry for the inconvenience!

    Thank you very much eole!!!!
    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

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

    Re: Script callbacks

    Post by kremsy » 16 May 2013, 19:03

    With the new Scoreboard which looks really great now in the custom modes, the disable on AltMenu is still not working, but I think you haven't done that yet so it's not a bug ;)
    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: 1261
    Joined: 26 Apr 2011, 21:08

    Re: Script callbacks

    Post by Eole » 16 May 2013, 19:55

    @Munglo:
    All the LibXmlRpc_* callbacks are sent by the ModeBase script and are common to all the modes. So yes they don't really bring anything new for Elite. It just gives some basic callbacks that server controllers can use without writing specific code for Elite.
    kremsy wrote:With the new Scoreboard which looks really great now in the custom modes, the disable on AltMenu is still not working, but I think you haven't done that yet so it's not a bug ;)
    I don't understand, what do you mean?
    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