maniascript vscode extension update v1.3.2

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: maniascript vscode extension update v1.3.2

Post by reaby »

Download
Supports now both maniaplanet and trackmania apis.

http://reaby.kapsi.fi/trackmania/vscode ... 1.3.2.vsix

Setup
The extension can run without setup, but you will have very very old api in that case.

To get use the latest, extract the api from game to somewhere at your harddrive
example:

Code: Select all

trackmania.exe /generatescriptdoc=D:\trackmania\doc.h
(works same with maniaplanet, note the folder needs to exist) and add following lines to your vscode setttings.json (can be accessed from File->Preferences->Settings->Extensions->ManiaScript)
Remember to include the filename as well for doc.h, this is to have more versatile support, incase you wish to name it differently :)

For Maniaplanet:

Code: Select all

{
    "maniascript.apidocPath": "D:\\dev\\doc.h",
    "maniascript.useManiaplanetApi": true,
}
For new Trackmania:

Code: Select all

{
    "maniascript.apidocPath": "D:\\trackmania\\doc.h",
    "maniascript.useManiaplanetApi": false,
}
Changelog

* abstract doc.h loader, so i can parse both with same extension
* fixes colors for Null and Library enums
* deprecate configvalue of conf.maniascript.apidocPath
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 0 guests