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,365
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,365
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,842
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-15-16, 12:01 PM   #7
Martillo1
Nub
 
Join Date: Aug 2005
Location: Madrid (Spain)
Posts: 3
Downloads: 1
Uploads: 0
Icon10

Quote:
Originally Posted by Aktungbby View Post
Martillo1! After a nine year silent run!
Is it the record?

BTW, what Komat has done for us deserves acknowledgement, appreciation and gratitude. I was keeping an i7 laptop from updating from W7 to W10 because of DW. No more. Bye bye W7.
Martillo1 is offline   Reply With Quote
Old 02-22-16, 08:37 PM   #8
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   #9
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   #10
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   #11
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   #12
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 03-01-16, 03:31 AM   #13
Micksp
Sailor man
 
Join Date: Apr 2002
Location: Burgas, Bulgaria
Posts: 50
Downloads: 31
Uploads: 0
Default DW and Win 7-64 Bit

Hello Captain's,
I'm CaptMick, former DRD in GNSF community. I've abandoned the DW since 2011 but now it is a time to come back a board again. The last night I've installed the DW clean stock ver. patced to 1.4 on my home PC. The PC is running under Win7-64. The game started normaly, watched the intro without any graph troubles, but after that the Voice recognition program starts up and I can't bypass it. Have any ideas and recommendations how tou run the game properly under Win7-64?
Tank You in advance!
Micksp is offline   Reply With Quote
Old 03-01-16, 06:30 AM   #14
FPSchazly
Good Hunting!
 
FPSchazly's Avatar
 
Join Date: Apr 2014
Location: Maryland
Posts: 774
Downloads: 15
Uploads: 1


Default

Quote:
Originally Posted by Micksp View Post
Hello Captain's,
I'm CaptMick, former DRD in GNSF community. I've abandoned the DW since 2011 but now it is a time to come back a board again. The last night I've installed the DW clean stock ver. patced to 1.4 on my home PC. The PC is running under Win7-64. The game started normaly, watched the intro without any graph troubles, but after that the Voice recognition program starts up and I can't bypass it. Have any ideas and recommendations how tou run the game properly under Win7-64?
Tank You in advance!
What starts up is an initializer to that speech recognition program. Just leave that running, speech recognition isn't turned on with that running, and proceed to play the game and enter options without the game minimizing to go back to that menu. I run the game in a window because it's easier for my purposes.
__________________
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 03-01-16, 06:59 AM   #15
Micksp
Sailor man
 
Join Date: Apr 2002
Location: Burgas, Bulgaria
Posts: 50
Downloads: 31
Uploads: 0
Default

Quote:
Originally Posted by FPSchazly View Post
What starts up is an initializer to that speech recognition program. Just leave that running, speech recognition isn't turned on with that running, and proceed to play the game and enter options without the game minimizing to go back to that menu. I run the game in a window because it's easier for my purposes.
Thanks! It was the same I was thinking about, now confirmed. I'll report here late this evening when I'm back home.

BTW, I'll start working at some new scenarios especialy for the stock game and will keep you updated.

CONN - SONAR - Have a new contact...
Micksp 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 12:56 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.