More actions
BigBang1112 (talk | contribs) Add Maniacode with hello world instruction |
BigBang1112 (talk | contribs) m Add "Specific to" |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Maniacode''' is a sequential logic format written in [https://en.wikipedia.org/wiki/XML XML]. It is most often executed by opening it in a [[Manialink Browser]], but it is also possible to execute it with [[ManiaScript]]. | '''Maniacode''' is a sequential logic format written in [https://en.wikipedia.org/wiki/XML XML].<ref>https://doc.maniaplanet.com/manialink/maniacode</ref> It is most often executed by opening it in a [[Manialink Browser]], but it is also possible to execute it with [[ManiaScript]]. | ||
This feature has limited support in [[Trackmania 2020]]. | |||
== Reference == | == Reference == | ||
Line 20: | Line 22: | ||
=== Instructions === | === Instructions === | ||
Show message | ===== Show message ===== | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
Line 27: | Line 29: | ||
</show_message> | </show_message> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===== Install a replay ===== | |||
Parameter <code><name></code> will rename the replay.<ref name="tmf-wiki">https://web.archive.org/web/20140905200151/http://en.tm-wiki.org/wiki/ManiaCode_Tutorial</ref> | |||
<syntaxhighlight lang="xml"> | |||
<install_replay> | |||
<name>MyReplay</name> | |||
<url>https://.../MyReplay.Replay.Gbx</url> | |||
</install_replay> | |||
</syntaxhighlight> | |||
===== View a replay ===== | |||
The replay will not be saved on disk. Parameter <code><name></code> will rename the replay.<ref name="tmf-wiki"/> | |||
<syntaxhighlight lang="xml"> | |||
<view_replay> | |||
<name>MyReplay</name> | |||
<url>https://.../MyReplay.Replay.Gbx</url> | |||
</view_replay> | |||
</syntaxhighlight> | |||
===== Play against a replay ===== | |||
The replay will not be saved on disk. Parameter <code><name></code> will rename the replay.<ref name="tmf-wiki"/> | |||
<syntaxhighlight lang="xml"> | |||
<play_replay> | |||
<name>MyReplay</name> | |||
<url>https://.../MyReplay.Replay.Gbx</url> | |||
</play_replay> | |||
</syntaxhighlight> | |||
===== Install a skin ===== | |||
A skin can be: | |||
* Vehicle skin (<code>Skins/Vehicles/...</code>) | |||
* Mod | |||
* Avatar (<code>Skins/Avatars/...</code>) | |||
* Horn (<code>Skins/Horns/...</code>) | |||
* Sign | |||
<syntaxhighlight lang="xml"> | |||
<install_skin> | |||
<name>WikiSkin</name> | |||
<file>Skins/Vehicles/StadiumCar/WikiSkin.zip</file> | |||
<url>https://.../WikiSkin.zip</url> | |||
</install_skin> | |||
</syntaxhighlight> | |||
===== Get a skin ===== | |||
Downloads the skin to cache only. | |||
<syntaxhighlight lang="xml"> | |||
<get_skin> | |||
<name>WikiSkin</name> | |||
<file>Skins/Vehicles/StadiumCar/WikiSkin.zip</file> | |||
<url>https://.../WikiSkin.zip</url> | |||
</get_skin> | |||
</syntaxhighlight> | |||
===== Join a server ===== | |||
By server IP: | |||
<syntaxhighlight lang="xml"> | |||
<join_server> | |||
<ip>67.205.5.132:2350</ip> | |||
</join_server> | |||
</syntaxhighlight> | |||
By server login: | |||
<syntaxhighlight lang="xml"> | |||
<join_server> | |||
<login>trackmaniawiki_server</login> | |||
</join_server> | |||
</syntaxhighlight> | |||
===== Add a server to favourites ===== | |||
By server IP: | |||
<syntaxhighlight lang="xml"> | |||
<add_favourite> | |||
<ip>67.205.5.132:2350</ip> | |||
</add_favourite> | |||
</syntaxhighlight> | |||
By server login: | |||
<syntaxhighlight lang="xml"> | |||
<add_favourite> | |||
<login>trackmaniawiki_server</login> | |||
</add_favourite> | |||
</syntaxhighlight> | |||
===== Redirect to another [[Manialink]] or Maniacode ===== | |||
Expects a manialink code.<sup>[supports URL?]</sup> | |||
<syntaxhighlight lang="xml"> | |||
<goto> | |||
<link>trackmaniawiki</link> | |||
</goto> | |||
</syntaxhighlight> | |||
==== Specific to [[TrackMania United Forever]] ==== | |||
===== Install a track ===== | |||
Parameter <code><name></code> will rename the track.<ref name="tmf-wiki"/> | |||
<syntaxhighlight lang="xml"> | |||
<install_track> | |||
<name>MyTrack</name> | |||
<url>http://.../MyTrack.Challenge.Gbx</url> | |||
</install_track> | |||
</syntaxhighlight> | |||
===== Play a track ===== | |||
Parameter <code><name></code> will rename the track.<ref name="tmf-wiki" /> | |||
<syntaxhighlight lang="xml"> | |||
<play_track> | |||
<name>MyTrack</name> | |||
<url>http://.../MyTrack.Challenge.Gbx</url> | |||
</play_track> | |||
</syntaxhighlight> | |||
===== Add a buddy ===== | |||
<syntaxhighlight lang="xml"> | |||
<add_buddy> | |||
<login>skycrafter</login> | |||
</add_buddy> | |||
</syntaxhighlight> | |||
===== Install a track pack ===== | |||
This will install the track pack into <code>Tracks/Challenges/Downloaded/Manialink/MyTrackPack</code>.<sup>[confirm?]</sup> | |||
<syntaxhighlight lang="xml"> | |||
<install_track_pack> | |||
<name>MyTrackPack</name> | |||
<track> | |||
<name>MyTrack1</name> | |||
<url>http://.../MyTrack1.Challenge.Gbx</url> | |||
</track> | |||
<track> | |||
<name>MyTrack2</name> | |||
<url>http://.../MyTrack2.Challenge.Gbx</url> | |||
</track> | |||
</install_track_pack> | |||
</syntaxhighlight> | |||
==== Specific to [[Maniaplanet]] ==== | |||
===== Install a map ===== | |||
<syntaxhighlight lang="xml"> | |||
<install_map> | |||
<name>MyMap</name> | |||
<url>https://.../MyMap.Map.Gbx</url> | |||
</install_map> | |||
</syntaxhighlight> | |||
===== Play a map ===== | |||
<syntaxhighlight lang="xml"> | |||
<play_map> | |||
<name>MyMap</name> | |||
<url>https://.../MyMap.Map.Gbx</url> | |||
</play_map> | |||
</syntaxhighlight> | |||
===== Install a script ===== | |||
<syntaxhighlight lang="xml"> | |||
<install_script> | |||
<name>MyScript</name> | |||
<file>Scripts/EditorPlugins/Trackmania/MyScript.Script.txt</file> | |||
<url>https://.../MyScript.Script.txt</url> | |||
</install_script> | |||
</syntaxhighlight> | |||
===== Install a title pack ===== | |||
<syntaxhighlight lang="xml"> | |||
<install_pack> | |||
<name>My Title Pack</name> | |||
<file>Packs/My_Title_Pack@trackmaniawiki.Title.Pack.Gbx</file> | |||
<url>https://.../My_Title_Pack@trackmaniawiki.Title.Pack.Gbx</url> | |||
</install_pack> | |||
</syntaxhighlight> | |||
===== Add a buddy ===== | |||
<code><add_buddy></code> is understood, but since [[Maniaplanet]] 4, it is no longer functioning. | |||
==Notes== | |||
<references /> |
Latest revision as of 22:17, 19 August 2025
Maniacode is a sequential logic format written in XML.[1] It is most often executed by opening it in a Manialink Browser, but it is also possible to execute it with ManiaScript.
This feature has limited support in Trackmania 2020.
Reference[edit]
Standard structure of the file:
<?xml version='1.0' encoding='utf-8' ?>
<maniacode>
<!-- instructions -->
</maniacode>
To disable the confirmation dialog, set noconfirmation="1"
:
<maniacode noconfirmation="1">
Instructions[edit]
Show message[edit]
<show_message>
<message>Hello World!</message>
</show_message>
Install a replay[edit]
Parameter <name>
will rename the replay.[2]
<install_replay>
<name>MyReplay</name>
<url>https://.../MyReplay.Replay.Gbx</url>
</install_replay>
View a replay[edit]
The replay will not be saved on disk. Parameter <name>
will rename the replay.[2]
<view_replay>
<name>MyReplay</name>
<url>https://.../MyReplay.Replay.Gbx</url>
</view_replay>
Play against a replay[edit]
The replay will not be saved on disk. Parameter <name>
will rename the replay.[2]
<play_replay>
<name>MyReplay</name>
<url>https://.../MyReplay.Replay.Gbx</url>
</play_replay>
Install a skin[edit]
A skin can be:
- Vehicle skin (
Skins/Vehicles/...
) - Mod
- Avatar (
Skins/Avatars/...
) - Horn (
Skins/Horns/...
) - Sign
<install_skin>
<name>WikiSkin</name>
<file>Skins/Vehicles/StadiumCar/WikiSkin.zip</file>
<url>https://.../WikiSkin.zip</url>
</install_skin>
Get a skin[edit]
Downloads the skin to cache only.
<get_skin>
<name>WikiSkin</name>
<file>Skins/Vehicles/StadiumCar/WikiSkin.zip</file>
<url>https://.../WikiSkin.zip</url>
</get_skin>
Join a server[edit]
By server IP:
<join_server>
<ip>67.205.5.132:2350</ip>
</join_server>
By server login:
<join_server>
<login>trackmaniawiki_server</login>
</join_server>
Add a server to favourites[edit]
By server IP:
<add_favourite>
<ip>67.205.5.132:2350</ip>
</add_favourite>
By server login:
<add_favourite>
<login>trackmaniawiki_server</login>
</add_favourite>
Redirect to another Manialink or Maniacode[edit]
Expects a manialink code.[supports URL?]
<goto>
<link>trackmaniawiki</link>
</goto>
Specific to TrackMania United Forever[edit]
Install a track[edit]
Parameter <name>
will rename the track.[2]
<install_track>
<name>MyTrack</name>
<url>http://.../MyTrack.Challenge.Gbx</url>
</install_track>
Play a track[edit]
Parameter <name>
will rename the track.[2]
<play_track>
<name>MyTrack</name>
<url>http://.../MyTrack.Challenge.Gbx</url>
</play_track>
Add a buddy[edit]
<add_buddy>
<login>skycrafter</login>
</add_buddy>
Install a track pack[edit]
This will install the track pack into Tracks/Challenges/Downloaded/Manialink/MyTrackPack
.[confirm?]
<install_track_pack>
<name>MyTrackPack</name>
<track>
<name>MyTrack1</name>
<url>http://.../MyTrack1.Challenge.Gbx</url>
</track>
<track>
<name>MyTrack2</name>
<url>http://.../MyTrack2.Challenge.Gbx</url>
</track>
</install_track_pack>
Specific to Maniaplanet[edit]
Install a map[edit]
<install_map>
<name>MyMap</name>
<url>https://.../MyMap.Map.Gbx</url>
</install_map>
Play a map[edit]
<play_map>
<name>MyMap</name>
<url>https://.../MyMap.Map.Gbx</url>
</play_map>
Install a script[edit]
<install_script>
<name>MyScript</name>
<file>Scripts/EditorPlugins/Trackmania/MyScript.Script.txt</file>
<url>https://.../MyScript.Script.txt</url>
</install_script>
Install a title pack[edit]
<install_pack>
<name>My Title Pack</name>
<file>Packs/My_Title_Pack@trackmaniawiki.Title.Pack.Gbx</file>
<url>https://.../My_Title_Pack@trackmaniawiki.Title.Pack.Gbx</url>
</install_pack>
Add a buddy[edit]
<add_buddy>
is understood, but since Maniaplanet 4, it is no longer functioning.