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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 01-04-10, 03:16 AM   #1
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default [REL] Colored Hull Integrity Indicator

< Updated first post - original first post deleted >


Colored Hull Integrity Indicator
------------------------------

Up to now there are only two options for SH3:
To hide or to show the hull integrity percentage numbers.
A compromise was not possible.

But now I found a way to display the hull integrity in 4 colors:

green: Integrity 90% - 100% (no or minor damage)
yellow: Integrity 60% - 89% (damage)
orange: Integrity 30% - 59% (heavy damage)
red: Integrity 0% - 29% (critical damage)

which at least for me is a good compromise and hopefully
a step into more realism for SH3.

Screenshot: (the transparency appears in the image only, not in game).
Screenie shows Hull Integrity: Orange (= Heavily damaged, 30-59%)




The main principle of this mod is simple:
I created a new Font type which shows color flags instead of numbers.
Only the middle of the three percentage numbers is important.
If it's a 9 or 0 (9x% - 100%) => a green flag is shown.
If it's a 6,7 or 8 (6x% - 8x%) => a yellow flag is shown.
And so on. The other two numbers are covered by a black mask image.


Unfortunately, this mod needs some changes in the menu_1024_768.ini
and the three xx_menu.txt files. But because there are hundreds of
different versions of these files (many GUI mods available),
it's easier for me to write a DIY-manual than to make hundreds of
compatibility patches for all these GUIs.

The DIY-manual is part of the DIY-Kit, which can be found on my mediafire page.

--------------------------------------------------------------------------------
I also uploaded a ready-to-use demo version for those people who want to see
how the mod looks like and works. It's only for GWX3 and it's not compatible to any GUI-mod.
----------------------------------------------------------------------------------


Optional stuff (in folder "Optional"):
--------------------------------------

1) Disabler-Mod. Re-activates the Hull Integrity output in percent.
So that the user can decide which output he gets (colors or numbers).
The Disabler-Mod only makes sense, if my Colored Hull Integrity Mod
is irreversibly integrated into a GUI.

2) Optional colors for color blind people. The font "HullInteg1.tga"
must be overwritten by that one from the Optional folder.



Compatibility with SH3-Commander
--------------------------------

Unfortunately, this mod is not compatible to the "Show/Hide Hull Integrity"
Option of SH3-Commander.

If you use SH3-Commander, you have to choose "Show Hull Integrity"
to make this mod work correctly.

The "Hide Hull Integrity" option of SH3-Commander does not work.
(A red flag remains all the time that indicates a critical hull
damage regardless of the actual hull condition).


TO COMPLETELY HIDE the Hull Integrity information, 2 steps are necessary
------------------------------------------------------------------------

First: Disable the Colored Hull Integrity mod.
Second: Use the "Hide Hull Integrity" option of SH3-Commander.


Credits to:
-----------
GWX-Team: For GWX.
JScones: JSGME, Sh3Cmdr.
SkWasjer: S3D.
Rubini: Optional colors for color blind people.

Hope you like it,
h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 02-17-10 at 03:39 PM.
h.sie is offline   Reply With Quote
Old 02-08-10, 03:25 AM   #2
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

In the meantime, while working on my edition of ACM-GUI-Reloaded, I found a solution to restrict the hull integrity information to only six values:

100%, 80%, 50%, 30%, 10% and 0%.

For me that's a good compromise between the present solutions: fully show or hide the hull integrity percentage.

It's not hard to do.

1) First you have to create a new font by copying an existing one. Then you have to edit the .off file of your new font (using S3D) in order to make the numbers (0 to 9) have a FIXED WIDTH.

2) Use the new font for ItemID=0x67000404 in menu.ini. Don't forget to register the new font in the beginning of menu.ini.

3) Make the hull percentage output string right-aligned by setting TextFlags=0x1A for the above-mentioned Item.

Because of step 2) and 3) the last digit of the hull percentage now has a fixed position regardless of the percentage number shown.

4) Create an intransparent tga-image and paint a "0 %" on it and hide the last digit of the percentage number by that image. Now only 10%-steps are shown: 100%, 90%, ... 10%, 0%.

5) Edit the .tga file of the new font and overwrite the 9 and 7 by an 8. Then overwrite the 6 by a 5 and the 4 by a 3 and the 2 by a 1.

Now only the values 100%, 80%, 50%, 30%, 10% and 0% can be shown.

I'll include this in my next version of ACM-Reloaded-h.sie's Edition.

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 02-08-10 at 01:46 PM.
h.sie is offline   Reply With Quote
Old 02-08-10, 08:34 AM   #3
Uber Gruber
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Thats an excellent idea h.sie

I imagine the same procedure would also work for WO range estimates ? If so then we should be able to get ranges in multiples of 1000 meters instead of the amazingly accurate ranges we get now.

As Beery once said - it's all about uncertainty

  Reply With Quote
Old 02-08-10, 08:42 AM   #4
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,099
Downloads: 109
Uploads: 2


Default

Quote:
I imagine the same procedure would also work for WO range estimates ? If so then we should be able to get ranges in multiples of 1000 meters instead of the amazingly accurate ranges we get now.
Ha ha first thing I too thought about when reading the post

But no, I think it won't work with range because it appears in the message bar and in different positions, always using the same font as the rest of teh messages, so you can't apply the trick
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 02-08-10, 10:44 AM   #5
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

As Hitman already said: This trick won't work for the WO range.

The only possibility I see is to add escape sequences (e.g. something like '0x08' for backspaces) into the output string "Current range: %4.0f"

Using the backspaces one could maybe overwrite the output

from 13500m to 13000m or similar.

But I don't know how to add these control sequences. Maybe it's impossible.
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 02-08-10 at 11:03 AM.
h.sie is offline   Reply With Quote
Old 02-08-10, 12:34 PM   #6
Stiebler
Fuel Supplier
 
Stiebler's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 1,237
Downloads: 29
Uploads: 4


Default

The idea of introducing back-spaces into the pseudo-C line for the watch-officer's ranges was suggested some time ago.

Unfortunately, it doesn't work. I tried it.

Stiebler.
Stiebler is offline   Reply With Quote
Old 02-08-10, 12:36 PM   #7
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,325
Downloads: 182
Uploads: 7


Default

thats very nice idea H.Sie ,especially for the wo!

you mean that with these changes (if you manage to import it into the game) the wo will give ranges of 500m ?

i think that Uber is involved at the past with this subject and ,maybe, you two together can figure out what is going on !

all the best to this effort
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 02-08-10, 12:51 PM   #8
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: Săo Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
Default

Quote:
Originally Posted by h.sie View Post
In the meantime, while working on my edition of ACM-GUI-Reloaded, I found a solution to restrict the hull integrity information to only six values:

100%, 80%, 50%, 30%, 10% and 0%.

For me that's a good compromise between the present solutions: fully show or hide the hull integrity percentage.

It's not hard to do.

1) First you have to create a new font by copying an existing one. Then you have to edit the .off file of your new font (using S3D) in order to make the numbers (0 to 9) have a FIXED WIDTH.

2) Use the new font for Item-Id 0x67xxxxxx (exact number will follow) in menu.ini. Don't forget to register the new font in the beginning of menu.ini.

3) Make the hull percentage output string right-aligned by setting TextFmt=0x1A for the above-mentioned Item.

Because of step 2) and 3) the last digit of the hull percentage now has a fixed position regardless of the percentage number shown.

4) Create an intransparent tga-image and paint a "0 %" on it and hide the last digit of the percentage number by that image. Now only 10%-steps are shown: 100%, 90%, ... 10%, 0%.

5) Edit the .tga file of the new font and overwrite the 9 and 7 by an 8. Then overwrite the 6 by a 5 and the 4 by a 3 and the 2 by a 1.

Now only the values 100%, 80%, 50%, 30%, 10% and 0% can be shown.

I'll include this in my next version of ACM-Reloaded-h.sie's Edition.

h.sie
This is great. I also already have looked to this issue some years ago but didn't achieve any good result.

Your solution is very good, it will be enough as a mid range option (much better than the actual nothing or all) and please make it also GWX 3.0 compatible.
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve
Rubini is offline   Reply With Quote
Old 02-08-10, 01:23 PM   #9
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,138
Downloads: 147
Uploads: 12
Default

Hi h.sie,

nice idea. However, I am wondering whether a more simple solution is to use SH3 Commander's crush depth randomization option. With a randomization of the crush depth by approx. 10%, I think the hull integrity number is also not too accurate. I use the full text version in combination with the SH3Commander feature and I think it is just fine.

Anyway, a solution for the WO would be really great!

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 02-09-10, 02:33 PM   #10
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Thanks, for your replies, guys, I'll answer tomorrow. Currently I'm testing very interesting things. It's getting better and better. Playing with the .off files of the Fonts, I'm now able to display self-made little color flags instead of numbers or characters.

Only the middle digit of the three hull integrity percentage digits is relevant for us.

If 0 (100%) or 9 (90%) -> a green flag is shown.

If 5 (50%) or 6 (60%) -> a yellow flag is shown. and so on.

So hull integrity can be shown in 5 color steps, the same as the stealth-meter works: green, lightgreen, yellow, orange, red.

In my opinion it's better than the numbers.
Or what do you think?
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 02-09-10 at 03:36 PM.
h.sie is offline   Reply With Quote
Old 02-09-10, 03:23 PM   #11
Sailor Steve
Eternal Patrol
 
Sailor Steve's Avatar
 
Join Date: Nov 2002
Location: High in the mountains of Utah
Posts: 50,369
Downloads: 745
Uploads: 249


Default

I think words would be the best, if possible.

Excellent

Good

Fair

Poor

We're In Trouble

Barring that, the flags sound like a great idea.
__________________
“Never do anything you can't take back.”
—Rocky Russo
Sailor Steve is offline   Reply With Quote
Old 02-09-10, 03:35 PM   #12
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Hi Sailor,

words are not possible.

h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 02-09-10, 03:53 PM   #13
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default

The % Hull integrity is just the information about how many Hit Points are still available , therefore the % Hull integrity have nothing to do with the hull of the sub, I just installed SH3 Commander to have my % Hull integrity , because unfortunately GWX Gold remove this very needed information , I need The % Hull integrity and I want The exact information about how many hit points are still available
__________________
What we do in life echoes in Eternity

Last edited by tonschk; 02-09-10 at 09:01 PM.
tonschk is offline   Reply With Quote
Old 02-09-10, 04:56 PM   #14
Uber Gruber
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Curses to them and their lot
  Reply With Quote
Old 02-10-10, 03:58 AM   #15
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Hi tomschk,

I try to make the game as "realistic" as possible, and I think a real kaleun did not know how many "hitpoints" are left for his sub. Or was there a gauge showing "hitpoints: 75,5%"?? So I try to reduce the detail of the information given to get a historical feeling, but I do not force anyone to use my idea.

h.sie


@makman: sorry, but the WO range cannot be modded this way.
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 02-10-10 at 06:37 AM.
h.sie 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 06:44 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.