Page 1 of 1

StartTestMapWithMode request

Posted: 04 Oct 2013, 13:36
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 :)

Re: StartTestMapWithMode request

Posted: 04 Oct 2013, 15:41
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