How to load custom map in a manialink?

Discuss everything related to custom data creation.

Moderator: NADEO

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

How to load custom map in a manialink?

Post by adamkooo2 » 04 Feb 2015, 18:58

How to load custom map in a manialink?
And would be able to launch it?

Hi and thanks for your answer ;)
/\rkady
Image

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

Re: How to load custom map in a manialink?

Post by Eole » 06 Feb 2015, 14:35

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?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!

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

Re: How to load custom map in a manialink?

Post by adamkooo2 » 06 Feb 2015, 16:00

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 ;)
/\rkady
Image

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

Re: How to load custom map in a manialink?

Post by Eole » 09 Feb 2015, 14:35

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" />
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!

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

Re: How to load custom map in a manialink?

Post by adamkooo2 » 09 Feb 2015, 21:51

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?
/\rkady
Image

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

Re: How to load custom map in a manialink?

Post by Eole » 11 Feb 2015, 14:20

It might work, but I'm not sure it would be the best solution.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!

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

Re: How to load custom map in a manialink?

Post by adamkooo2 » 11 Feb 2015, 17:48

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
/\rkady
Image

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

Re: How to load custom map in a manialink?

Post by adamkooo2 » 17 Mar 2015, 15:18

and replay?
/\rkady
Image

User avatar
w1lla
Posts: 2373
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: How to load custom map in a manialink?

Post by w1lla » 17 Mar 2015, 15:31

make it a .webm video and you can load it through the video tag of manialink
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
adamkooo2
Posts: 1345
Joined: 13 Jun 2014, 08:43
Location: Slovakia // Slovensko
Contact:

Re: How to load custom map in a manialink?

Post by adamkooo2 » 17 Mar 2015, 20:56

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.
/\rkady
Image

Post Reply

Return to “Title Pack & Custom Data Creation”

Who is online

Users browsing this forum: No registered users and 1 guest