StartTestMapWithMode request

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
kastun
Posts: 18
Joined: 28 Oct 2012, 10:05

StartTestMapWithMode request

Post by kastun »

I'm working on a mode and therefore also on a maptype.
While working on the maptype I thought it would be nice to have a button to test with the mode directly, so you don't have to search for the correct one in the list.

That was no problem:

Code: Select all

StartTestMapWithMode("ModeName");
But there is a problem if the mode does not exist.
The procedure StartTestMapWithMode failed to complete : Couldn't load mode script.
I didn't found a possibility to check if the mode exists. It would help if StartTestMapWithMode returns False if the mode does not exist or cannot be loaded.

Thanks if you can do that :)
Last edited by kastun on 04 Oct 2013, 17:46, edited 1 time in total.
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: StartTestMapWithMode request

Post by steeffeen »

it's supposed to be

Code: Select all

StartTestMapWithMode("XMode.Script.txt");
//Edit: i was wrong with my inital post :D
it would be definitely good if the script wouldn't just fail, i agree
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    Post Reply

    Return to “ManiaScript”

    Who is online

    Users browsing this forum: No registered users and 2 guests