Sharpkeys codeplex wiki11/8/2022 Interesting are several occasions of the hash 0. I haven't tried modifying it (might trigger an integrity check if done bluntly) but it might be possible. The table of hashes is directly readable from gta_sa.exe (at least my version) – search for 7D 23 4B DE in a hex editor and mind the byte order. I haven't looked into the exact set of characters possibly included in a code, but at least the letters and numbers are allowed. For example, "OHDUDE" reverses into "EDUDHO" and the corresponding hash is the CRC32 of that (only the 6 actual characters), which is E958788Ah. It's applied to the upper case string in 8-bit ASCII in reverse order. The hash function is a kind of CRC32 – standard polynomial, reverse bit order, pre-inversion AFAICT how they are classified see below for code. Maybe if you know the effect of the cheat and have just a handful of these to choose from, but that's not really the case with long codes.įor those able to program and interested in finding codes but not in reverse engineering GTA code, here are the technical details (possibly already available somewhere, but I found RE'ing it more fun than googling): SHARPKEYS CODEPLEX WIKI CODEYou could check if pressing the relevant mouse buttons in the middle of some cheat code stops the cheat from working (still works for me).Įven more off topic: (I'm happy to continue in private.) About finding the originally intended phrases to activate each cheat, well that's a tall order especially if some of them actually are 29 characters long! I mean even if you can enumerate them all fast, how do you automatically guess which one of a huge number of possibilities it is? Who's to say on a glance if FUNDAMENTALRESTACHIEVED (someone died) or BACKROOMRESISTANCE (covert riot) or TESTEDUCATIONALSKILLS like already mentioned, are intended? RECOMMENDEDCHARACTERSATURDAY probably isn't. Sounds odd that mouse buttons would interact with the cheat system somehow. In Tirean's case something else is happening though, if cheats really activate without pressing anything other than W on the keyboard (or other controllers that produce keypresses) and not even releasing W in the middle. Going with just WAD, the shortest ones are 16 presses, like DDDDDDDAAAAAADWD which is actually reasonably possible to hit accidentally, compared to totally random looking ones. The longer you go the more options there are of course. There are plenty of working combinations for any reasonable set of keys, for example there are 9 different cheats reachable by 14 presses of WSAD (the cutest of them: Aaaa! Dad saw a daw!) and even one with only 12 presses: WWDWASWWDWAS – an unlikely coincidence (!?) that it's a single string repeated twice. (assuming a perfect hash function don't know exactly in this case) Statistically you do have to mash a lot to hit one by accident but of course there could be particularly easy sequences to hit using regularly used keys. Since the game checks string lengths from 6 to 29 and there are 88 hashes matched against, there's roughly a 24*88/2³² ~ 1 in 2 million chance of each new keypress triggering a cheat.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |