Title packs documentation

Discuss everything related to custom data creation.

Moderator: NADEO

User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Title packs

Post by steeffeen »

i've encountered an issue and i can't really figure out what's causing that..
the multiplayer script which i've included in my shootmania title pack works fine on the server
but if any player except me tries to start an ingame match (either multiplayer or local play) the script compilation fails
it says the #requirecontext directive is missing which is maybe caused by a wrong encoding or by the file not being read at all..
(just to clarify, server and ingame match on my end are working fine)

i can supply an example title pack file if needed

help would be greatly appreciated!

(local script file is in UTF-8 with BOM)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    xbx
    Nadeo
    Nadeo
    Posts: 1289
    Joined: 14 Jun 2010, 17:35

    Re: Title packs

    Post by xbx »

    meuh21 wrote:How is it possible to have replays in the solo campaign ?
    http://forum.maniaplanet.com/viewtopic. ... 96&start=0
    User avatar
    xbx
    Nadeo
    Nadeo
    Posts: 1289
    Joined: 14 Jun 2010, 17:35

    Re: Manialink

    Post by xbx »

    alividerci wrote: but it dont work...arguments

    Code: Select all

    <station_manialink url="file://Media/Manialinks/blabla.xml" />
    <file name="Media\Manialinks\blabla.xml" public="false" internal="false" />
    why?
    Hi!
    So the issue is that the file must be available before the title is fully loaded (since it's displayed on the stations before entering it)
    You have to use public="true" internal="false" for this to work.

    Additional info:
    * you need to add a button with action="enter" to allow entering the station.

    Code: Select all

    <label posn="0 -60 1" halign="center" style="CardMain_Tool" substyle="Editor" text="Enter" action="enter"  /> 
    * Instead of having a single blabla.xml file, you can have three to deal with the different sizes.
    name them: blabla_size=3.xml, blabla_size=2.xml, ...

    (or if using http:// the request is http://myurl.php?size=3 )

    Code: Select all

    <packaging>
      <station_manialink url="file://Media/Manialinks/teststation.xml" />
    </packaging>
    
    <files>
      <file name="Media\Manialinks\teststation_size=1.xml" public="true" internal="false" />
      <file name="Media\Manialinks\teststation_size=2.xml" public="true" internal="false" />
      <file name="Media\Manialinks\teststation_size=3.xml" public="true" internal="false" />
    </files>
    
    
    * <boxcase_manialink> --> does nothing so far...
    User avatar
    alividerci
    Posts: 363
    Joined: 11 Feb 2012, 07:03

    Re: Manialink

    Post by alividerci »

    xbx wrote:
    alividerci wrote: but it dont work...arguments

    Code: Select all

    <station_manialink url="file://Media/Manialinks/blabla.xml" />
    <file name="Media\Manialinks\blabla.xml" public="false" internal="false" />
    why?
    Hi!
    So the issue is that the file must be available before the title is fully loaded (since it's displayed on the stations before entering it)
    You have to use public="true" internal="false" for this to work.

    Additional info:
    * you need to add a button with action="enter" to allow entering the station.

    Code: Select all

    <label posn="0 -60 1" halign="center" style="CardMain_Tool" substyle="Editor" text="Enter" action="enter"  /> 
    * Instead of having a single blabla.xml file, you can have three to deal with the different sizes.
    name them: blabla_size=3.xml, blabla_size=2.xml, ...

    (or if using http:// the request is http://myurl.php?size=3 )

    Code: Select all

    <packaging>
      <station_manialink url="file://Media/Manialinks/teststation.xml" />
    </packaging>
    
    <files>
      <file name="Media\Manialinks\teststation_size=1.xml" public="true" internal="false" />
      <file name="Media\Manialinks\teststation_size=2.xml" public="true" internal="false" />
      <file name="Media\Manialinks\teststation_size=3.xml" public="true" internal="false" />
    </files>
    
    
    * <boxcase_manialink> --> does nothing so far...
    it is doesn't work :(
    User avatar
    xbx
    Nadeo
    Nadeo
    Posts: 1289
    Joined: 14 Jun 2010, 17:35

    Re: Manialink

    Post by xbx »

    alividerci wrote: it is doesn't work :(
    It definitely does work for me.
    Here is my test title, with a manialink (and valley test campaign with opponents):
    http://files.maniaplanet.com/tools/Samp ... e.Pack.Gbx

    created with those files:
    http://files.maniaplanet.com/tools/Samp ... .Title.zip
    User avatar
    alividerci
    Posts: 363
    Joined: 11 Feb 2012, 07:03

    Re: Manialink

    Post by alividerci »

    xbx wrote:
    alividerci wrote: it is doesn't work :(
    It definitely does work for me.
    Here is my test title, with a manialink (and valley test campaign with opponents):
    http://files.maniaplanet.com/tools/Samp ... e.Pack.Gbx

    created with those files:
    http://files.maniaplanet.com/tools/Samp ... .Title.zip
    thx
    User avatar
    xbx
    Nadeo
    Nadeo
    Posts: 1289
    Joined: 14 Jun 2010, 17:35

    Re: Title packs

    Post by xbx »

    steeffeen wrote:i've encountered an issue and i can't really figure out what's causing that..
    the multiplayer script which i've included in my shootmania title pack works fine on the server
    but if any player except me tries to start an ingame match (either multiplayer or local play) the script compilation fails
    it says the #requirecontext directive is missing which is maybe caused by a wrong encoding or by the file not being read at all..
    Did you sort it out?


    Other that that, I tried the speedball title, and I noticed the menu 3d style doesn't work.

    The reason is that the file extension must be ".Manialink3dStyle.xml"
    so you have to rename "Menu.Stylesheet.xml" to "Menu.Manialink3dStyle.xml"
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Title packs

    Post by steeffeen »

    xbx wrote:Did you sort it out?
    did you try it yourself? does it work on your end? ^.^
    i think it's not yet fixed but i will ask the players i know having this issue
    xbx wrote:Other that that, I tried the speedball title, and I noticed the menu 3d style doesn't work.
    The reason is that the file extension must be ".Manialink3dStyle.xml"
    so you have to rename "Menu.Stylesheet.xml" to "Menu.Manialink3dStyle.xml"
    yeah, now the default menus are working (and aren't that shiny anymore) but my custom menu is still invisible.. so it's still buggy
    however it's a big step! :D
    thanks :thx:
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

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

      Re: Title packs

      Post by spaii »

      steeffeen wrote:
      xbx wrote:Other that that, I tried the speedball title, and I noticed the menu 3d style doesn't work.
      The reason is that the file extension must be ".Manialink3dStyle.xml"
      so you have to rename "Menu.Stylesheet.xml" to "Menu.Manialink3dStyle.xml"
      yeah, now the default menus are working (and aren't that shiny anymore) but my custom menu is still invisible.. so it's still buggy
      however it's a big step! :D
      thanks :thx:
      Thx for precisions :thx:

      Same here on Stunters, i can customise Nadeo 3D buttons, frame3d, etc... but not others ;)
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: Title packs

      Post by steeffeen »

      small question: is it possible to exit the title pack from the menu manialink script?
      (script! not control action ;))

      // Edit: just tried

      Code: Select all

      Page.MainFrame.Unload()
      no idea what that should be used for but it lets the game crash :lol:
      crash log
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        Post Reply

        Return to “Title Pack & Custom Data Creation”

        Who is online

        Users browsing this forum: No registered users and 1 guest