Not sure if this is bug or i am not using it right.
When making editor plugin if i I use IsTesting and IsValidating in while loop they are always False, even if am validating or testing the map.
CMapEditorPlugin::IsTesting
CMapEditorPlugin::IsTesting
My specs:
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
Re: CMapEditorPlugin::IsTesting
+1
editor plugin
editor plugin
»»m-Guy««
Also known as : sorrow , metal_guy_21 , metal_guy_22
Twitch : m-Guy's Twitch channel
Discord : m-Guy #2789
Youtube : m-Guy's Youtube channel
Maniaplanet username : sorrowcroatia1996
Also known as : sorrow , metal_guy_21 , metal_guy_22
Twitch : m-Guy's Twitch channel
Discord : m-Guy #2789
Youtube : m-Guy's Youtube channel
Maniaplanet username : sorrowcroatia1996
Re: CMapEditorPlugin::IsTesting
When you're racing (aka the case when validating or testing a map), none EditorPlugin is running afaik, at least the ones you enable from the Plugins "tab" in the MapEditor.
I know i wanted to add some stuff in an EditorPlugin before realising it'd not work the way i thought so i did a Manialink i call in a MT clip (same way as the quests) for what i wanted (displaying current position).
The thing is, IsTesting/IsValidating are const from CMapEditorPlugin, so i'm curious to know how you can actually use that.
I know i wanted to add some stuff in an EditorPlugin before realising it'd not work the way i thought so i did a Manialink i call in a MT clip (same way as the quests) for what i wanted (displaying current position).
The thing is, IsTesting/IsValidating are const from CMapEditorPlugin, so i'm curious to know how you can actually use that.
Re: CMapEditorPlugin::IsTesting
A variable being const doesn't mean you can't use it, it just means you can't change it.
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own.
Check out openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
Forum moderator, opinions are my own.
Check out openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
-
- Nadeo
- Posts: 57
- Joined: 29 Apr 2015, 17:48
- Location: France
Re: CMapEditorPlugin::IsTesting
IsValidating is working when you validate a map with Validate(); or with the validation flag button.
IsTesting is indeed not working because scripts are not being executed during a Test or Test map with mode. If the IsTesting is here though, it may be because of Turbo, where things may have been working differently to get the UI (showing speed etc) even while testing a map, without any mode.
But as the plugins are not being executed, you don't need any kind of "while(IsTesting) yield;" anyways currently.
I hope that I didn't forget any particular situation where it can still be used though, but if I find it I'll keep you updated.
IsTesting is indeed not working because scripts are not being executed during a Test or Test map with mode. If the IsTesting is here though, it may be because of Turbo, where things may have been working differently to get the UI (showing speed etc) even while testing a map, without any mode.
But as the plugins are not being executed, you don't need any kind of "while(IsTesting) yield;" anyways currently.
I hope that I didn't forget any particular situation where it can still be used though, but if I find it I'll keep you updated.
Nadeo|Lama on ManiaPlanet
I work on the map editor, plugins and more.
Hit me up in french, dutch or english
I work on the map editor, plugins and more.
Hit me up in french, dutch or english
Who is online
Users browsing this forum: No registered users and 2 guests