Page 1 of 1

Persistent variables need some protection

Posted: 28 Jul 2016, 13:28
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">).

Re: Persistent variables need some protection

Posted: 28 Jul 2016, 15:55
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