Allegro.cc - Online Community

Allegro.cc Forums » Allegro.cc Comments » Depot Review System

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Depot Review System
Carrus85
Member #2,633
August 2002
avatar

Clear all values? It is rather easy, just set them all to zero... Or better yet, set them to a number generated by a random number generator to really throw off people.

Seriously, if you are going to go to the trouble to write all of the values to disk, what is just an additional line setting the value to zero, or some other randomly generated value?

Phr00t
Member #2,008
March 2002

Quote:

Seriously, if you are going to go to the trouble to write all of the values to disk, what is just an additional line setting the value to zero, or some other randomly generated value?

I have it save it all to disk, because the game needs to remember everything when the player turns off the computer or whatever. Thank you, it sounds interesting, but I don't think that is the solution I am looking for.

kentl
Member #2,905
November 2002

I have not used memory trainers myself but i guess they work by checking the memory for certain values (which the user identifies in game) until they find the variable memory locations. Then, when the memory locations are found they let the user change those values at the located addresses. Or are they more sophisticated?

If not, why don't you try out a couple of ways yourself and see if you can fool (most of) them.

Suggestion1:
For example you could try storing each variable in another form (using the binary operator XOR for example to invert it, it is pretty fast). Or using something like x = x + 123 % sizeof(x). As the value will be changed it might be harder to look up.

Suggestion2:
You could try storing each variable in multiple locations (L1, L2, ... , Ln). WRITEing first checks that L1 ... Ln are all equal, if not someone has cheated. And then writes the same value to all locations. When READing you read from an arbitrary location Lx where 1 <= x <= n. Even if they can look up all locations they need to change them all, and all before you do your next WRITE or the cheating will be detected.

Suggestion3:
Suggestion1 && Suggestion2

Just some ideas, the above will slow down your program to a certain extent. But i wonder if it will ever be noticable (read as: i think not). ::)

amarillion
Member #940
January 2001
avatar

IMHO, if somebody wants a memory trainer, let him use a memory trainer.

kentl
Member #2,905
November 2002

Quote:

IMHO, if somebody wants a memory trainer, let him use a memory trainer.

I agree. I have never understood why to cheat in a game anyway? It spoils your own fun. It must be some 1337 thingy that passed me by. :)

Chris Katko
Member #1,881
January 2002
avatar

Quote:

IMHO, if somebody wants a memory trainer, let him use a memory trainer.

Except it defeats the purpose of an internet ranking system.

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

 1   2 


Go to: