PDA

View Full Version : [REL] Medium Fog Bug Workaround


archer9
01-09-14, 12:08 PM
Please read the Known issues.

This is a very simple fix for the medium fog bug. I am sure others have done something like this before, but I couldn't find anything on the forum, so I just did it myself and thought I would share.


What it does
--------------------------
This mod makes medium fog appear much more rarely in game. Also, upon reloading a game, the chance of there being medium fog (the reload fog bug) is much reduced, although it's still possible.


How it does it
--------------------------
I've simply replaced medium fog settings with clear weather settings. Also, light fog settings have been replaced with medium fog. This means that whenever the game forces medium fog, the visibility will be perfectly clear (like with no fog). The only time you will see medium fog in the game will be when it forces light fog (happens much more rarely than medium fog in my experience).


Known issues
--------------------------
- There is no light fog anymore.
- Transition from clear weather to heavy fog, when it happens, will be very sudden.
- When the navigator reports weather, fog will not be properly reported. (this can be fixed, read below)

To fix the navigator weather report showing wrong fog state, you have to edit your menu.txt file (found in data/menu). Open it and find these lines:
4100=None
4101=Light
4102=Medium
4103=Heavy

Change them to this:

4100=None
4101=Medium
4102=None
4103=Heavy

I'm not including this file in my mod because of compatibility issues - too many other mods edit this file.

Compatibility
--------------------------
I've added compatibility with the following:
1. Stock game
2. Real Environment - Rev 3
3. Dynamic Environment 2.9


Installation
--------------------------
Choose the version you need and paste it into your mods folder. Install with JSGME. Should be savegame compatible.


Download link
--------------------------
http://www.mediafire.com/download/cd0lh5u7t8l55n1/archer9%27s+medium+fog+bug+workaround.rar

vdr1981
01-09-14, 12:54 PM
This could be very handy mod! :up: Medium fog bug is so annoying...

Edit:
I can see that you have included menu.txt in your mods..This is not good idea IMO because in order for some major mods to work properly manual editing of menu.txt is requaired , like real navigation, realistic hydrophones ect...

Mikemike47
01-09-14, 02:08 PM
I can see that you have included menu.txt in your mods..This is not good idea IMO because in order for some major mods to work properly manual editing of menu.txt is requaired , like real navigation, realistic hydrophones ect...
Another reason for me to reintroduce JTXE (http://www.subsim.com/radioroom/showthread.php?t=123521&highlight=jtxe), a great mod enabler for any text based files. Gap, volodaya61 remember:up::haha:? If you send me your completed menu.txt file, archer9, I can convert it for you.

Reading the JTXE (http://www.subsim.com/radioroom/showthread.php?t=123521&highlight=jtxe) thread, do not be mislead by "merge lines in ini-Files". Ini files is how this are stored by the JTXE program.

**.ini file is to JTXE as **.mep file is to JSGME

Mod order flow, first in, last out scenario:
JSGME mod enabled
JTXE mod enabled

removing mods
JTXE mod disabled
JSGME mod disabled

May seem confusing for some, but used it a lot in SH4. Other captains contributed quite a bit of SH4 JTXE mods.

archer9
01-09-14, 02:34 PM
My menu.txt file has very minor changes, basically I've changed just two lines for weather reports and I have included compatibility for TDW's UIs + Real Navigation (will perhaps add compatibility for other UI mods as well in the future). I guess if you have other important mods that overwrite this file, for now simply delete it from my mod before installing, because the mod will work without it anyway. It's just that fog in weather reports will be incorrectly displayed.

Or maybe I will just remove the file and post instructions on how to modify it manually in the OP. :up:

I'll have a look at that JTXE thingy as well, thanks.


Edit: For now, I've updated the first post with how to manually edit menu.txt with my changes.

gap
01-12-14, 12:58 PM
Added to the list of Dynamic Environment's suggested mods :up:

Husksubsky
01-13-14, 10:02 PM
Won t the game "think" it s foggy and dd s have spotting according to fog even though we have clear weather then?:hmm2:

archer9
01-14-14, 05:29 AM
Nope. Not in my testing at least.

vdr1981
01-14-14, 09:54 AM
Archer, don't you think that it is better solution to just swap medium and light fog ? That way you could eliminate "no light fog" issue...

archer9
01-14-14, 10:38 AM
Yes, that was my initial plan. But it would only turn the medium fog bug into light fog bug. I understand it still would have been an improvement, but I decided that sacrificing light fog isn't that big of a deal for me personally. Perhaps I will create a separate version with swapped medium and light fog as you suggested.

Mikemike47
01-14-14, 11:26 AM
Are you aware that sober was working on issues between medium and light fog?

archer9
01-14-14, 01:29 PM
Umm, not really.