ManiaScript Documentation

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

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

Re: ManiaScript Documentation

Post by Eole »

Info: The CutScene type allow a layer to be displayed even during a mediatracker intro, outro, ...
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
spaii
Posts: 1100
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: ManiaScript Documentation

Post by spaii »

Thx for precision, in TrackMania too ? :D
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: ManiaScript Documentation

Post by Eole »

Logically yes, if not, then it's a bug.
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 Documentation

Post by steeffeen »

two similar questions:
  • how does CUIConfig::EUISequence::CustomMTClip work?
    how is it possible to create the clip which is played during this sequence?
  • is there still any use of CUIConfig::EUISequence::Outro? (beside for older maps of course as you can't create outro clips for maps anymore..)
    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 Documentation

    Post by steeffeen »

    aaaaaaaaaaaaand the next question :D :D

    what exactly defines to which context labels have access to?
    so far i didn't have problems regarding that
    but now i encountered an issue and i couldn't figure out how to fix it

    example code:

    Code: Select all

    declare Integer G_Whatever;  // <<< global variable
    
    ***PlayLoop***
    ***
    +++MyOwnLabel+++
    ***
    
    ***MyOwnLabel***
    ***
    G_Whatever = 1; // <<< doesn't work because it says that G_Whatever "doesn't exist"
    ***
    
    it seems like MyOwnLabel has only access to variables of the modebase where PlayLoop was defined... am i assuming right here?
      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 Documentation

      Post by w1lla »

      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
      Hylis
      Nadeo
      Nadeo
      Posts: 3962
      Joined: 14 Jun 2010, 11:58

      Re: ManiaScript Documentation

      Post by Hylis »

      a little info for Shootmania
      to unactivate the laser pass through, for infestation, for example:
      UseLaserSkewering = False
      User avatar
      w1lla
      Posts: 2396
      Joined: 15 Jun 2010, 11:09
      Location: Netherlands
      Contact:

      Re: ManiaScript Documentation

      Post by w1lla »

      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 Documentation

      Post by Eole »

      I made a tutorial on how to generate the ManiaScript API Documentation. It's available here:
      http://maniaplanet.github.io/documentat ... e-doc.html

      I explain how to generate the documentation from ManiaPlanet.exe, how to create an html version of the documentation with Doxygen and eventually give a batch file who do all of the above in one click.

      @Steeffeen:
      You're right about the label. It's an old problem, hope to see it fixed one day too. ^^
      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 Documentation

      Post by steeffeen »

      just noticed a mini issue in the documentation:

      Code: Select all

      const CUser	CMlScriptIngame::LocalUser
      const CUser	CMlScript::LocalUser
      both classes have the LocalUser attribute while CMlScriptIngame inherits from CMlScript
        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 2 guests