SUBSIM Radio Room Forums



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

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-08-14, 12:56 PM   #1
GlobalExplorer
Admiral
 
Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
Default My solution for crashes (sound-related), enabling AA and other problems

This is a step by step instruction to make SH4 more stable and remove many problems. Do this at your own risk!

Since I started using and modding SH4 (ca 5 years ago) I had a lot of such problems. I think it would be a good idea to give an overview to which solutions I have found. Today I use a ton of mods, and it only crashes if I do something stupid like messing with the game data or constant alt-tabbing. Also the annoying sound loops and sound related crashes seem to be gone (let's say "99%")

I) Most problems are sound related. I discovered this when I uninstalled ALL sound mods or overwrote them with the original files. This cures a lot of problems like crashes, sounds entering infinite loops, or "crazy" sounds.

That is to say, the simplest "solution" is to simply restore ALL original sounds This includes the file sh.sdl, make sure that you backup this file before you install any mods so you may restore it. If you want to be safe, make a copy of your entire /Sound folder before you install anything else, and a good way is to create a zip file Data/Sounds.zip.

BUT what if we want to use mods?

The solutions were not easy to come by, because they involve doing several things simultaneously. If I would do just one thing, there would still be some problems, while others might be gone.

important are:

II) converting ALL .wav files to mono, 44khz

I think this is one of the most crucial things to repairing Silent Hunter 4's sound system (modded), and is violated by many mods (although the creators bear no guilt because this is an obscure problem).

Ok, have yourself a look at the wave files used by UBI (/Sounds/*.wav) and you will see that they are all a) mono and b) 44khz.

Nobody knows what the problem is, but some files (e.g. Submarine_CrashDive_INT.wav in Sailor Steve's excellent version of the DBSM mod) stop creating problems only after I converted them (ALL of them).

There are many programs to do this, one is dbpoweramp music converter: http://www.dbpoweramp.com/dmc.htm

Another thing people recommended was to disable sound acceleration in dxdiag. I am not sure but it could help.

Google for "disabling sound acceleration dxdiag". You find one tutorial under "C.DirectX" here: http://homeoftheunderdogs.net/guidewin.php

III) fixing memory issues with the so called "4GB patch"

You might have heard of Large Address Aware, and how it can fix some memory issues SH4 has. There are several instruction threads how to use it, unfortunately I found none was complete. I "use" the 4GB fix for 2 years and only recently I discovered it had never been installed correctly ..

This one is especially important for XP users and people with 32 bit OS. But don't try this unless you have at least 4 Gigabyte RAM in your PC!

What it does is to tell Windows to reserve 1 GB for the kernel and enabling applications to use the remaining 3GB RAM (default is 2GB kernel / 2 GB applications on a 4GB PC).

What many tutorials forget to make clear is that without enabling the /3GB switch in c:\boot.ini, the LAA patch is pointless at best.

III.a) Enabling Windows to use 3GB for applications

You must make the following change to your C:\boot.ini. Do this at your own risk, and better skip LAA completely if you don't understand.

boot.ini is a hidden file, so you must know how to make it visible.

the switch is added after to the last line of boot.ini

Code:
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn /3GB
This is fine if it works, but breaks my video driver (SH4 would studder and crash). The reason: Many drivers expect 2 GB to be available for the kernel and now find only 1. I also found information on the net that this happens on ALL ATI cards, so it may not be just a single incident. You may not need this, but you can fine tune the memory with another switch /userva*

the last line of my boot.ini looks like this:

Code:
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn /3GB /Userva=2900
*userva defines the exact amount of RAM to use for applications. In my case 2.9 GB. You can try with values between 2000 and 3000 until your games run stable.

III.b) Only if you get that part working, and Windows boots succesfully with the /3GB option, get LAA: http://www.techpowerup.com/forums/th...-aware.112556/

III.c) remove write protection from SH4.exe before you run LAA. This is crucial, because LAA will not tell you, and Sh4.exe is write protected by default!! It was never working on my system for that reason alone!

III.d) enable large adress aware on SH4.exe

I will skip instructions how to exactly use LAA, you can find them at http://www.techpowerup.com/forums/th...-aware.112556/

III.e) check if LAA is enabled. You can do this e.g. in LAA under "Advanced" via Add->Files, then browse to and select SH4.exe. Only if it says under LAA "True", the patch is working!

After all these steps there is an additional 900 Mb RAM for my SH4 (+40%), which gives benefits in many ways.

In the following post I will also explain what I had to do to enable AntiAliasing, but not today.

I hope this helps some of you.
__________________


Last edited by GlobalExplorer; 04-09-14 at 04:17 AM.
GlobalExplorer is offline   Reply With Quote
Old 04-08-14, 12:57 PM   #2
GlobalExplorer
Admiral
 
Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
Default

I promised some tips for AA. Because something is worrying me. The year is 2014 and I still see people post screenshots of SH4 that make my eyes hurt, with no Anti Aliasing and the horrible post processing filter enabled. Below is such an example. Do you think that this is beautiful? Then just skip the rest of this post and enjoy your game m'kay?



I have no idea how it happened, but out of the box Silent Hunter 4 in most cases runs without AA.

The thing I have to do was force AA through the driver settings. Go into your drivers configuration and uncheck "Use Application Settings" under both AntiAliasing and Isotropic Filtering. Set it for example to 4x AA and 8x AF, depending on your system and framerate. Afaik: If the driver is configured to use application controlled AA, it will not work in Silent Hunter!

Interestingly I also have to set a certain resolution, or it will still fail. At 1680x1050 it will not work or only partially work. This may be highly unusual but on my system I need to set a 4:3 resolution and I found 1400*1050 works best.

Only if you see no jaggies, you have configured SH4 correctly. Otherwise you need to do something else.

You may also do yourself a favor and disable Post Processing. It only makes graphics look brown and much too dark Perhaps it was only added because it distracts from the lack of AA, who knows.

Bland and boring?

__________________


Last edited by GlobalExplorer; 04-09-14 at 12:56 PM.
GlobalExplorer is offline   Reply With Quote
Old 04-09-14, 12:12 PM   #3
TG626
Lieutenant
 
Join Date: Jan 2014
Location: USS Seal - Somewhere in the Pacific
Posts: 268
Downloads: 141
Uploads: 3
Default

This is awesome! One question tho. I have SH4 on a 6gb Win7 64bit machine. What do I need to do to use SH4 LAA? Just patch the exe and go? Or do I need to fiddle with win7 like you do with XP?
__________________
T. E. Thompson, LTCDR
Commanding Officer, U.S.S. Seal (formerly S-40 (SS-145))
TG626 is offline   Reply With Quote
Old 04-09-14, 12:53 PM   #4
GlobalExplorer
Admiral
 
Join Date: May 2005
Location: Berlin
Posts: 2,015
Downloads: 165
Uploads: 0
Default

From what I know, you don't. It might be necessary to run LAA so that the application is aware of any additional memory > 2GB the OS provides, but I don't think you need to do anything wrp to the OS (the boot.ini stuff).

Afaik the patch is only useful for those who are on 32 bit systems, especially WindowsXP, and who have 4Gb or more RAM.
__________________

GlobalExplorer is offline   Reply With Quote
Old 05-14-14, 12:36 PM   #5
Hjalfnar
Torpedoman
 
Join Date: Jun 2013
Posts: 113
Downloads: 33
Uploads: 0
Default

Interestingly your AA solution works perfectly ingame, I already used a similiar solution for games like Shogun 2 and Rome 2. But it doesn't work on screenshots...oO
Hjalfnar is offline   Reply With Quote
Old 06-26-14, 12:08 AM   #6
Hjalfnar
Torpedoman
 
Join Date: Jun 2013
Posts: 113
Downloads: 33
Uploads: 0
Default

Don't know why, but after playing around with the nvidia setup it works now with screenshots, too. Thanks!

Hjalfnar 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:25 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.