View Single Post
Old 12-30-15, 06:01 PM   #1
Onkel Neal
Born to Run Silent
 
Onkel Neal's Avatar
 
Join Date: Jan 1997
Location: Cougar Trap, Texas
Posts: 21,284
Downloads: 534
Uploads: 224


gear Dangerous Waters on Windows 8 / 10

Mod by Komat

Original text:http://www.jiri-dvorak.cz/dangw/index.html

Quote:
This page contains very early version of simple wrapper which improves compatibility of Dangerous Waters with Windows 8 and Windows 10.
Background of the problem(s)

The Windows 8 does not directly support 16-bit display modes anymore. For old applications it provides a thin emulation layer which transparently changes the parameters used to create the default back buffer from R5G6B5 to X8R8G8B8. This works well for applications which render geometry using the standard drawing calls and do not care about the real layout of the buffer. Unfortunately DW draws its UI by locking the buffer and manually writing it here. While the game seems to contain some code to support 32bit back buffers, it was likely not tested, does not work and will crash the game.

On Windows 10 (at least Nvidia driver) the Present call will generate black screen if the device was created with D3DSWAPEFFECT_COPY swap effect.

What the wrapper does

It redirects all rendering of the game to separate new lockable 16-bit color buffer and when the game wants to show the result, it blits that buffer to the 32-bit one created by the compatibility layer. Please note that the wrapper is designed to work with DW and it only implements the minimal functionality required by the game.

It also replaces the swap effect with D3DSWAPEFFECT_DISCARD and removes unnecessary D3DPRESENTFLAG_LOCKABLE_BACKBUFFER flag just to be sure.

Installation

Unpack the archive to the game directory.
Download

This one: Version 0.02 (3.8.2015) - Very experimental.
Source code
Fixed black screen on Windows 10.
History

Version 0.01 (26.10.2014) - Very experimental.
Source code
Initial version. I did only minimal testing. There is a known issue with crash when trying to change resolution in game options screen. Until that issue is fixed, edit dangerouswaters.ini to change the resolution.
Joao Martins: This fix is good for win8 and win10. but changing resolution in the settings screen will crash the game. Solution is to change the resolution ModeID at the dangerouswaters.ini file. You may have to change it at:\Users\YourUsername\AppData\Local\VirtualStore\ Program Files (x86)\Sonalysts Combat Simulations\Dangerous Waters\DangerousWaters.ini

Last edited by Onkel Neal; 01-02-16 at 11:30 AM. Reason: added resolution tip
Onkel Neal is offline   Reply With Quote