Sunday, May 9, 2010

Road rash on Linux using wine

For a lot of us, Roadrash is a game that is going to remain close to our hearts forever! Countless hours spent in front of the PC while kicking and punching others, or even on the LAN fending off your room-mate. For a lot of us, this has been THE introduction to computer video games.

Downloading the game is pretty easy, actually. I got mine at http://www.download-full-games.com/pc/sports/road_rash.html

The tricky part is to get to run it on Linux. In my case, Ubuntu Linux is the only operating system I have: I honestly don't need Windows for much. This game, however, runs only on Windows and so the quintessential wine came to the rescue. So then I unzipped the file and from the command prompt typed:

sudipta@Hogwarts:~/roadrash$ wine ROADRASH.EXE

This unfortunately leads to the "CD-Rom not found" error. The fix to this, as we all know, is to have the registry edited. There is a SETREG.EXE which you can run, but then the state is not persistent. As in, if you run

sudipta@Hogwarts:~/roadrash$ wine SETREG.EXE
sudipta@Hogwarts:~/roadrash$ wine ROADRASH.EXE

Then the registry was just altered when the last wine command was run, not this time. So I opened up the RASH.REG file and found that it contained:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\RoadRash 95]
@=""
"Path"="D:\\"
"CheckDialup"=hex:00
"ChatState"=hex:02
"MiniDash"=hex:00
"OpponentList"=hex:01 

Which basically means that the above Windows registry value needed editing. This in turn led me back to the .wine folder in my home directory. Lo and behold, there was a system.reg file with lots of Registry-like entries.

sudipta@Hogwarts:~/.wine$ gedit  system.reg

So I simply added a section right on top that said:

[SOFTWARE\\Electronic Arts\\RoadRash 95]
@=""
"Path"="D:\\"
"CheckDialup"=hex:00
"ChatState"=hex:02
"MiniDash"=hex:00
"OpponentList"=hex:01 

This was because there was an entry right on top that said, ";; All keys are relative to \\Machine". And now when I run


sudipta@Hogwarts:~/roadrash$ wine ROADRASH.EXE

I get



Viola! Ah the joys of kicking the next guy off the road... :D

13 comments:

  1. my syste.reg file is completely empty. nothing is written. when i anyway pasted the code from rash.reg, nothing happened. my game is still not running :(

    ReplyDelete
  2. i got the error $ wine: cannot find L"C:\\windows\\system32\\SETREG.EXE"

    ReplyDelete
  3. Angelina, can you run other applications from wine, like Notepad? I suspect your wine installation might not be right.

    Ashish, again - does Notepad run in your wine environment?

    ReplyDelete
  4. Tried this but unfortunately didn't work. Am I missing something? I get the same CD Rom not found error

    ReplyDelete
  5. Raj, try and run wine first just like that, and then try the regedit and see if it works.

    ReplyDelete
  6. I configured regedit as you posted on your blog but is not working. i am getting the same error "Could not found any CD-Rom drive".
    Please help me.

    ReplyDelete
  7. i did as you said. i am still getting the same error.

    ReplyDelete
  8. hi! could you help me with road rash? may you send a mail to me:

    pedryvo@gmail.com

    thanks!

    ReplyDelete
  9. Hey i got a solution to the error (CD-ROM not found). Just run PowerISO or Daemon tools in wine and create a virtual road rash disk image. then follow all the abovesaid steps to make road rash work seamlessly in wine

    ReplyDelete
  10. Hey it will work.Insert the game CD and create its image.just mount it in any wist drive and see how fine it works. Just follow all the registry tweaks.

    ReplyDelete
  11. Receiving this err:-

    winevdm: Cannot start DOS application Z:\home\yash\Games\roadrash\SETREG.EXE because vm86 mode is not supported on this platform. Try running this application with DOSBox.

    ReplyDelete
  12. Just use this script: https://gist.github.com/sarkian/c0b73dbdd7aa24562504

    ReplyDelete
  13. Still getting the same error.

    ReplyDelete