Page 1 of 1

[TEC]Maniacode charges Planets but doesn't install the track

Posted: 12 Oct 2011, 23:10
by DivingDuck
Moin,

I´m pretty new to XML. Managed to create my ML anyway and am now trying to make a track available via my ML site. Unfortunately the track does not install, although the player´s account is charged the defined amount of Planets on download.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<maniacode noconfirmation="0">
  <show_message>
    <message>Thank you for downloading this track (20 Planets)</message>
  </show_message>
  <install_track>
    <name>ManiaCode_TestTrack</name>
    <url>http://filelocation/ManiaCode_TestTrack.Map.GBX</url>
  </install_track>
  <show_message>
    <message>Download completed. You have been charged 20 Planets!</message>
  </show_message>
</maniacode>
After trying several hours without success I added the following code to see whether it works with a skin. Surprisingly it does. The skin is downloaded and properly installed. The track however is lost in oblivion, it seems.

Code: Select all

  <install_skin>
    <name>DD_GreenCar</name>
    <file>Skins/Vehicles/CanyonCar/DD_GreenCar.zip</file>
    <url>http://filelocation/DD_GreenCar.zip</url>
  </install_skin>
What did I do wrong?

Regards,
DD

Re: [TEC]Maniacode charges Planets but doesn't install the t

Posted: 13 Oct 2011, 08:33
by jonthekiller
Now it's <install_map> and not <install_track> :thumbsup:

Re: [TEC]Maniacode charges Planets but doesn't install the t

Posted: 13 Oct 2011, 09:59
by DivingDuck
Moin,

thanks for your reply. It´s working like a charm now.

But something´s odd still. Although the code to download and install is

Code: Select all

<install_map>...</install_map>
the code to play the map/track is still

Code: Select all

<play_track>...</play track>
Strange, isn´t it? But both commands do work as expected. So, this is just for info.

Regards,
DD