View Full Version : Dangerous Waters and Virtual Box
goldorak
12-30-09, 11:06 AM
Well for those that might be interested : Dangerous Waters runs very well on XP in Virtualbox with 3d acceleration enabled. The only problem that still is not resolved is the gamma (too dark although you can still see the different stations) and most importantly some screens disappear if you select specific options, but they come back we those options are unselected. These problems are few so I hope the guys working on the 3d component of Virtualbox will have it fixed sooner rather than later.
Oh and by the way the audio works 100%.
All this for what you may ask ? Well if you're considering going all the way to linux and don't want to renounce to your daily drug of DW, Virtualbox is your only friendly alternative seeing that Wine still has audio not working so the game on Wine is perfectly useless. One less stone on the path to linux. :D
There is a gamma setting in the ini file. Did you change that?
goldorak
12-30-09, 12:23 PM
There is a gamma setting in the ini file. Did you change that?
Yes, I tried setting a specific value in the .ini file but the "graphic drivers" don't take it into account. We have to wait until the driver is updated to take into account the gamma setting.
kgsuarez
01-04-10, 06:38 AM
Thank you for your post, goldorak. I am glad to hear that DW is kind of working under Linux now.
I haven't been able to get VirtualBox running yet. I am stuck in dependency hell right now. Slackware Linux gives you a pretty bare-bones system, requiring you to hunt down all the dependencies when installing something as complex as VirtualBox.
I am expecting a new computer any day now though. I ordered a laptop from Dell. I am planning to install Ubuntu on it, and then perhaps I'll have an easier time getting VirtualBox running on that.
Have you tried running DW through VMWare by any chance?
goldorak
01-04-10, 07:27 AM
No I don't have VMware its too much of a bloated software compared to Virtualbox. The thing is you can either run DW under wine or in Virtualbox.
In the first case you'll get no sound because that part of the Microsoft API hasn't been completely replicated in wine. So the game is basically useless even though graphically its ok.
Now to run the game in virtualbox you have got to install beforehand XP. So its basically DW runs on XP that runs in Virtualbox that runs on linux.
In this case the audio is ok but the graphics still has problems (for instance in the options menu you can see the little 3d screen but the different options are invisibile). Little problems like that.
So in the end no solution yet for running DW 100% problem free under linux but we are getting there.
kgsuarez
01-04-10, 11:44 AM
I have tried running DW with wine and I am familiar with the sound issues. I certainly hope that the dev team can come up with a solution one of these days, as a simple layer of emulation provided by wine is preferable to running an entire virtual machine. My hardware is perpetually outdated and underpowered; Virtualization essentially murders my systems' performance.
I'm mostly interested in running a virtual machine to play around with different Linux and BSD distributions. However, I am definitely curious about getting my games running on my Linux laptop. The only problem in all of this for me is that I do not have a copy of Windows XP to use with VirtualBox or VMWare. The only copy of it that I have is the one on my desktop. And I do not have an installation disk; I have a set of recovery disks that only work with the specific hardware of my desktop. :damn:
In the meantime I am able to run Red Storm Rising through an Amiga emulator and Aces of the Deep through DOSBox. So, I am not at a total loss by any means. :|\\
goldorak
01-05-10, 06:36 AM
Yes dosbox is really a gem of a program.
You can actually play at native speed for the most part a big fraction of all dos games ever made.
I've run Silent Hunter I and Sierra Fast Attack under dosbox and they're flawless. ^_^
AchtAchtel
01-25-10, 05:03 PM
DW always worked flawlessly for me under Linux while using Wine. VirtualBox has to work, because it's a virtual environment, so no doubts about it. How about networking? Is VirtualBox DW capable of joining to multiplayer game session while in bridge networking mode?
Looking forward for responses in this thread.
goldorak
01-25-10, 05:15 PM
DW always worked flawlessly for me under Linux while using Wine. VirtualBox has to work, because it's a virtual environment, so no doubts about it. How about networking? Is VirtualBox DW capable of joining to multiplayer game session while in bridge networking mode?
Looking forward for responses in this thread.
Dw works with sound in linux ? Are you sure ? :o
Because if you can play but hear no sound in sonar, and in the other stations the game is as good as dead. You can't play DW without sound.
AchtAchtel
02-10-10, 04:55 PM
goldorak: wine runs DW smooth with sound effects for me. I have never experienced lack of sfx while using wine. I'd like to get answer to - how VirtualBox manages to run DW in networking mode? Does problems of stability or connecting occurs? Thanks for answers!
kgsuarez
02-10-10, 07:48 PM
Say what!?
Please, tell us more about your setup. I would like some details on this. I have never had DW work with sound in Wine.
goldorak
02-14-10, 02:39 PM
I'm with kgsuarez here : AchAchtel how did you get DW running under wine ?
The sound, and I mean sonar, pings this kind of thing never worked correctly under wine. So how are you playing DW at all ? :hmmm:
Care to explain that to us ?
The other explanation is that maybe the wine database is outdated and DW really works but I doubt that. Otherwise someone would have updated it in the meantime.
Rotary Crewman
02-16-10, 01:49 PM
Been out of the loop for a while, but I was wondering, if the game is working on Linux does that mean it could work on OSX?
goldorak
02-16-10, 03:39 PM
Been out of the loop for a while, but I was wondering, if the game is working on Linux does that mean it could work on OSX?
The game doesn't work.
Under wine you don't have the sound effects which are pretty necessary to have to be able to play the game.
On the other hand installing DW in XP under Virtualbox will get the sounds but there are graphics problems with the interface, you can't change settings and so forth.
Your best bet would be to use virtualbox in osx.
Install xp in virtualbox and then DW. That should get you started, but the options menu won't work.
AchtAchtel
02-21-10, 08:59 AM
I was running DW without any problems under wine for a long time, however - the only problem was networking.
Next thing is I was running it under v. old laptop (P3 1GHz) so I had to 'cut' all effects as possible. Laptop was Toshiba Portege 1505 and the linux distro was Debian. I can't remember any changes done to wine nor DW configuration to get sound work. Ping worked not so well (sometimes pings were lost or 'doubled' - kinda 'echoed') but in general - it was fully playable.
Can't remember what wine version was this, but surely some old, compiled on my own. Maybe I was lucky? :]
And again - please tell whether networking works on DW emulated on XP @ Virtualbox. Are you able to HOST or JOIN session?
goldorak
02-21-10, 04:43 PM
And again - please tell whether networking works on DW emulated on XP @ Virtualbox. Are you able to HOST or JOIN session?
I don't know because I didn't have the occasion to test multiplayer.
I only installed virtualbox to know if DW would run better than in wine, and the answer is yes it runs better. But multiplayer, I have no idea. :oops:
kgsuarez
09-10-10, 04:11 PM
I tried to get DW working under Linux with VirtualBox today and it did not go well. I am getting an error when launching DW. Something like "Failed to initialize graphics." Any of you have any idea what this is about?
PeriscopeDepth
10-14-10, 12:47 AM
I saw this thread and gave it a whirl, got the same as you kgsuarez. I think it has something to do with my vbox machine running win7? I will have to try it under xp sometime. It's been quite a while since I've played DW.
PD
kgsuarez
10-14-10, 01:39 AM
It's good to hear that someone is still interested in this stuff.
I have some very good news for everyone. Dangerous Waters (and Sub Command too) work just fine in Wine, sound and everything. There's a trick to getting this to work which I will explain in a moment. First a little background on this subject.
Okay, there are several games on the market that organize their sound files in a strange manner. Dangerous Waters, Sub Command, and even Jane's 688i H/K are in this category. I don't know all the specifics, but basically there are several archives with the title "sfx.agg" throughout the file hierarchy in these games. Within these archives are .wav files. For whatever reason Wine is not setup to recognize and run these .agg archives properly resulting in a total lack of sound. But, as with most things, there is a solution. This solution took a long time to come to light on these forums, but better late than never right?
Head over to SubGuru.com and take a look at the Downloads page. You will find a small program called SCSoundEdit. This program allows you to extract the .wav files from the sfx.agg archives. Go ahead and do this for all the relevant afx.agg's. There is a main sfx.agg in the "Audio" directory of your DW install. And then there are several more that are specific to the platforms which can be found in the "Interfaces" directory. There are also some more in either the "Scenario" or "Missions" directory. (I am composing this post on just my foggy memory, so bare with me.)
Once you have extracted the .wav files from the relevant sfx.agg archives you can delete the sfx.agg archives if you wish, as you do not need them anymore. Just make sure that in the very least you move the sfx.agg archives out of their directories, because the next step will not work correctly if they are still present.
The final step here is to create several new directories in place of the sfx.agg archives. It is important that you name these new directories "sfx.agg+". (Yes, that is a plus sign.) Now place the .wav files you extracted into this directory. You are done.
So, to sum it up: 1) Extract .wav's from sfx.agg. 2) Delete sfx.agg 3) Create directory named "sfx.agg+" and place extracted .wav's within it.
Disclaimer: I have not been able to fully test this in DW yet for reasons that I will rant about a few sentences from now. However, it is a documented fix/hack for Jane's 688i H/K AND I have tested it in Sub Command without any trouble at all. Gentlemen, I am pretty sure that this will work for all of us. :)
Now, about that rant I've been planning since I started this post...
I've got DW up and running on Linux with Wine, and with sound I would imagine, but I have run into yet more trouble. It appears that for some reason the game crashes whenever I try to load a mission that uses the 688i platform. I haven't tried all the other platforms, but the Kilo works as does the Perry frigate (is that what it's called?). I think the Seawolf also works, but I am not sure.
Anyway, the bottom line is that DW works in Wine, with sound, but the game crashes if you try to use the 688i. *long-heavy-sigh* What is the point of this game if you can't drive the 688i!!?? :damn:
Now, could anyone do me the favor of trying DW under Linux, in Wine, with the 688i. I would like to know if this platform is crashing other people's games too. Please? Just this little favor for me?
EDIT: THE FIX/HACK I DESCRIBED IN THIS POST DOES NOT WORK. See my my more recent posts for info on this.
goldorak
10-14-10, 07:51 AM
@ kgsuarez :
When you say :
So, to sum it up:
1) Extract .wav's from sfx.agg.
2) Delete sfx.agg
3) Create directory named "sfx.agg+" and place extracted .wav's within it.
Do I have to create a single global directory sfx.agg+ inside the main game directory that will contain all the audio files from all the units ? :hmmm:
Are you sure about this ? Because each playable unit has its own sfx.agg file inside the playable unit's directory inside the interface folder.
kgsuarez
10-14-10, 02:48 PM
I had a feeling that parts of my post might be misinterpreted.
goldorak, you are correct. Trying to use one single "sfx.agg+" will not work. I didn't mean for my post to sound like that was what I was suggesting.
You must create an "sfx.agg+" directory for each afx.agg that you want to replace.
Example: You replace the sfx.agg in the Audio directory with the sfx.agg+ that you created. You also replace the afx.agg in the 688i directory with an sfx.agg+ that you created. And so on.
Does that answer your question?
Also, like I asked before, can someone do me the favor of testing DW in Wine for me? Try loading a mission with the 688i platform and see if it crashes or locks up for you too.
goldorak
10-14-10, 02:55 PM
Ok its good to know. The last time I tried DW under virtualbox it didn't go so well, very strange since on a older version it worked more or less.
As for testing under wine, I don't have a native linux installation for the moment sorry. But its great that DW finally works, sound included under wine. :woot:
Its one less worry when I throw away windows xp.
kgsuarez
10-17-10, 12:23 AM
Okay. I have, unfortunately, created some confusion in this matter. I will try to clear things up a bit.
DW is as broken, in wine, as it has always been. The fix/hack that I described earlier does not work as I thought it would. It is my fault for not testing this properly. I jumped the gun on this one. :oops:
However, the fix/hack has some effect in Sub Command. If you apply the method I described above to SC you will notice that sound will begin to function properly, almost. You can modify the main sfx.agg in SC to produce sounds, but the method does not work on the vehicle specific sfx.agg's (IE: the ones located in the Interface directory). As far as I can tell, this makes SC perfectly playable in wine. The only sounds that are missing are related to the specific sub you are driving. Clicking on switches and buttons, flooding tubes and launching weapons, and a few other things will occur without sounds. The sonar, explosions, pings, and mostly everything else will produce sound.
So, Sub Command is working almost perfectly. I am currently seeking help in the Modders forum on this matter. My idea involves editing certain files so that the game will look for vehicle sounds in the main sfx.agg rather than in the vehicle specific sfx.agg that it currently does. My hope is that some of the lessons learned in getting SC to work can be applied to DW.
I have been working quite a bit on these issues in the past couple of days and my frustration is mounting despite some of my progress. I find myself wishing one of two things. A) That subsims were as popular as FPSs RPGs (the logic being that all of these issues would have been addressed by now if they were as popular) or B) That I hated subsims and loved FPSs and RPGs. I can only hope that with enough time and our small, dedicated fanbase can overcome these issues. We'll see.
Right now I am in the process of setting up VirtualBox to test Dangerous Waters. I will report back when I have my results. Let's cross our fingers. :ping:
kgsuarez
10-17-10, 03:55 PM
Okay. DW works in VirtualBox with very few problems.
Here is my setup:
DW v1.04
Windows XP Pro SP3
VirtualBox v3.2.10
Ubuntu 10.04.1 LTS
Now, for a few specifics on my setup. If you are running Ubuntu don't install VirtualBox from the default repositories. The version available there is too old. Go to the VirtualBox website and follow their instructions for installing the newest version.
Once you have VirtualBox setup with Windows XP reboot the virtual machine and press F8 during boot up. Select the "Safe Mode" option and login as Administrator. Once you have done this go to the VirtualBox menu and select Devices > Install Guest Additions. It is very important that you check the Direct3D option. Install and reboot. You can now proceed with the DW install.
There were a few minor issues with running DW. First of all, it is a bit slow. The mouse lags quite a bit. This might be a problem on my end though, as I am using a weak computer. (1.6Ghz CPU, 1GB RAM, no video card.)
There is some glitching in the 3D options menu still, but this is hardly a problem as all these settings can be manipulated manually by editing the dangerouwater.ini file.
The final issue I have found so far is that the pointer does not load correctly. Instead of the familiar arrow you get a black square. The is easily fixed by editing the dangerouswaters.ini file. (I can't remember off the top of my head what the line is, but it is located under the 3D Options section and is named something like "use software pointer." Just change is to "Yes.")
goldorak
10-18-10, 02:05 PM
@ kgsuarez : I see that you have found the same problems I did months ago using virtualbox. Mostly that the game works, sound included except you can't get a working config screen.
Do you know how to change the resolution of the game through the config file, is there even an option for that ? I don't really remember. :-?
Mine was fixed at 800x600 and I wished I could have set it to 1280x1024.
kgsuarez
10-19-10, 02:34 AM
Well... the configuration screen works just fine for me. There is a bit of a glitch in it when you go to the 3D section, but it doesn't prevent me from making the necessary changes.
Either way, I think you might be able to change the resolution via the dangerouswaters.ini by changing the line that reads ".ModeID 1". I haven't actually tested this myself as the default resolution is good enough for me. But if there is a line in the .ini that corresponds to resolution that would have to be it. I would imagine that 1 signifies the default resolution. 2 would probably be the second resolution in the drop down menu on the 3D configuration screen. Etc, etc...
Man... I realized today that DW runs really slow in VirtualBox. The whole interface lags like you wouldn't believe. And it's a bit unstable too. It locked up on me a few times when using time compression. I'm not sure I could play it like this.
Is it really slow/laggy for you too? Or is my computer just a dinosaur? I'd like to know how it runs/ran on your rig. Maybe I need more power again. :shifty: :nope: :cry:
PeriscopeDepth
10-24-10, 01:29 PM
Yeah, with your setup running on a VM is going to be sh!t. No way around that kgsuarez. I got DW running on VMWare yesterday, it mostly works aside from the 3D engine (which works, but lots of missing textures, incorrectly displayed things). I guess I can deal with that for now.
I really need to buy a net top to use as our entertainment machine so I can bring my gaming rig back into the office where it belongs. Trying to do sim'ing on my work laptop through VMs is no fun.
PD
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.