[Christmas Gift Delivered] A way to know if the player is racing (testing/validating) from the Map Editor or not

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

[Christmas Gift Delivered] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by Harest »

Hi,

This is my request for Christmas* to any Santa Claus in Nadeo that'll be able to hear my call.
I'm making a map (non RPG) for an upcoming event. That map will have an easter egg or side quest if you prefer. Maxi031 helped me and i improved his side quest script** used mainly (exclusively until then?) in RPG maps a bit since.

Context : This stuff works with the MediaTracker calling a Manialink with some parameters that will return a ManiaScript.
It works well, except that i've one issue i'd really want to be fixed but it's currently not possible.
Issue: There's currently no way in this context (CTmMlScriptIngame) to know if the player is playing the map in the editor. I first thought i could check the map UID but it (Map.MapInfo.MapUid) is not live changed.

So, i'd need from that Santa Claus to add any way to do that check, to prevent a very easy cheat.

Thanks in advance for your consideration, dear Santa Claus,
Regards, Harest.

*Preferably a bit earlier so it can be ready on time.
**We or i'll release that script alongside the map release.
reggie1000
Nadeo
Nadeo
Posts: 57
Joined: 29 Apr 2015, 17:48
Location: France

Re: [Christmas Gift Request] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by reggie1000 »

Ho ho ho...

Wouldn't a password on your map simply fix the issue to prevent players checking out your MediaTracker ?
Nadeo|Lama on ManiaPlanet :D
I work on the map editor, plugins and more.

Hit me up in french, dutch or english :thumbsup:
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

Re: [Christmas Gift Request] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by Harest »

Though i don't exactly know how strong they're, i've heard they're not really hard to find/bypass :/. So in theory yes, but in practice it doesn't seem so? :oops:

Also as weird as it sounds, i don't really like passwords on maps in the first place. I like to see how someone made his map sometimes, and if a player wants to do that on my map, eventually to get an item from it etc, i'm more than happy for (s)he to do so.

Security wise though, i don't know which one is the easiest to bypass. The password or what i suggested in the OP. Probably both to whoever really wants to cheat. But the thought behind the suggestion in the first place is to counter the one that wants to cheat fast & easy without any particular knowledge required (it's not entirely true, but i'm sure you know what i mean).
reggie1000
Nadeo
Nadeo
Posts: 57
Joined: 29 Apr 2015, 17:48
Location: France

Re: [Christmas Gift Request] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by reggie1000 »

I believe they're pretty safe, at least to discourage most honest players from trying to find secrets through there.

I understand that you do not like the idea of passwords on your maps, but people can always ask you the password or the item they want, if you trust them you can unlock them that way.
Do you think that people are really motivated enough to find a hidden MediaTracker trigger that they might not even know about in the first place to actually go out their way to download the map and try to bypass the password?
Nadeo|Lama on ManiaPlanet :D
I work on the map editor, plugins and more.

Hit me up in french, dutch or english :thumbsup:
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

Re: [Christmas Gift Request] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by Harest »

I'm always a bit trying to do too much on that aspect ^^. You might be right yep. I guess i'll do that and set a password and a message to anyone interested to not hesitate to contact me.

Thanks, Santa Claus.
Back to more ManiaScript coding to use JSON now, and then... Well then, integrating the 2nd quest because why not.
User avatar
mGuy
Posts: 55
Joined: 14 Feb 2015, 20:39

Re: [Christmas Gift Delivered] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by mGuy »

I heard from someone that even if you have password on map, it can be manipulated from replay editor where you use ghost recorder to drive around the map :cry:
»»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
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

Re: [Christmas Gift Delivered] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by Harest »

@mGuy : Technically by checking if IsSpectatorClient is equal to true, it prevents this.
User avatar
Miss
Posts: 2151
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: [Christmas Gift Request] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by Miss »

reggie1000 wrote: 13 Nov 2019, 15:07 Do you think that people are really motivated enough to find a hidden MediaTracker trigger that they might not even know about in the first place to actually go out their way to download the map and try to bypass the password?
The existance of this thread makes me more motivated to open it in the editor and see what's hidden :)
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
reggie1000
Nadeo
Nadeo
Posts: 57
Joined: 29 Apr 2015, 17:48
Location: France

Re: [Christmas Gift Request] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by reggie1000 »

Miss wrote: 14 Nov 2019, 11:26
reggie1000 wrote: 13 Nov 2019, 15:07 Do you think that people are really motivated enough to find a hidden MediaTracker trigger that they might not even know about in the first place to actually go out their way to download the map and try to bypass the password?
The existance of this thread makes me more motivated to open it in the editor and see what's hidden :)
Obviously. I think I should put a password on this thread :D
Nadeo|Lama on ManiaPlanet :D
I work on the map editor, plugins and more.

Hit me up in french, dutch or english :thumbsup:
User avatar
Harest
Posts: 144
Joined: 26 Mar 2018, 04:21
Contact:

Re: [Christmas Gift Delivered] A way to know if the player is racing (testing/validating) from the Map Editor or not

Post by Harest »

Ahahah.
Image

I'll create the thread to share the love on how to do all i did in my map. As the release date is far from now still (map is finished but event related, shhhh :p), but i just want to give this tool that Maxi031 gave me too in the first place. Kudos to him, and anyone that helped me.
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest