[ManiaScript] List of known bugs and Suggestions

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

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 »

You're welcome! :thumbsup:
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 »

ShootMania:
to increase the usability of the storm it would be great if you could set the center point of the storm with coordinates and not just with block ids
    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 »

    one thing that would be really really helpful is a library for actual json conversation
    currently we can only craft our own json string that can be SENT to a server but FETCHING data from a server is soo incredibly dirty because we would have to parse it step by step etc

    of course it's kind of difficult to decode a json without dynamic objects but it's still possible
    either with associative arrays or with key-value coding
    :)

    does anyone have an idea for a clean way to parse a data string with a constant structure but with a dynamic length and with unpredictable values?
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      w1lla
      Posts: 2396
      Joined: 15 Jun 2010, 11:09
      Location: Netherlands
      Contact:

      Re: [ManiaScript] List of known bugs and Suggestions

      Post by w1lla »

      Code: Select all

       public function __construct($json = false) {
              if ($json)
                  $this->set(json_decode($json, true));
          }
      
          public function set($data) {
              foreach ($data AS $key => $value) {
                  if (is_array($value)) {
                      $sub = new RpcObject();
                      $sub->set($value);
                      $value = $sub;
                  }
                  $key = lcfirst($key);
                  $this->{$key} = $value;
              }
          }
      
      This is what i did... Then just get the variables which are sent by the array.
      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
      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'm talking about maniascript and not about php ;)

      //edit: i guess i will have to mess around with xml
      XML is like violence: if it doesn’t solve your problem, you aren’t using enough of it.
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        w1lla
        Posts: 2396
        Joined: 15 Jun 2010, 11:09
        Location: Netherlands
        Contact:

        Re: [ManiaScript] List of known bugs and Suggestions

        Post by w1lla »

        Medium/High:

        Bug of Nickname of Players that are too long in ScoreTable.

        The NickName of Players isn't filled properly or are too big. In for example siege, players nicknames are combined with the armors they have left. Which is quite unreadable.
        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: [ManiaScript] List of known bugs and Suggestions

        Post by Eole »

        w1lla wrote:Bug of Nickname of Players that are too long in ScoreTable.
        It's fixed in the next version. Do you have other examples than in Siege? With a screenshot if possible.
        Contribute to the ManiaPlanet documentation on GitHub
        A question about ManiaScript? Ask it here!
        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 »

        a Color Property for the class CMlGauge would be great :)
        so you don't have to create a new manialink all the time (for a changed color="" attribute)
          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 thought it has been requested already but i couldn't find the thread

          - please make it possible to close the current manialink from maniascript
          with that i mean that the complete manialink browser closes as if you would have hit the Escape key or clicked on a control with action="0"
            Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

            ManiaControl, FancyManiaLinks
            User avatar
            magnetik
            Nadeo
            Nadeo
            Posts: 1678
            Joined: 01 Feb 2012, 19:13
            Location: Bordeaux
            Contact:

            Re: [ManiaScript] List of known bugs and Suggestions

            Post by magnetik »

            Your dream will come true (in next update) : http://maniaplanet.github.io/documentat ... tions.html

            Is that up to date documentation? YEAH :yes:
            (thanks xbx)
            ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
            Post Reply

            Return to “ManiaScript”

            Who is online

            Users browsing this forum: No registered users and 1 guest