Install a skin with maniacode

Talk about ManiaLink development in this forum

Moderator: NADEO

Bonfi96
Posts: 48
Joined: 29 Jul 2013, 18:29

Install a skin with maniacode

Post by Bonfi96 » 11 Aug 2013, 18:12

I'm having a bit of trouble making my first manialink
I can't understand a thing, is <file> the location where the file from the url will be installed? I took this code from the wiki.

Code: Select all

<install_skin>
	<name>Name of the skin</name>
	<file>Skins/Vehicles/CommonCar/Name of the skin.zip</file>
	<url>direct url of the skin</url>
</install_skin>
Do I have to put this mania code in a new xml file and link it from the main xml or there is a way to put it all in one file?
Also how can users download the locator along with the skin?

User avatar
TStarGermany
Posts: 470
Joined: 15 Jun 2010, 11:05
Contact:

Re: Install a skin with maniacode

Post by TStarGermany » 11 Aug 2013, 19:40

Code: Select all

<?xml version='1.0' encoding='utf-8' ?>
<maniacode>

<show_message>
	<message>You are about to install a Skin!</message>
</show_message>

<install_skin>
<name>TheDesiredNameOfTheSkinInTheMenu</name>
<file>Skins/Vehicles/ArenaPlayer/FileNameOfTheSkin.zip</file>
<url>http://yourdomain.com/UrlOfTheSkin.zip</url>
</install_skin>

</maniacode>
That's how a real complete XML Maniacode file can look like.
I've never tried mixing Manialink and Maniacode (which is usually a seperately registered manialink for payment) but you might give it a try.

And: When downloading a skin, the locator will be created automatically on the user's PC.

Bonfi96
Posts: 48
Joined: 29 Jul 2013, 18:29

Re: Install a skin with maniacode

Post by Bonfi96 » 11 Aug 2013, 20:01

Awesome, thanks :thumbsup:

Bonfi96
Posts: 48
Joined: 29 Jul 2013, 18:29

Re: Install a skin with maniacode

Post by Bonfi96 » 11 Aug 2013, 20:30

Now i have another problem I recieve an error when I click on the link "acces denied".
I've read on the forum that you have to register a maniacode.xml to make it work. So for every download I need to pay 100 planets???

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

Re: Install a skin with maniacode

Post by steeffeen » 11 Aug 2013, 20:54

just set the costs 0 planets :)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

    Bonfi96
    Posts: 48
    Joined: 29 Jul 2013, 18:29

    Re: Install a skin with maniacode

    Post by Bonfi96 » 11 Aug 2013, 21:08

    Removing the cost from the gbxs would remove the merchant and maker feeling that I have now when someone buys one of my creation :D

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

    Re: Install a skin with maniacode

    Post by steeffeen » 11 Aug 2013, 21:15

    if the costs are only set on the gbx then you don't have to pay for the download, just for using it
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks

      Bonfi96
      Posts: 48
      Joined: 29 Jul 2013, 18:29

      Re: Install a skin with maniacode

      Post by Bonfi96 » 11 Aug 2013, 21:22

      So why it says "acces denied"? Sorry but the whole thing is kinda confusing :/

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

      Re: Install a skin with maniacode

      Post by steeffeen » 11 Aug 2013, 21:39

        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks

        Bonfi96
        Posts: 48
        Joined: 29 Jul 2013, 18:29

        Re: Install a skin with maniacode

        Post by Bonfi96 » 11 Aug 2013, 21:43

        I've only registered the manialink and it works perfectly

        Post Reply

        Return to “ManiaLink”

        Who is online

        Users browsing this forum: No registered users and 1 guest