Persistent variables need some protection

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Persistent variables need some protection

Post by Dommy »

Yop,

I use persistent variables in almost all of my creations. Problem is, that if persistent is in manialink it can be easily stolen using console (Ctrl + G). It's important, because persistent variables can be used to make custom rankings and someone else is able to recover them and cheat.

My solutions:
The best - hide names of persistent variables in debugger (replace name with Persistent#01 or anything else.
Also good - add #PersistentKey number just like a #Constant. All scripts with the same code will share persistents.
The worst - allow us to hide manialink from debugger (<manialink hidescript="1">).
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
User avatar
Nerpson
Translator
Translator
Posts: 1554
Joined: 27 Sep 2013, 18:02
Location: France
Contact:

Re: Persistent variables need some protection

Post by Nerpson »

Or, change the logic of error prompts, and only show them when the script has a #Const named DebugMode that equals True. So, when this constant does not exists, do like Windows and show a popup.

Image
ImageImageImageImage
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest