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

Reply
 
Thread Tools Display Modes
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
Old 01-05-16, 10:23 AM   #2
Orbiter688
Swabbie
 
Join Date: Oct 2013
Posts: 8
Downloads: 17
Uploads: 0
Default

Quote:
Originally Posted by Neal Stevens View Post
Mod by Komat

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



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

Thanks everyone! I installed the dll to both Sub Command and Dangerous Waters and both launched successfully, no joy with 688i though. Since Sub Command is a extension of 688i (but with Akula and Seawolf) I can live with these two working. Is it possible to run 688i missions in Sub Command? I know there were a lot of good missions made back in the day for 688i.
Orbiter688 is offline   Reply With Quote
Old 01-06-16, 09:14 PM   #3
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


Default

It's worth a try.

As for 688(I), I got the Steam version to work right out the gate, it was SC that I needed Komat's dll to get going. Check out the Steam package.
__________________
SUBSIM - 26 Years on the Web
Onkel Neal is offline   Reply With Quote
Old 01-15-16, 05:40 PM   #4
roger_9774
Swabbie
 
Join Date: Sep 2013
Location: Illinois (USA)
Posts: 7
Downloads: 16
Uploads: 0
Default problems

hey guys I keep coming up with an invalid value for registry warning when I try to download this. Is this something with windows 10?
roger_9774 is offline   Reply With Quote
Old 02-15-16, 10:47 AM   #5
Martillo1
Nub
 
Join Date: Aug 2005
Location: Madrid (Spain)
Posts: 3
Downloads: 1
Uploads: 0
Icon14

What can I say?

Thanks Komat!
Martillo1 is offline   Reply With Quote
Old 02-15-16, 11:51 AM   #6
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 28,786
Downloads: 24
Uploads: 0


Default Welcome back

Martillo1! After a nine year silent run!
__________________

"Only two things are infinite; The Universe and human squirrelyness; and I'm not too sure about the Universe"
Aktungbby is offline   Reply With Quote
Old 02-22-16, 08:37 PM   #7
briane941
Nub
 
Join Date: Jan 2015
Posts: 2
Downloads: 14
Uploads: 0
Default

Quote:
Originally Posted by Neal Stevens View Post
Mod by Komat

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



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
No one seems to be able to mention what you set the ModeID to. It's defaulted to "1" and I've tried various different numbers but I don't get any different result. I just want a better resolution than 800x600 after the Komat fix for Windows 10.
briane941 is offline   Reply With Quote
Old 02-22-16, 08:55 PM   #8
FPSchazly
Good Hunting!
 
FPSchazly's Avatar
 
Join Date: Apr 2014
Location: Maryland
Posts: 774
Downloads: 15
Uploads: 1


Default

Quote:
Originally Posted by briane941 View Post
No one seems to be able to mention what you set the ModeID to. It's defaulted to "1" and I've tried various different numbers but I don't get any different result. I just want a better resolution than 800x600 after the Komat fix for Windows 10.
Are you running full screen? It's going to be hard to notice a difference if you are since most monitors nowadays are not 4:3 ratio so it's always going to be scaled.

1 - 800x600
2 - 1024x768
3 - 1280x1024
4 - 1600x1200
__________________
Your friendly neighborhood modern submarine YouTuber.

My videos:
**Exclusive Look at Modern Naval Warfare!**
Dangerous Waters Liu Doctrine (LwAmi
Learn to play Dangerous Waters
FPSchazly is offline   Reply With Quote
Old 02-23-16, 01:35 PM   #9
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,894
Downloads: 304
Uploads: 0
Default

Are those then hardcoded? As 1440x1080 should also fit that ratio.
Pisces is offline   Reply With Quote
Old 02-23-16, 02:19 PM   #10
FPSchazly
Good Hunting!
 
FPSchazly's Avatar
 
Join Date: Apr 2014
Location: Maryland
Posts: 774
Downloads: 15
Uploads: 1


Default

Quote:
Originally Posted by Pisces View Post
Are those then hardcoded? As 1440x1080 should also fit that ratio.
I know that 1, 2, and 3 are correct. I'm guessing I've seen 4 somewhere or I extrapolated it, can't remember which. I would love to know if there's a way to get 1440x1080, that would be incredible. 1280x1024 is 5:4, though, it doesn't fit with the rest of them but it's still there.

EDIT: I remembered where I got those numbers from. They correlate to the resolutions in the graphics menu.
__________________
Your friendly neighborhood modern submarine YouTuber.

My videos:
**Exclusive Look at Modern Naval Warfare!**
Dangerous Waters Liu Doctrine (LwAmi
Learn to play Dangerous Waters
FPSchazly is offline   Reply With Quote
Old 02-23-16, 09:04 PM   #11
briane941
Nub
 
Join Date: Jan 2015
Posts: 2
Downloads: 14
Uploads: 0
Default Thanks


Thanks to Komat and FPSchazly (fan of the youtube vids btw).

I got it working just like I had it before the Windows 10 upgrade. Set ModeID to 3, compatibility mode for Vista (Service Pack 2), and finally Run as Admin. Running Full Screen just fine @ 1280x1024.
briane941 is offline   Reply With Quote
Old 06-29-17, 06:18 AM   #12
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,894
Downloads: 304
Uploads: 0
Default

Quote:
Originally Posted by FPSchazly View Post
Are you running full screen? It's going to be hard to notice a difference if you are since most monitors nowadays are not 4:3 ratio so it's always going to be scaled.

1 - 800x600
2 - 1024x768
3 - 1280x1024
4 - 1600x1200
Duhh Pisces!! How do I expect to get 1600x1200 on my screen, if it won't fit vertically. 1080 is the max on my lcd. 1280x1024 works fine if I set ModeID to 3 in the dangerouswaters.ini file. Nevermind that previous post. PEBCAK!

[scurries hiding under a shadowzone]
Pisces is offline   Reply With Quote
Old 06-29-17, 04:12 PM   #13
Lanzfeld
Grey Wolf
 
Join Date: Jan 2002
Location: New Tripoli, PA
Posts: 994
Downloads: 64
Uploads: 0
Default

Windows 10 here. Just bought DW on steam sale and installed with wrapper.
Works great!
I set 3 in the ini file and I get 1280 x 1024 resolution.
When I set 4 it doesn't work.
Any idea how to get better res or am I at max?

I don't run in a window (should I?)
My desktop is 1080 x
Lanzfeld is offline   Reply With Quote
Old 06-29-17, 04:20 PM   #14
FPSchazly
Good Hunting!
 
FPSchazly's Avatar
 
Join Date: Apr 2014
Location: Maryland
Posts: 774
Downloads: 15
Uploads: 1


Default

Quote:
Originally Posted by Lanzfeld View Post
Windows 10 here. Just bought DW on steam sale and installed with wrapper.
Works great!
I set 3 in the ini file and I get 1280 x 1024 resolution.
When I set 4 it doesn't work.
Any idea how to get better res or am I at max?

I don't run in a window (should I?)
My desktop is 1080 x
I prefer running in a window but I don't think you can do it in Windows 10. Actually, someone on my Discord may have developed a procedure, I'll have to follow up with him. 4 is 1600x1200.
__________________
Your friendly neighborhood modern submarine YouTuber.

My videos:
**Exclusive Look at Modern Naval Warfare!**
Dangerous Waters Liu Doctrine (LwAmi
Learn to play Dangerous Waters
FPSchazly is offline   Reply With Quote
Old 06-29-17, 05:14 PM   #15
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,894
Downloads: 304
Uploads: 0
Default

Quote:
Originally Posted by Lanzfeld View Post
Windows 10 here. Just bought DW on steam sale and installed with wrapper.
Works great!
I set 3 in the ini file and I get 1280 x 1024 resolution.
When I set 4 it doesn't work.
Any idea how to get better res or am I at max?

I don't run in a window (should I?)
My desktop is 1080 x
I made the same mistake this afternoon. You won't get a better resolution with max 1080 vertical pixels. 1600x1200 doesn't fit.
Pisces is offline   Reply With Quote
Reply


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 05:49 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.