Wine and game discs

Questions about Wine on Linux
Locked
BruceJohnJennerLawso
Level 1
Level 1
Posts: 8
Joined: Mon Jun 30, 2014 9:29 pm

Wine and game discs

Post by BruceJohnJennerLawso »

So Im drying to install an old copy of Star Wars Dark forces II on my Kubuntu Linux distro using wine. I managed to get the program installed on the virtual c drive ( home/user/.wine/drive_c ) using the installer on the game disc.

The trouble is, when I try to run the program under wine from the files installed to the virtual c drive, the executable starts up, but wont start due to the disc not being in the drive. This is in spite of the fact that the disc is in the drive. So, I tried copying the disc image to my hard drive and mounting it using the mount command, ie

mount -o loop discimage.iso /mnt/jedi_knight

but that still doesnt work, as the program says it still cant find the cd-rom.

Im a bit confused about how to make this work. How exactly did older games that needed to read files from a cd-rom locate the right disc, and how can I set this up to work on wine. Do I need to mount the disc image somewhere in .wine for wine programs to recognize it, or do I need to do something else?
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Re: Wine and game discs

Post by oiaohm »

BruceJohnJennerLawso loop under Linux is not a virtual cdrom drive so wine is unable to use it as a cdrom drive.

https://appdb.winehq.org/objectManager. ... on&iId=122
The game you are trying to run does not have the best history or any recent test.

Most common drive issues is open up winecfg go to drive tab and see if the cdrom/dvd drive is listed. Most case its not listed or declared as a cdrom drive. autodetect with a disc in drive can fix this.

No special mounts wine will find if it is told to find by winecfg.
BruceJohnJennerLawso
Level 1
Level 1
Posts: 8
Joined: Mon Jun 30, 2014 9:29 pm

Re: Wine and game discs

Post by BruceJohnJennerLawso »

Ahh, so the loop drive is just seen as a file folder for all intents and purposes.

So the cd-rom drive may not be recognized by wine, that does make sense. The drive was a portable USB one, so I can imagine why it wasnt autodetected. Is there any way to direct wine to look at a mounted disk image if necessary though? The portable drive belongs to my mum, so I may not always have it handy.

Im not sure I follow that last part about autodetect. Is it just something I need to set in winecfg for that particular cd-rom drive to auto-detect disks (like it probably would on ms windows...)
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine and game discs

Post by dimesio »

Wine can see mounted isos, but because a loopback mount is not hardware emulation, software that expects to interact with real optical hardware will not work. For that, you need to mount the iso with a hardware emulator such as CDEmu.

As for Wine's autodetect, mount a cd, open run winecfg, and click Autodetect on the drives tab. Note that disks have to be mounted in the host system first for Wine to detect them.
Locked