PS2 Controller Hack Nets Codes for GTA
glengineer writes "Gotta love edisoncarter for his cheesy, brute force, and effective hack of the PS2 controller to discover cheats for Grand Theft Auto - San Andreas. He used the parallel port of his PC connected to relays on the PS2 controller to step thru the combinations of button pushing needed to obtain cheats that were not released by Rockstar."
By FAR, one of the best things to come about from A.D.D.
Apparently the webserver's connection is over a parallel port connection too.
I remember being a little kid, looking at Nintendo Power's codes section and wondering where all those codes came from. Did kids like me just sit there all day punching random codes in and seeing what happened?
Looks like someone figured out a way to do just that.
"We shall grapple with the ineffable, and see if we may not eff it after all." - Douglas Adams
This man must be using his PS2 as a server...
'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Probably an IBM PS/2, 80286. (If you've never heard of it, check into it. You'll stop wondering why a PC's "PS2" keyboard will not plug into your Play Station 2.)
Don't blame Durga. I voted for Centauri.
Why do these cheat codes exist in the final product? I can understand having them for development--they need to be able to test different parts of the game. Buy why would they still exist in the released version?
Heh heh heh! I love these kinds of hacks because they cut to the reason that PCs are both so useful and at the same time the bane of the movie, recording, and to some extent, the gaming industry. As far as I know, this hack to get the cheat codes doesn't violate any current laws (maybe the EULA for the game), but I can imagine the legal types at Rockstar not being too happy, especially if Rockstar planned to profit by publishing the codes later. In their zeal to protect IP like cheat codes, I'm sure that some would love to be able to ban PCs altogether or at least control access to various ports with DRM schemes. There's already at least one DRM enabled BIOS shipping.
To the making of books there is no end, so let's get started
So, how did the "relays" know when he'd actually found one? I'd read the article, if it was actually available.
SUre, it's easy to program some i/o lines to just twiddle all combinations of the buttons, but you have to have something that confirms that you actually hit something interesting.
I bet his system also plays a mean game of Tekken!
(joking, I love tekken...)
Slashdot - Mutual Assured Discussion
* Cheats were not officially released by Rockstar Games. They were discovered by edisoncarter from GTA Forums by wiring the PS2 controller up to the PC's parallel port and trying numerous combinations at high speed. Needless to say, this is not recommended for people to try at home, since it also requires special software to make this work.
-------------
but i'm more interested in the actual hardware. anyone find something about the hardware used?
it definitely looks like a db-25 parallel port; from the 'bitty picture, im guessing the white things on the top of the board are said relays, with the parallel port set to ECP or EPP, or even full bi-direction. But the real question is my understanding of the playstation controllers is that they speak a serial-uart communications to the ps2. Wouldn't it more elegant to rig up serial-out from a computer to the ps2?
I've been looking for a way for a long time to record inputs to a PC and play them back directly over a controller line according to a script, but I don't have the experience necessary with parallel ports to do such a thing. It would make QA much easier.
Did he post the source code somewhere? I'd love to have working base from which to, well, work.
- Chris
The ______ Agenda
Since all I see is a pic of the joystick on the main page, I wonder if he's trying out all the buttons (L3, R3, and the directions on the analog sticks as well as select and start)
Even with the 12 "buttons" he's pressing and an assumed maximum code length of 12 presses, he's got 12^12 possibilities -- 8916100448256. Testing that number of possibilities (with 12 button presses per possibility) means that if he can spit out something like 48 button presses a second that leaves him with 2,150,000 days to find all the combinations.
If the game has been out for 120 days (I don't know the real amount of time, I'm estimating), that joystick would have to be sending 1 million plus button presses a second to have a complete code list as of today? Anyone know how often the PS2 probes the joystick for button presses?
There is one key error in my math that might shrink the figure by a bit: if you have a range of 24 button presses that the joystick is sending, that could actually be a test of 12 different 12-lengthed codes. My *guess* (I can't prove it mathematically -- maybe someone else can) is that it would shrink times/sizes by a factor of 10. Meaning at 48 button presses a second you need 215,000 days or to have found every code as of today you would have need to be sending input at ~100,000 button presses a second. Even then, assuming the analog state of the joystick can be packed into a byte somehow, that exceeds parallel port speeds.
Add *ALL* the buttons into the mix, R3, L3, Select, Start, and the directions on the analog sticks and the problem just gets a whole lot harder.
Someone please correct me if my math is off. I really am curious to know how the guy discovered so many codes so quickly.
Maybe I'm too old and lame to be playing it, but there were a couple of missiong on GTA: VC which were just too hard for me to complete without using the 'slow motion' cheat codes.
I just went to http://gamewinners.com and found a ton of cheats.
Does he mow his lawn with a beard trimmer?
Shovel his walk with a spoon?
You get my point.
Some people say the controller vibrates when a cheat is entered, so the wires that make it vibrate could be hooked up to the parrallel port as well. I think a sound playes and text is displayed on the screen when a cheat is activated as well. He could just be sitting reading a book while the program is running and stop it when he sees a cheat. Then his program could step back through the last however many codes were tried to find the one that was the cheat.
The hell with free ammo, where's the code to get past that damned Supply Lines mission? Or a code to make any airplane-based activity in the game not suck?
From what I can tell, he leaves it on all day. He's using cheats and convienent locations to muffle or get rid of all the other sounds, and when the Cheat Confirmed box pops up and blips, Cool Edit catches it. Then, he just looks for the spikes in the otherwise flat sound wave, and cross-references to the program to see what code was entered at that time.
If you actually read the article, he says at the bottom that there are some cheats that have not been unlocked yet and still require the use of a cheat device. So he *hasnt* checked ALL the different combinations possible, only a number of them.
Plus, if you compile a list of cheats from the previous GTA games, and look closely at them all, you will actually start to see a pattern with the cheat codes. Theyre not just *random* button presses, theyre put in there by a developer who has just thought one up in their head and written it down. Take the first code on GTA: San Andreas, what is it?
R1 R2 L1 R2 L D R U L D R U
Look at it, you are going round the buttons on the right button pad in a circle twice. Its not random, its a logical number. Im sure with a bit of clever thinking and a well thought out program to brute force all logical numbers before random ones it would spit out plenty of working codes within a few days.
I was hoping some of the codes would be a little more interesting. These are pretty much typical codes (minus a few) and nothing that actually seems cool enough to have wasted as much time as this guy did setting it up to get them. They say that these codes were already available when using a cheat device (game genie) so I have to ask, what are the chances of this guy finding some "very special code" that was only intended for the developers/testers and would have never been released to the public otherwise?
My Xbox Live Gamer Card
man, I wish that rumored "mission select" cheat would show up though I wouldn't be shocked if they remove it before release...but that's one thing this game really lacks. I love playing through all the missions, but if I want to come back to an especially fun one I have to either play thorugh everything before it or do a lot of fiddling with my save games (which is extra confusing because the game will be saved with the name of the mission I just beat, not the one I want to play...)
SO YOU'RE GOING TO DIE: The Comic for Dealing with Death
Since sequences of buttons can be arbitrarily long, has he actually found all the possible cheats? Isn't he still working on that part?