Manialink Station, Custom Menus, and Offline.

Discuss everything related to custom data creation.

Moderator: NADEO

Post Reply
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Manialink Station, Custom Menus, and Offline.

Post by Darkminus »

Hello :)

I'd like to know if there is a way to handle the offline case for custom title packs.

I mean that if I wanna play my title pack offline, in a LAN for example, it is not possible since it cannot load the manialink station and the custom menu, so it is not playable offline.

The same thing happens for the Manialink Station of the Elite title pack, so it's not playable offline, too...

The solution would be to load the "default" manialink station (I mean like if there was no manialink file linked) and the "default" menu.

Thanks for your answers :thumbsup:
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Manialink Station, Custom Menus, and Offline.

Post by steeffeen »

you can include the menu xml in your title pack and link it with

Code: Select all

file://Media/...
if you want the online version by default:
you can set a manialink as menu file that just sends a http request and then you navigate to the online link if the request completes or to the offline file if it doesn't
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    Darkminus
    Posts: 228
    Joined: 05 Jun 2012, 20:54
    Location: Dans mon monde.
    Contact:

    Re: Manialink Station, Custom Menus, and Offline.

    Post by Darkminus »

    The first part is ok, I know how I can check if I'm online or not so I can load the offline manialink, but I don't know how to get my online manialink with HTTPRequest..

    Do you have any example? That would be nice :)
    Professor Law
    ShootMania-addict since June 2012.
    Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

    System Specs:
    OS: Windows 10 Professionnal x64
    CPU: Intel i5-4670
    GPU: MSI TwinFrozr GTX 760 OC
    Motherboard: Asus Z87-C
    RAM : 10Gb
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Manialink Station, Custom Menus, and Offline.

    Post by steeffeen »

    Code: Select all

    OpenLink("url", CMlScript::LinkType::Goto);
    :)
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      Darkminus
      Posts: 228
      Joined: 05 Jun 2012, 20:54
      Location: Dans mon monde.
      Contact:

      Re: Manialink Station, Custom Menus, and Offline.

      Post by Darkminus »

      Haha, thanks ;)

      But... Maybe did I talk a little bit too fast. We cannot check if the user is online or not... :(
      Professor Law
      ShootMania-addict since June 2012.
      Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

      System Specs:
      OS: Windows 10 Professionnal x64
      CPU: Intel i5-4670
      GPU: MSI TwinFrozr GTX 760 OC
      Motherboard: Asus Z87-C
      RAM : 10Gb
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2463
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: Manialink Station, Custom Menus, and Offline.

      Post by steeffeen »

      of course you can

      Code: Select all

      declare Request = Http.CreateGet("http://www.mysite.com/test.txt");
      wait up to 1-2 sec and check if the request completed or not :)
        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: Manialink Station, Custom Menus, and Offline.

        Post by spaii »

        if (Request.StatusCode == 12007) : user is offline ;)
        Last edited by spaii on 27 Aug 2013, 11:37, edited 1 time in total.
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2463
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: Manialink Station, Custom Menus, and Offline.

        Post by steeffeen »

        yeah checking only "IsCompleted" wouldn't be enough of course
        in my case i'm checking for the correct response

        my file's content is only "okay" so it loads fast because it's small
        i'm checking if the result is correct because there could also be a timeout happening and the status code is still 0 :)
          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