Files .INI help!

New releases and general discussions.

Post » Sun Dec 08, 2013 5:40 am

Helloo!

You have some idea of since "concealing" a file .INI in order that it is not edited.

Since I do not understand very well the "AppPatch&"

Thank you for his help!

If someone wants to prove my project: DescargarJonnhy102013-12-08 05:45:39
B
7
S
1
Posts: 13
Reputation: 794

Post » Sun Dec 08, 2013 7:17 am

AppPath says for the INI file stored in the same folder as game.exe, if you want to "encrypt" you'll be best to use something else, but a simple trick is just to rename .ini to another format that's unusual like .gfd (game-file-data? make anything up).

So to load and save to a "secret INI" do: AppPath & "gdat.gfd"
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
40
G
17
Posts: 2,197
Reputation: 19,433

Post » Sat Dec 28, 2013 10:14 pm

Something I've always found helpful was to create a file with a bizarre and very broad data system, like an .ini file just full of a bunch of things that make no sense with the useful data separations all using code names and even still having that data buried well inside all of the fluff. This way, if the user wanted to screw around with the game (and of course cheat it) he'd have to be some kind of super-genius to figure out how to separate the fluff data from the actually useful data.

As a side note, Jayjay is dominating the CC board!
B
12
S
4
G
3
Posts: 426
Reputation: 2,458

Post » Sun Dec 29, 2013 9:23 pm

@MrMiller also you could look into using data keys that verify the values eg:

[Object]
HP=30
HPMD5=34173cb38f07f89ddbebc2ac9128303f

Where the MD5 hash-code is equal to 30 (you can't reverse MD5 hash if I remember, so you run a hash of HP in the program then check it against the pre-stored HPMD5 hash code in the INI).

That would be possible to crack of course (unless you double-hashed it by re-hashing the MD5 code with an added secret code at the end of it inside your software). But it's definitely harder (Never tried any of this, but hopefully it all works!)

and haha thanks MrMiller Jayjay2013-12-29 21:23:28
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
40
G
17
Posts: 2,197
Reputation: 19,433


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests