|
|
Re: Missions Info saved in extern file... Gamer shouldn't manipulate
[Re: Espér]
#397935
03/25/12 19:52
03/25/12 19:52
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
I think he means with easily that you can use save files from other people... The game will not see if its cheated, even not with encryption... Try to write your own savefunction. I would make a vb program which write it to registry and just call this program with exec!
Last edited by Ch40zzC0d3r; 03/25/12 19:52.
|
|
|
Re: Missions Info saved in extern file... Gamer shouldn't manipulate
[Re: Benni003]
#397958
03/25/12 22:07
03/25/12 22:07
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
If you are saving to the registry...(my preferred suggestion) (make sure the registry key name/path SOUNDS like it has nothing to do with your game)
At run-time, try to open the registry-entry that hold the ID-key. a> If it suceedes, it is NOT the first time, so use ID-key from the registry. b> If it fails, generate a new random ID-key, save to the registry, and use that key.
If you are saving to a config file...(I advise against) Create a config-file (during installation) that contains an 'invalid' key_id. Also try to hide the ID-key in the middle of lots of useless data. Another also, try to name this config file so it doesnt SOUND like a config file, say EXE.
At run-time, open the config file and read the ID-key. a> If it matches the 'invalid' ID-key, it is the first time, so generate a new VALID ID-key and save it to the config file. b> If it doesnt match the "invalid" ID-Key, then is it a VALID ID-key so use it.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: Missions Info saved in extern file... Gamer shouldn't manipulate
[Re: Benni003]
#397960
03/25/12 22:08
03/25/12 22:08
|
Joined: Mar 2008
Posts: 2,247 Baden Württemberg, Germany
Espér
Expert
|
Expert
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
|
create a dummy config file, and read this out. Save each line into a string. Now, check with str_len, if the string is empty f.e. in a decrypted file: resolution= difficulty= mapname= now you read that out. The result would be: string1 = "resolution=" string2 = "difficulty=" string3 = "mapname=" Now you know "resolution=" has 11 signs.. so ask
if(str_len(string1) > 11)
now you can clip the first signs away, if the string is longer than 11 signs:
if(str_len(string1) > 11)
{
str_clip(string1, 11);
}
what happens: If the string is longer than "resolution=", the prefix is clipped away.. so string1 only contains the config Now you asked how the engine recognizes the first startp.. really simple.. create a point called "firstup= game_id=" in your config file.. and ask if theres a value behind "firstup=" ^^ if NO, it´s the first startup. if YES, the engine should read the game_id wich is saved one string later. Edit: Got ninjad by EvilSOB.. Dude.. so fast >.<
Last edited by Espér; 03/25/12 22:08.
|
|
|
Re: Missions Info saved in extern file... Gamer shouldn't manipulate
[Re: Benni003]
#397986
03/26/12 09:02
03/26/12 09:02
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Benni003: Cool. Glad to hear it!
Esper: I may have ninjad you, but my post was JUST a text-wall. Your post is pretty, with formatting, and code samples an stuff. Much more time-consuming...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
|