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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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  
 

Thread Tools
Display Modes

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:35 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.