![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Swabbie
![]() Join Date: Apr 2009
Posts: 8
Downloads: 6
Uploads: 0
|
![]()
What:
sh4.exe, fixed to include ship length in addition to mast height (edit: forgot to mention, sh4.exe version = 1.5 ) ![]() How: Small code chunk, which reads value from ship's .cfg file and adds it to "base height" string before actual height (values divided by '/' symbol). Since it doesn't change any config data it should be compatible with any mod (as long as mod doesn't change .exe file by itself). Should work in metric system as well ( both values for len/height would be in meters). What should i do: Replace original sh4.exe with one in archive (don't need to remind that backup of original .exe is always a good idea, right?) Optional, but recommended: Fix position of the string, since it would be longer than before and can be truncated. It can be done by editing menu_1024_768.ini in /data/menu folder. should be smth like this Code:
[G25 I37] Name=Mast Val Type=1029;Static text ItemID=0x25070006 ParentID=0x25070000 Pos=429,-22,100,22 Zone= 615 305 100 22 0 1 0x25070007 1 -0.5 0x25070006 0.1 0.5 0 0 Color=0xFE Font=19 Text=955 TextFlags=0x4 Fix 'Base Height' string in menu.txt - obviously it should be 'Len/Height' now. Where: Link removed... ps/ feel free to re-upload/adapt to mod of your choice/ask a question/etc. Last edited by Donner; 08-27-09 at 04:23 PM. Reason: version update |
![]() |
![]() |
#2 |
Seasoned Skipper
![]() Join Date: Apr 2005
Posts: 665
Downloads: 79
Uploads: 1
|
![]()
Sort of unrelated but isn't the little black/white -----======------- bar on the bottom calibrated to be 50yds per bar (150yd total for black white black)?
|
![]() |
![]() |
#3 | |
Swabbie
![]() Join Date: Apr 2009
Posts: 8
Downloads: 6
Uploads: 0
|
![]() Quote:
But even at 1024x768 according to this bar elco torpedo boat is longer than 50yds, and wiki and .cfg files says it ~80ft. |
|
![]() |
![]() |
#4 |
Seasoned Skipper
![]() Join Date: Apr 2005
Posts: 665
Downloads: 79
Uploads: 1
|
![]()
My memory is extremely hazy on this but I swore that the bar had meaning, even if it had 2 or 3 different scales depending on ship class. Next time I play I'll make note of what various ships are in terms of "bar lengths"
|
![]() |
![]() |
#5 |
Seasoned Skipper
![]() Join Date: Jun 2007
Location: Bremen/Germany
Posts: 749
Downloads: 71
Uploads: 1
|
![]()
@ deadok
did i read right ? You hacked the SH4-exe ? Greets Maddy
__________________
AOTD is gone, iam the last survivor ........ |
![]() |
![]() |
#6 |
Sea Lord
![]() Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,733
Downloads: 825
Uploads: 4
|
![]() |
![]() |
![]() |
|
|