Maniascript/Plugin documentation

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

krial057
Posts: 57
Joined: 13 Nov 2010, 20:15

Re: Maniascript/Plugin documentation

Post by krial057 »

Here is a list of functions I found out about the editor plugins for those who can't wait for the documentation ;) :
  • GetStartLineBlock
    GetBlockGroundHeight
    RemoveTerrainBlocks
    GetBlock
    PlaceMacroblock
    CanPlaceMacroblock
    PlaceTerrainBlocks
    CanPlaceTerrainBlocks
    PlaceRoadBlocks
    CanPlaceRoadBlocks
    CanPlaceBlock
    RemoveAllBlocksAndTerrain
    RemoveAllBlocks
    UpdateBlocksDisplay
    CameraHAngle
    CameraVAngle
    CursorMacroblockModel
    CursorTerrainBlockModel
    CursorBlockModel
    CursorDir
    CursorCoord
    SetViewMode_Underground
    IsViewMode_Underground
    IsPlaceMode_Test
    IsPlaceMode_CopyPaste
    IsPlaceMode_Skin
    IsPlaceMode_Macroblock
    IsPlaceMode_Block
    IsPlaceMode_Terraform
    SetDisplayMode_BlockStock
    DialogDoMessage
    SaveChallenge
    EnterEditMode_FreeLook
    EnterEditMode_Pick
    EnterEditMode_Erase
    EnterEditMode_Place
    SwitchViewMode_Underground
    EnterPlaceMode_Test
    EnterPlaceMode_CopyPaste
    EnterPlaceMode_Skin
    EnterPlaceMode_Macroblock
    EnterPlaceMode_Block
    EnterPlaceMode_Terraform
    AutoSave
    Help
    ComputeShadows
User avatar
aXu
Posts: 86
Joined: 18 Aug 2011, 19:34

Re: Maniascript/Plugin documentation

Post by aXu »

jonthekiller wrote:We wait a documentation for the moment. You have an example of the solitaire (file://Media/Manialinks/Solitaire/index.xml) and the file is in Program Data/ManiaPlanet/PacksCache/Maniaplanet_Extras.zip
I couldn't find it. Can you specify?
@krial: Thanks, I'll use that as a reference ;)
My latest TM2 track: FaceBase
Image
User avatar
jonthekiller
Translator
Translator
Posts: 4629
Joined: 15 Jun 2010, 11:07
Location: In Maniaplanet Alpha
Contact:

Re: Maniascript/Plugin documentation

Post by jonthekiller »

aXu wrote:
jonthekiller wrote:We wait a documentation for the moment. You have an example of the solitaire (file://Media/Manialinks/Solitaire/index.xml) and the file is in Program Data/ManiaPlanet/PacksCache/Maniaplanet_Extras.zip
I couldn't find it. Can you specify?
@krial: Thanks, I'll use that as a reference ;)
Try this : file://Media/Manialinks/Solitaire/index.xml :thumbsup:
Image
User avatar
aXu
Posts: 86
Joined: 18 Aug 2011, 19:34

Re: Maniascript/Plugin documentation

Post by aXu »

jonthekiller wrote:
aXu wrote:
jonthekiller wrote:We wait a documentation for the moment. You have an example of the solitaire (file://Media/Manialinks/Solitaire/index.xml) and the file is in Program Data/ManiaPlanet/PacksCache/Maniaplanet_Extras.zip
I couldn't find it. Can you specify?
@krial: Thanks, I'll use that as a reference ;)
Try this : file://Media/Manialinks/Solitaire/index.xml :thumbsup:
It really doesn't work that way - you're supplying me with a link to your hard drive. It's working only for you.
My latest TM2 track: FaceBase
Image
krial057
Posts: 57
Joined: 13 Nov 2010, 20:15

Re: Maniascript/Plugin documentation

Post by krial057 »

press the windows_key and the r key on the keyboard(or search for "run" under windows startbutton) and then enter the following:

Code: Select all

%programdata%/ManiaPlanet/PacksCache/Maniaplanet_Extras.zip
There you have to go under "Media/Manialinks/Solitare/index.xml" and open it with a texteditor.

To try solitaire out, move your cursor inside trackmania on the top. There you have to enter on the right of the houseicon the following:

Code: Select all

file://Media/Manialinks/Solitaire/index.xml
and happy playing ;)
User avatar
TGYoshi
Posts: 795
Joined: 15 Mar 2011, 16:59

Re: Maniascript/Plugin documentation

Post by TGYoshi »

Copy-paste the link in the TM browser bar where you normally type manialinks.
=3
User avatar
aXu
Posts: 86
Joined: 18 Aug 2011, 19:34

Re: Maniascript/Plugin documentation

Post by aXu »

krial057 wrote:press the windows_key and the r key on the keyboard(or search for "run" under windows startbutton) and then enter the following:

Code: Select all

%programdata%/ManiaPlanet/PacksCache/Maniaplanet_Extras.zip
There you have to go under "Media/Manialinks/Solitare/index.xml" and open it with a texteditor.

To try solitaire out, move your cursor inside trackmania on the top. There you have to enter on the right of the houseicon the following:

Code: Select all

file://Media/Manialinks/Solitaire/index.xml
and happy playing ;)
It works well in TM, but I don't have PacksCache folder. That was actually first place I looked for, but no, nothing. There's only Gamedata and Packs folders. Inside those, nothing important for this case. I actually searched for my whole HDDs and no Maniaplanet_Extras file was found :S
My latest TM2 track: FaceBase
Image
krial057
Posts: 57
Joined: 13 Nov 2010, 20:15

Re: Maniascript/Plugin documentation

Post by krial057 »

I think you did not what I said :evil:
I think you are looking in the installation folder, but the Programdata folder is not the folder where tm is installed and the maniaplanet.exe is.
You have to go in the Program data folder. You can find it by doing what i said:
krial057 wrote:press the windows_key and the r key on the keyboard(or search for "run" under windows startbutton) and then enter the following:

Code: Select all

%programdata%/ManiaPlanet/PacksCache/Maniaplanet_Extras.zip

Or if you are still not getting it, you have to find the path manualy. For me it was "C:\ProgramData\". It could be that the folder is hidden. (use google to find how to show hidden files and folders).
If your path is the same than mine you can enter this in your internetbrowser urlbar:
[url]file://C://ProgramData/ManiaPlanet/PacksCache/Maniaplanet_Extras.zip[/url]
svens
Posts: 97
Joined: 15 Jun 2010, 11:06
Location: Bern, CH
Contact:

Re: Maniascript/Plugin documentation

Post by svens »

Or you open the launcher, click the Help button and you'll find the path to the right of the "Move Game Data" button.
User avatar
aXu
Posts: 86
Joined: 18 Aug 2011, 19:34

Re: Maniascript/Plugin documentation

Post by aXu »

Now I found it, thanks to svens.
@krial: What's your OS? %programdata% is not valid environment variable, not at least in WinXP. Crazy thing that Maniaplanet installs those files to AllUsers folder, I had looked into my own appdata folder but didn't even think of all users. Thank you for your help, anyway (though, I'm not that noob with computers, but I there's no way you could've known it).

The actual reason I missed it was because of windows didn't find it with search so I thought I don't have in my computer. Well, next time I need to search something, I'll skip windows' default search function.

Hehe, I tested inserting that into a track. It really works! Next thing to find out can you block player inputs until you beat spider :D

EDIT: urgh, are you using Vista :S
My latest TM2 track: FaceBase
Image
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest