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

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
DivingDuck
Posts: 46
Joined: 14 Sep 2011, 18:45
Contact:

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

Post 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
Image

Notebook: AW M17xR4
OS: Windows 7x64 Ultimate SP1
CPU: i7-3610QM
RAM: 32GB DDR3 @1600MHz
GPU: ATI HD7970M
Motherboard: Alienware M17xR4
Chipset: Intel PCH HM77
HDD(s): SSD830 256GB + ST100LM024 HN-M101MBB
Sound: SB Recon3Di
Monitor: Wacom Cintiq 22HD
User avatar
jonthekiller
Translator
Translator
Posts: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

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

Post by jonthekiller »

Now it's <install_map> and not <install_track> :thumbsup:
Image
User avatar
DivingDuck
Posts: 46
Joined: 14 Sep 2011, 18:45
Contact:

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

Post 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
Image

Notebook: AW M17xR4
OS: Windows 7x64 Ultimate SP1
CPU: i7-3610QM
RAM: 32GB DDR3 @1600MHz
GPU: ATI HD7970M
Motherboard: Alienware M17xR4
Chipset: Intel PCH HM77
HDD(s): SSD830 256GB + ST100LM024 HN-M101MBB
Sound: SB Recon3Di
Monitor: Wacom Cintiq 22HD
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 0 guests