Sonic R 004801d9 error hack

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
16,148
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 10, 2009

Patched file released (by a visitor) www.mediafire.com/?f03fusqqy86win5
IDA Pro Freeware version: http://www.hex-rays.com/products/ida/support/download_freeware.shtml
I'm no longer supporting this hack at this time, and have re-opened comments to be posted immediately. If you can work out a better way, please discuss it.
See bottom of description for a possible patch:
If you try running Sonic R on a high end PC, you might get the error "The program encountered a problem at address 004801d9 and cannot continue"
People have proposed different methods of fixing the problem:
Set Windows 95 or 98/Me compatibility mode.
Find sonicr.exe in explorer and keep hitting enter until it runs.
Copy files manually to the hard drive and try running sonicr.exe.
None of these methods worked for my computer. I even tried running Sonic R in a Windows 98 virtual machine, and the same error came up.
Turns out at 004801d9 is the opcode "idiv ecx" and at addresses 00480184 and 004801a0 are calls to timeGetTime() which gets the system time in milliseconds.
The function here makes multiple calls to timeGetTime(), with delay loops in between, and uses the average of the results to calculate CPU speed.
If the results of the timeGetTime() calls subtracts to zero, such as will be caused by a 2.86 GHz Core 2 Quad Q9550, the code will try dividing by said result (zero) and throw an exception.
By setting a breakpoint at the second timeGetTime() call (at address 00480184) a delay is artificially produced which allows the game to run without error.

Patch (IDA Pro DIF format) Cut and paste below:
This difference file is created by The Interactive Disassembler

sonicr.exe
00070584: 2E B8
00070585: FF 31
00070586: 15 00
00070587: 8C 00
00070588: 05 00
00070589: 95 90
0007058A: 00 90
000705A0: 2E B8
000705A1: FF 01
000705A2: 15 00
000705A3: 8C 00
000705A4: 05 00
000705A5: 95 90
000705A6: 00 90

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (soundspark)

  • hi! how can I download the IDA?? please, I need help to play Sonic R.

  • @marianoyaguerrero Official link added to description.

  • SOMEONE PLEASE HELP ME!!! I started the game, but when I run it, I just get a black screen with two very small green dots somewhere on the screen! I have tryed waiting for it for a long time, but it does not work! So if somebody can help me fix this please do so! Much will be appreciated ;)

  • @videomaster350 Sorry, but I am not 100% sure. Next time, please don't use any private messages.

  • @soundspark ok, wat r u unsure about?

  • @videomaster350 I haven't been able to reproduce that situation.

see all

All Comments (94)

Sign In or Sign Up now to post a comment!
  • Well my keyboard isnt working....

  • @videomaster350 same here

  • @kokycarp Sorry, no discussions of illegal activities here.  Your message has been deleted.

  • Thanks and even the music seems to work (somehow I got it installed before on this computer without music but then deleted it and couldn't install it again because of this error). But do I have to run the IDA program and spam F9 every time I want to play Sonic R or is there a way to save it to or over the .exe file or something?

  • @videomaster350 You need to put the .exe in the folder you installed it in. Had same problem. However, then the keyboard won't work so you can't get past the direct 3d or draw screen.

  • didnt work :/ help!

  • Thank you! The game works perfectly now :D

  • @videomaster350 Well, how do you typ that comment then???

  • @KingOfDark1231 tsk the game isnt that hard and it can be beaten in a single day do it yourself on easy mode if you have to.

  • can someone gimme a free full savefile plz?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more