Page 1 of 2

How to load custom map in a manialink?

Posted: 04 Feb 2015, 18:58
by adamkooo2
How to load custom map in a manialink?
And would be able to launch it?

Hi and thanks for your answer ;)

Re: How to load custom map in a manialink?

Posted: 06 Feb 2015, 14:35
by Eole
Could you give us some precisions on what you're trying to achieve? Are you creating a menu with a list of maps and when someone click on a map of the list it loads it? Is it for a title pack menu, an ingame user interface?

Re: How to load custom map in a manialink?

Posted: 06 Feb 2015, 16:00
by adamkooo2
Yes.
It is user interface, but is behind the menu.
What I mean?
This: When User clicks on Play Solo button, it will open "Solo.xml" script. Then User clicks on Browse button= open "Browse.xml". When it loads, User clicks on each map and clicks on Play.
User= normal player

I hope, that you will understand ;)

Re: How to load custom map in a manialink?

Posted: 09 Feb 2015, 14:35
by Eole
You can use the following command in a Manialink to open a map from a campaign :

Code: Select all

maniaplanet://#campaign=map@TITLEID
You can find more info about the #campaign command in the Maniaplanet documentation.

Here are some examples. They will launch the map when you click on the blue quad.

Play the map named MyMapName in the title pack named MyTitlePackId :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=MyMapName@MyTitlePackId" scriptevents="1" />
Play the fifth map of the MyTitlePackId title pack campaign :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=#5@MyTitlePackId" scriptevents="1" />
Play the third map of the first group (usually A03) :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=#3,1@TITLEID" scriptevents="1" />

Re: How to load custom map in a manialink?

Posted: 09 Feb 2015, 21:51
by adamkooo2
Eole wrote:You can use the following command in a Manialink to open a map from a campaign :

Code: Select all

maniaplanet://#campaign=map@TITLEID
You can find more info about the #campaign command in the Maniaplanet documentation.

Here are some examples. They will launch the map when you click on the blue quad.

Play the map named MyMapName in the title pack named MyTitlePackId :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=MyMapName@MyTitlePackId" scriptevents="1" />
Play the fifth map of the MyTitlePackId title pack campaign :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=#5@MyTitlePackId" scriptevents="1" />
Play the third map of the first group (usually A03) :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=#3,1@TITLEID" scriptevents="1" />
Can I use maniacode?

Re: How to load custom map in a manialink?

Posted: 11 Feb 2015, 14:20
by Eole
It might work, but I'm not sure it would be the best solution.

Re: How to load custom map in a manialink?

Posted: 11 Feb 2015, 17:48
by adamkooo2
Eole wrote:You can use the following command in a Manialink to open a map from a campaign :

Code: Select all

maniaplanet://#campaign=map@TITLEID
You can find more info about the #campaign command in the Maniaplanet documentation.

Here are some examples. They will launch the map when you click on the blue quad.

Play the map named MyMapName in the title pack named MyTitlePackId :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=MyMapName@MyTitlePackId" scriptevents="1" />
Play the fifth map of the MyTitlePackId title pack campaign :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=#5@MyTitlePackId" scriptevents="1" />
Play the third map of the first group (usually A03) :

Code: Select all

<quad sizen="20 20" bgcolor="00c" url="#campaign=#3,1@TITLEID" scriptevents="1" />
Yeah, it works :3 :1010

Re: How to load custom map in a manialink?

Posted: 17 Mar 2015, 15:18
by adamkooo2
and replay?

Re: How to load custom map in a manialink?

Posted: 17 Mar 2015, 15:31
by w1lla
make it a .webm video and you can load it through the video tag of manialink

Re: How to load custom map in a manialink?

Posted: 17 Mar 2015, 20:56
by adamkooo2
I was very strange in the previous post:

When the User click on name of replay, it will normally open replay (type= .replay.gbx)

I am asking for replay load (like "play versus"), not for thumbnail.