"Save game"s and script minification

Discussion and feedback on Construct 2

Post » Fri Jun 10, 2016 4:54 pm

Minification script when exporting affect the contents of the files created by the actions "System -> Save game" or "LocalStorage -> Set Item" ?
B
17
S
6
G
1
Posts: 135
Reputation: 2,033

Post » Mon Jun 13, 2016 6:40 pm

I'm just trying to understand how it is from the point of view of safety.
What is more safe: use "Save game to slot" or save state with "Local Storage" ?
Which is easier to open and see the names of variables and the contents of the array?
Or the same?
B
17
S
6
G
1
Posts: 135
Reputation: 2,033

Post » Tue Jun 14, 2016 9:52 am

Minification does not affect the savegame format at all. In fact it should not actually affect anything, other than making the game's download smaller.

The savegame system uses the same storage as local storage internally, so it doesn't make much difference which you use. No save system is hack-proof and there's not much difference on that point either.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Post » Wed Jun 15, 2016 9:36 pm

Ashley wrote:Minification does not affect the savegame format at all. In fact it should not actually affect anything, other than making the game's download smaller.


Yes, minification itself should not affect anything instead download size. But ADVANCED_OPTIMIZATIONS mode of Google Closure Compiler must make "extremely difficult for anybody to reverse engineer your game", or not? I'm talking about c2runtime.js now . I wrote "minification" because export option called "minify script", but i mean obfuscation too
because this option run ADVANCED_OPTIMIZATIONS mode of Google Closure Compiler, or I am wrong?

Ashley wrote:The savegame system uses the same storage as local storage internally, so it doesn't make much difference which you use. No save system is hack-proof and there's not much difference on that point either.


Uderstood. Thank you! I will try to obfuscate gamesaves via LocalStorage by hands

P.S. Why am I saying all this? I understand that any door can be opened, but in my opinion is better to have door and to keep it closed. And obfuscation of the main js file is closing of this door. But it turns out that there is a full state save file, through which you can learn a lot about the internal structure of your program. Want to do something with it.
B
17
S
6
G
1
Posts: 135
Reputation: 2,033


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests