• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

CFS2 audio problems?

Saying it is an Win10 problem is a misnomer. It is really a Video Card problem that happened to show up for us with Win10 but it also happened to real late Win7 and 8 PCs with real new (at the time Video Cards). Your Vid Card is around 2012/2013 and 2/3 years before Win10 and isn't effected but what is an common problem by 2015/2016.

My RX580 is grayed out in game but able to be on by manual cfs2.cfg editing.

rx580.png
 
Saying it is an Win10 problem is a misnomer. It is really a Video Card problem that happened to show up for us with Win10 but it also happened to real late Win7 and 8 PCs with real new (at the time Video Cards). Your Vid Card is around 2012/2013 and 2/3 years before Win10 and isn't effected but what is an common problem by 2015/2016.

My RX580 is grayed out in game but able to be on by manual cfs2.cfg editing.

View attachment 88394


Mine suffered the same problems yours does and used to be greyed out too. I looked around for a compatible DXWrapper and found this Releases · elishacloud/dxwrapper · GitHub
It works perfectly and now I can also see the plane in the change modify window and can change settings without need to re-edit the cfs2.cfg

Cheers
Aussie
 
Seen dxwrapper tried to use it but no idea how it works. Care to share your setting, configs .etc?

The documentation is garbo for dxwrapper IMO. I can open the cnc-ddraw .ini and it will tell me what every flag dose. Shoving all of the .inis for all of the dlls into a common .ini is also hell. No idea what flag is used by what .dll.
 
When you DL it and copy ddraw.dll, dsound.dll or winmm.dll from the Stub folder to the main CFS2 directory. Copy dxwrapper.dll and dxwrapper.ini to same location.

Open dxwrapper.ini and set the compatibility section as below

[Compatibility]
Dd7to9 = 0
D3d8to9 = 0
DDrawCompat = 1
Dinputto8 = 0
DisableGameUX = 0
DxWnd = 1
EnableDdrawWrapper = 1
EnableD3d9Wrapper = 0
EnableDinput8Wrapper = 0
EnableDsoundWrapper = 1
HandleExceptions = 0
SingleProcAffinity = 0


I'm experimenting with other options but haven't had much luck yet. Also, it doesn't like windowed mode so run it in full screen


Cheers
Aussie
 
When I took the screenshot I posted I was in windowed mode and when I tried reloading CFS2 it wouldn't load. Maybe it was a glitch, so I'll try again.

Cheers
Aussie
 
The needed flags are only for DDraw. The Dsound.dll Wrapper (EnableDsoundWrapper=) doesn't seem to do any good for CFS2. Tried it and none of the setting helped with the CFS2 sound problems. The DxWnd.dll (DxWnd) can't be used with CFS2 It just crashes CFS2 at start. So only the dxwrapper.dll dxwrapper.ini and ddraw.dll are needed with the below settings.

[Compatibility]
Dd7to9 = 0
D3d8to9 = 0
DDrawCompat = 1
Dinputto8 = 0
DisableGameUX = 0
DxWnd = 0
EnableDdrawWrapper = 1
EnableD3d9Wrapper = 0
EnableDinput8Wrapper = 0
EnableDsoundWrapper = 0
HandleExceptions = 0
SingleProcAffinity = 0

Not seeing any problems with Windowed mode my self. Tried Alt Tab-ing, changing programs via Taskbar. Alt+Enter cycle. Minimize and Maximize.
 
Yes, that's correct the only .dll we need is ddraw.dll. I found only DDrawCompat had to checked for it to work. Pity it didn't fix the sound problem but at least we had minor success.

[Compatibility]
Dd7to9 = 0
D3d8to9 = 0
DDrawCompat = 1
Dinputto8 = 0
DisableGameUX = 0
DxWnd = 0
EnableDdrawWrapper = 0
EnableD3d9Wrapper = 0
EnableDinput8Wrapper = 0
EnableDsoundWrapper = 0
HandleExceptions = 0
SingleProcAffinity = 0

Cheers
Aussie
 
Well since the sound problem is quite old My 2003 Gateway 500x Win XP with Pent 4 - 2.4GHz GeForce4 MX 440 had it I think we will just have to live with the few buggy sounds or replace them with empty sounds tell a Wrapper that has frame cap works with CFS2 is around.

Overall I think it was good now we have a Wrapper set up that fixes the grayed hardware acceleration option. So we still have CFS2 as it was back 2002/2003.
 
Another version of ddraw can cap the FPS to 30 and fix the sounds BUT it only works in the 2d panel and will uncap in the VC, looking out or using external views. Also all fog is gone using this ddraw as well. Not worth changing from DxWrapper or old hand editing of the CFS2.cfg at this time IMO but worth keeping a eye on for later testing.

https://github.com/narzoul/DDrawCompat/
 
I had recently found DDrawCompat and tried it out. Had the same result as you did, Allen.

BTW, FWIW, I recently discovered that FS2000 also suffers from this problem. It happens with the looped rain sound effects, as it does in CFS2 too. Increasing the sim rate (which of course, slows down the framerate) fixes it, just like in CFS2.
 
Just a random thought from me. Does the same thing happen with these sounds if you're using FS9? (I can see they appear to be the same wav files).

If not, has anyone tried swapping in FS9s sound.dll to see if it would "cure" this issue?

CFS2 sound.dll date: 18/09/2000 size: 88kb
FS9 sound.dll date: 01/09/2004 size: 72kb

or maybe something to do with the weather.dll ?

CFS2 weather.dll date: 18/09/2000 size: 184kb
FS9 weather.dll date: 01/09/2004 size: 224kb
 
Yeah, I'm fairly sure that CFS2 would choke with another version's DLLs. Hehe, I found that out when I was trying to 'enable' some of FS200's features in CFS2... GPS, demo video recording and playback, etc...
 
Another version of ddraw can cap the FPS to 30 and fix the sounds BUT it only works in the 2d panel and will uncap in the VC, looking out or using external views. Also all fog is gone using this ddraw as well. Not worth changing from DxWrapper or old hand editing of the CFS2.cfg at this time IMO but worth keeping a eye on for later testing.

https://github.com/narzoul/DDrawCompat/

Yes, very interesting indeed. I've been checking it out a little bit and found that unless you create a file named DDrawCompat.ini and drop it in the main CFS2 folder it largely uses its default config settings which aren't very compatible for what we need. So far I've added the below to the DDrawCompat.ini and found FPS locks in both 2d and virtual cockpit views at 45FPS. My monitor can run in 50 or 60hz so maybe try changing the below
flipstart(45) to flipstart(50) because at 50hz the sound glitch goes away.

There's a list of available options in the DDrawCompat-cfs2.log file which I'll check out over the coming days. Obviously, you would change the DisplayResolution = to match that of your display

DpiAwareness = unaware
DisplayResolution = 1920x1080
SoftwareDevice = hal
BltFilter = point
CpuAffinity = all
AlternatePixelCenter = off
VSync = off
RenderColorDepth = 32
SpriteDetection = off
PalettizedTextures = off
FpsLimiter = flipstart(45)

It doesn't seem to like DXT1 textures but convert them 565 and they display correctly. Still running tests so maybe there's an option that will allow DXT1. It will certainly be worth keeping an eye out on the development of this one. Well done Allen!

Cheers
Aussie
 
The DXT1 textures not being load is from the "SoftwareDevice = hal" key Deleting it will fix the missing textures. Also the fog being gone was something I copied from the DDrawCompat-cfs2.log so I could make a DDrawCompat.ini

The wiki says flipstart and flipend keys only works with fullscreen applications. For Windowed mode I needed msgloop(30) but as I said any other view but 2d will run at uncapped FPS.

It looks like we now have a sound fix by using flipstart(45) or flipend(45) for Fullscreen mode and a half fix for Windowed mode fix using msgloop(30)

I also 1st saw this version of ddraw from RichNagel post up in the FS02/FS04 forum so big thanks to RichNagel.

Also this ddraw has in game meun. Use Shift+F11 to open it. So all you need to do is drop the ddraw.dll into CFS2 than config it in game and use the Export button. It will save a DDrawCompatOverlay-cfs2.ini file in the main CFS2 folder for you.

Shift+F11.png
 
Must be video card thing. If I remove the SoftwareDevice = hal I get green textures in windowed mode and tearing in full screen and DXT1 textures are black. For me the config overlay doesn't always write to the file either. More testing to be done :untroubled:

Cheers
Aussie
 
The ddraw can read from 2 .ini files DDrawCompat.ini and DDrawCompatOverlay-cfs2.ini. It will make the DDrawCompatOverlay-cfs2.ini using in ingame meun. Maybe delete any DDrawCompat inis and use in in game menu will fix things.

As for the green textures. Seen that when messing around when cycling Fullscreen/Windowed while in the VC. Changing to Chase View and back into the 2d panel seem to fix this. Tearing is like going to be a thing after all the ddraw is emulator thing and messing with the frame rate.
 
I also 1st saw this version of ddraw from RichNagel post up in the FS02/FS04 forum so big thanks to RichNagel.

Yer welcome! :)

Also this ddraw has in game meun. Use Shift+F11 to open it.

BTW, you can change that hotkey if you wish. I was experimenting with DDrawCompat in FS2000, and have several custom modules that use SHIFT+F11 (as well as SHIFT+F12) for their hotkeys. A simple fix: I added "ConfigHotkey = CONTROL+F11" to DDrawCompat's INI file, so now i can use that hotkey :)

BTW, side note: It appears that DDrawCompat is working GREAT for FS2000... no more 3D view window problems like I mentioned in my other thread. I ALSO think that it's boosting the framerate a bit... although the discussion here is about CAPPING the framerate, for me FS2000 gets a bit choppy on my old clunker with all of the detail settings maxed out.
 
Back
Top