[ManiaScript] List of known bugs and Suggestions

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: [ManiaScript] List of known bugs and Suggestions

Post by steeffeen »

Kyb wrote:If we can forbid the Armor regain with the attribute"Player.ArmorReplenishGain", it would be nice too.
well as ArmorReplenishGain replenishes armor all the time i would rather say ArmorGain should be used for that because i didn't get the point of ArmorGain yet, it only replenishes armor if the current armor is != x*100 (partly regenerated)

anyways, you can reach your desired functionality with only one line of code

Code: Select all

if (Player.Armor % 100 == 0) Player.Armor = (Player.Armor / 100) * 100;
(not tested ^.^)

regarding your code about
Events when players regenerate their armor (with 1-8-3 and 1-8-4 blocks).
i would rather suggest using key-value-coding instead of arrays

Code: Select all

declare OldArmor for Player = 200;
if (Player.Armor % 100 != 0 && Player.Armor > OldArmor) SendMessage();
OldArmor = Player.Armor;
(not tested either ^.^)

//Edit: just for the records, the suggested code doesn't work :cry: see the following post for the reason
Last edited by steeffeen on 03 Jul 2013, 02:35, edited 2 times in total.
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    Kyb
    Posts: 383
    Joined: 18 Aug 2011, 20:50

    Re: [ManiaScript] List of known bugs and Suggestions

    Post by Kyb »

    It doesn't work because when we regain Armor with 1-8-3 and 1-8-4 blocks, Armor stay at the same value during the loading, and earn 100 at the end of the loading.
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2472
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: [ManiaScript] List of known bugs and Suggestions

    Post by steeffeen »

    Kyb wrote:It doesn't work because when we regain Armor with 1-8-3 and 1-8-4 blocks, Armor stay at the same value during the loading, and earn 100 at the end of the loading.
    i see :?
    sorry ^^
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2472
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: [ManiaScript] List of known bugs and Suggestions

      Post by steeffeen »

      HttpRequests in Manialink script work fine now :yes:
      just built an auto refresh for my shoutbox :D

      (i would have posted it in the respective thread but it's locked because it has been moved into the Closed Beta Reports section :roll: )
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2472
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: [ManiaScript] List of known bugs and Suggestions

        Post by steeffeen »

        i would like to request access to the uuid of the current map in game modes
        maybe the class CMapInfo could get an additional attribute for that
        also the file name would be helpful, there is already the file location (Path)

        i need that to precisely identify the current map without any server controller :)
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks
          User avatar
          steeffeen
          Translator
          Translator
          Posts: 2472
          Joined: 14 Oct 2012, 16:22
          Location: Germany

          Re: [ManiaScript] List of known bugs and Suggestions

          Post by steeffeen »

          we have seen quite some issues with the skipping of intros since the 2.1 update which also introduced

          Code: Select all

          CUIConfig::UISequence_CanSkipIntroMT
          i've noticed that setting this value true (default is false) fixes the whole problem

          anyways, as the normal behaviour is that players scan skip the intro i think that the default value should be True
            Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

            ManiaControl, FancyManiaLinks
            User avatar
            spaii
            Posts: 1100
            Joined: 19 Jun 2010, 00:04
            Location: Rémy - France
            Contact:

            Re: [ManiaScript] List of known bugs and Suggestions

            Post by spaii »

            Suggestions :
            1. Chat
            In CUIConfig, we can send a text to chat with : SendChat(Text Text);
            It could be nice if we could read text from chat via ManiaScript ;)

            2.Ladder ranking at podium
            Possibility to disable ladder ranking in top of match ranking at podium via ManiaScript : http://puu.sh/3Dyzo.jpg
            Maybe we can already, but not found how...

            Thx ;)
            User avatar
            steeffeen
            Translator
            Translator
            Posts: 2472
            Joined: 14 Oct 2012, 16:22
            Location: Germany

            Re: [ManiaScript] List of known bugs and Suggestions

            Post by steeffeen »

            this is kind of part of custom class declaration in maniascript..

            it would be great to be able to create object (not items^^) via maniascript
            an example would be:

            Code: Select all

            declare Event = new CSmModeEvent();
            Event.Type = CSmModeEvent::EType::OnArmorEmpty;
            Event.Victim = Players[0];
            PassOn(Event);
            in case i want to eliminate a specific player because of my game mode rules :D
              Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

              ManiaControl, FancyManiaLinks
              User avatar
              spaii
              Posts: 1100
              Joined: 19 Jun 2010, 00:04
              Location: Rémy - France
              Contact:

              Re: [ManiaScript] List of known bugs and Suggestions

              Post by spaii »

              steeffeen wrote:i would like to request access to the uuid of the current map in game modes
              maybe the class CMapInfo could get an additional attribute for that
              also the file name would be helpful, there is already the file location (Path)

              i need that to precisely identify the current map without any server controller :)
              I think you had already found ;), but maybe this can help.

              CMap class :
              Map.Id gives uuid of map
              User avatar
              steeffeen
              Translator
              Translator
              Posts: 2472
              Joined: 14 Oct 2012, 16:22
              Location: Germany

              Re: [ManiaScript] List of known bugs and Suggestions

              Post by steeffeen »

              spaii wrote:I think you had already found ;), but maybe this can help.

              CMap class :
              Map.Id gives uuid of map
              SICK!

              the ident type is sooo dirty xD

              thanks man :thx: :yes:
                Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

                ManiaControl, FancyManiaLinks
                Post Reply

                Return to “ManiaScript”

                Who is online

                Users browsing this forum: No registered users and 0 guests