![]() |
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 |
![]() |
Thread Tools | |
Display Modes | |
|
|