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

Closed Thread
 
Thread Tools Display Modes
Old 08-15-09, 10:31 AM   #1
deadok
Swabbie
 
Join Date: Apr 2009
Posts: 8
Downloads: 6
Uploads: 0
Default Ship length in Recognition manual [Nasty Hack]

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
Totally optional:
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
deadok is offline  
Old 08-15-09, 03:48 PM   #2
Frederf
Seasoned Skipper
 
Join Date: Apr 2005
Posts: 665
Downloads: 79
Uploads: 1
Default

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)?
Frederf is offline  
Old 08-15-09, 05:55 PM   #3
deadok
Swabbie
 
Join Date: Apr 2009
Posts: 8
Downloads: 6
Uploads: 0
Default

Quote:
Originally Posted by Frederf View Post
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)?
Well, at 1920x1200 this bar placed somewhat outside of manual and kind of unusable (might worth fixing though)
But even at 1024x768 according to this bar elco torpedo boat is longer than 50yds, and wiki and .cfg files says it ~80ft.
deadok is offline  
Old 08-15-09, 10:57 PM   #4
Frederf
Seasoned Skipper
 
Join Date: Apr 2005
Posts: 665
Downloads: 79
Uploads: 1
Default

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"
Frederf is offline  
Old 08-16-09, 06:49 AM   #5
AOTD_MadMax
Seasoned Skipper
 
Join Date: Jun 2007
Location: Bremen/Germany
Posts: 749
Downloads: 71
Uploads: 1
Default

@ deadok

did i read right ? You hacked the SH4-exe ?

Greets

Maddy
__________________
AOTD is gone, iam the last survivor ........
AOTD_MadMax is offline  
Old 08-16-09, 03:22 PM   #6
vanjast
Sea Lord
 
Join Date: Jun 2006
Location: Somewhere else now
Posts: 1,733
Downloads: 825
Uploads: 4
Default

Quote:
Originally Posted by AOTD_MadMax View Post
@ deadok
did i read right ? You hacked the SH4-exe ?
you've been a busy boy!! - Did you use IDA .. ??
vanjast is offline  
Closed Thread


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 03:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.