Upcoming Games

(UTC times)


Full list
Add a game

Upcoming Events

No events to display

DirectDraw issues under wine for split-panel simulations

You are here: Home > Forum > General > General questions, comments, and issues > DirectDraw issues under wine for split-panel simulations

Page 1 of 1

DirectDraw issues under wine for split-panel simulations 25/04/2010 at 17:44 #1168
musicalmidget
Avatar
4 posts
Hello all

I've been extremely impressed by SimSig since I discovered it sometime last year. I've been using SimSig under Windows up to now, but since I'm primarily a Linux user I've been trying to get it working under wine. I've installed the SimSig base files and applied the regedit patch and subsequently I'm able to run many of the newer simulations such as Kings Cross and Trent.

Unfortunately though, my favourite simulation, Sheffield, doesn't work at all. In fact, I get the same error for any of the old style simulations that split the screen across multiple panels.

The error I get is this:

Cannot set DirectDraw display mode! Please ensure you have DirectX 3 or greater installed correctly and that your video card and monitor can support 1024x768 in 256 (8 bit) or more colours.

I've searched around for this problem and haven't yet found anything, which makes me think I've possibly missed something obvious. I don't believe I've ever installed DirectX under wine as I was under the impression wine was capable of somehow simulating DirectX environment. Is that actually the case?

Anyhow, any advice on how I could get this working properly under wine would be most appreciated.

Log in to reply
DirectDraw issues under wine for split-panel simulations 25/04/2010 at 17:44 #8760
musicalmidget
Avatar
4 posts
Hello all

I've been extremely impressed by SimSig since I discovered it sometime last year. I've been using SimSig under Windows up to now, but since I'm primarily a Linux user I've been trying to get it working under wine. I've installed the SimSig base files and applied the regedit patch and subsequently I'm able to run many of the newer simulations such as Kings Cross and Trent.

Unfortunately though, my favourite simulation, Sheffield, doesn't work at all. In fact, I get the same error for any of the old style simulations that split the screen across multiple panels.

The error I get is this:

Cannot set DirectDraw display mode! Please ensure you have DirectX 3 or greater installed correctly and that your video card and monitor can support 1024x768 in 256 (8 bit) or more colours.

I've searched around for this problem and haven't yet found anything, which makes me think I've possibly missed something obvious. I don't believe I've ever installed DirectX under wine as I was under the impression wine was capable of somehow simulating DirectX environment. Is that actually the case?

Anyhow, any advice on how I could get this working properly under wine would be most appreciated.

Log in to reply
DirectDraw issues under wine for split-panel simulations 25/04/2010 at 18:25 #8761
GeoffM
Avatar
6376 posts
Online
If your screen resolution is greater than 1024x768 you can run it windowed which doesn't require DirectX. Unfortunately to be able to switch it on you have to be running first!

I'll suggest this as you appear to be at least reasonably competent, but with dire warnings of hacking the registry etc, at your own risk, I can't take responsibility, etc. In the registry look under HKEY_CURRENT_USERSoftwareSimSigOptions and find the REG_DWORD which is probably set to zero (if it exists at all). Set it to 1 and the next time you start a paged simulation it should run in its own window.

I'm not a Linux or WINE expert by any stretch of the imagination, but I do know that people have been able to run it before - I don't know about DirectX under WINE.

SimSig Boss
Log in to reply
DirectDraw issues under wine for split-panel simulations 25/04/2010 at 18:39 #8763
musicalmidget
Avatar
4 posts
Excellent! That seems to have solved the problem.

Many thanks for your help.

Log in to reply
DirectDraw issues under wine for split-panel simulations 25/04/2010 at 19:18 #8767
Sacro
Avatar
1171 posts
GeoffM - Perhaps worth adding that to the wine reg file?
Log in to reply
DirectDraw issues under wine for split-panel simulations 25/04/2010 at 20:52 #8772
GeoffM
Avatar
6376 posts
Online
I've no idea how that works, Sacro! Somebody else wrote it.
SimSig Boss
Log in to reply
DirectDraw issues under wine for split-panel simulations 26/04/2010 at 16:23 #8777
musicalmidget
Avatar
4 posts
Here's a modified SimSig.reg file for anyone who needs it.

SimSig-regedit.zip

Log in to reply
DirectDraw issues under wine for split-panel simulations 26/04/2010 at 20:52 #8786
cpw
Avatar
14 posts
The registry change looks good musical, thanks!

To the root cause: this is a resolution issue at heart. Wine does emulate direct X, and has quite a capable direct draw emulation in place. There are two modes: an older mode and a new one based on GL. The new one (appears to be) is for those people, like yourself, that probably don't have XRandR capability in your X server, and need to scale the direct X window to full screen, rather than attempting to change resolution (which is probably what the failure actually was- your X environment is unable to set the required 1024x768 requested by SimSig).

This is all probably horribly rambling, but it's what I've pieced together over way too many years of playing SimSig and World of Warcraft under wine. (I have no other needs for wine. I think I might be a bit odd )

Hope this helps and that modified one might want to be added.

I wouldn't replace, because I (for one person) can run the older fullscreen sims fullscreen, so it's not a necessary step to a working wine setup.

Christian

Log in to reply