SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Modern-Era Subsims > Dangerous Waters
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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,363
Downloads: 541
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.