How do you get manialinks to work in packs?

Discuss everything related to custom data creation.

Moderator: NADEO

Post Reply
User avatar
Platysynthesis
Posts: 43
Joined: 16 May 2015, 00:43
Location: United States

How do you get manialinks to work in packs?

Post by Platysynthesis » 06 Jun 2018, 01:17

This is the most frustrating thing ever. I want to add a manialink I've made for my custom title pack for a custom main menu, and it looks something like this:

Image

I put the .xml of that manialink into the title pack's directory and included it within.

Image

Instead, it looks like this in "Edition Mode":

Image

Trying to update the pack afterwards causes the game to crash mid-sequence.
Last edited by TMarc on 07 Jun 2018, 07:55, edited 1 time in total.
Reason: Title

User avatar
Qlex
Nadeo
Nadeo
Posts: 239
Joined: 03 Jun 2012, 13:17

Re: How do you get manialinks to work in packs?

Post by Qlex » 06 Jun 2018, 10:05

Hi,

Here are the steps to including the manialink into your title pack :
  1. Create another textfile called MainMenu.Script.txt which contains something like :

    Code: Select all

    #RequireContext CManiaAppTitle
    
    main() {
    	declare Layer = UILayerCreate();
    	Layer.ManialinkPage = "file://Media/Manialinks/tm_rivals_main_menu.xml";
    
    	while(True) {
    		yield;
    	}
    }
  2. Replace the ManiaLink entry in the ManiaLink field by "file://ThePathTo/MainMenu.Script.txt"
And this should normally work.

I hope that helps !

User avatar
adamkooo2
Posts: 1248
Joined: 13 Jun 2014, 08:43
Location: Slovakia // Slovensko
Contact:

Re: How do you get manialinks to work in packs?

Post by adamkooo2 » 06 Jun 2018, 20:26

Did you include also the menu files (images, fonts, videos, scripts etc.) in your titlepack folder?
/\rkady
Image

User avatar
Platysynthesis
Posts: 43
Joined: 16 May 2015, 00:43
Location: United States

Re: How do you get manialinks to work in packs?

Post by Platysynthesis » 07 Jun 2018, 04:01

Qlex wrote:
06 Jun 2018, 10:05
Hi,

Here are the steps to including the manialink into your title pack :
  1. Create another textfile called MainMenu.Script.txt which contains something like :

    Code: Select all

    #RequireContext CManiaAppTitle
    
    main() {
    	declare Layer = UILayerCreate();
    	Layer.ManialinkPage = "file://Media/Manialinks/tm_rivals_main_menu.xml";
    
    	while(True) {
    		yield;
    	}
    }
  2. Replace the ManiaLink entry in the ManiaLink field by "file://ThePathTo/MainMenu.Script.txt"
And this should normally work.

I hope that helps !
Thank you for the help! But I have no idea why this needs to be so freaking complicated. Nadeo needs to do a better job showing us how these things work-- it's supposed to be a platform of user-generated content, right? Why is there no documentation about this, and why is the existing one so unfinished and cryptic?? It's so frustrating.
adamkooo2 wrote:
06 Jun 2018, 20:26
Did you include also the menu files (images, fonts, videos, scripts etc.) in your titlepack folder?
Ah, that's another problem of its own. I've made the interface in TrackMania Canyon, and when I put the assets I wanted into the ManiaPlanet\Media\Images folder, they couldn't be found within the Interface Designer at all. As a bit of a temporary solution, I uploaded them all to puush.me and used their links to be shown in the game.
Last edited by Platysynthesis on 07 Jun 2018, 04:06, edited 2 times in total.

User avatar
Alinoa
Nadeo
Nadeo
Posts: 4061
Joined: 14 Jun 2010, 11:55
Location: France, Paris
Contact:

Re: How do you get manialinks to work in packs?

Post by Alinoa » 08 Jun 2018, 10:02

User-generated content has been a priority and sometimes, the creation UIs are not self-explanatory, which requires the use of online tutorials or forums. All reports in that regard like yours are greatly appreciated.

That being said, we worked on improving accessibility by developing the TM / SM title maker: https://www.maniaplanet.com/titles/TMCanyonMaker@nadeo

Thanks again for your feedback ;)
Ubisoft Support
Your Player Page

More information about maniaplanet, support, contents, community activities: useful links

ManiaPlanet technical documentation portal (Dedicated server, Mediatracker, ManiaLink, ManiaScript, Titles...)

Post Reply

Return to “Title Pack & Custom Data Creation”

Who is online

Users browsing this forum: No registered users and 1 guest