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

Reply
 
Thread Tools Display Modes
Old 11-16-25, 02:10 PM   #1
Baxder
Chief
 
Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
Default Repositioning stuff

Heyo. I'd like to try my hand at repositioning things where I want them, like the clipboard, watch, message log, event camera, and status icon bar. I tire of moving them every time I open the game.

I get the general concept after resizing and repositioning the TMO Nomograph, but that seems to be the only thing conveniently labeled in the menu .ini.

What are those other things called in the menu .ini? I've found some of their .dds files, but looking for them there didn't really work like it did with the nomograph.

Also, is there a way to have the watch always on screen?

Here's the before/after of what I'm going for:



I forgot to bring the watch back after moving it on the periscope screen. I like it just above the center of the firing panel.
Baxder is offline   Reply With Quote
Old 11-16-25, 07:18 PM   #2
Baxder
Chief
 
Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
Default

I think I've found all the menu ini items I'm after.

Can anyone confirm that these are correct?

Event Cam
[G23 I2]
Name=Event cam
Type=1026;Menu group
ItemID=0x23010000
ParentID=0x23000000
Pos=14,-484,248,188
Zone= 14 284 248 188 1 1 0x23000000 0.135 -0.630208 0x23010000 -0.5 0 0 0
Color=0xFFFFFFFF

Clipboard
[G35 I2]
Name=Clonable
Type=1026;Menu group
ItemID=0x35020000
ParentID=0x35000000
Pos=362,1536,300,200
Zone= 362 2304 300 200 0 1 0x35000000 0.5 2 0x35020000 -0.5 0 0 0
Color=0xFFFFFFFF

Stopwatch
[G29 I2]
Name=Chrono
Type=1026;Menu group
ItemID=0x29020000
ParentID=0x29000000
Pos=-31,0,312,300
Zone= -31 768 312 300 0 1 0x29000000 0 0 0x29020000 -0.1 0 0 0
Color=0xFFFFFFFF


Icon bar
[G3F I115]
Name=Group warnings
Type=1026;Menu group
ItemID=0x3F0C0000
ParentID=0x3F000000
Pos=873,-15,100,32
Zone= 873 753 100 32 0 1 0x3F000000 0.95 -0.04 0x3F0C0000 -1 0.5 0 0
Color=0xFFFFFFFF

Log
[G3F I252]
Name=ListboxMessages2
Type=1047;Listbox with items
ItemID=0x3F320000
ParentID=0x3F2A0000
Pos=6,-22,338,68
Zone= 262 742 338 68 0 1 0x3F2A0000 0 0 0x3F320000 0 0 6 -22
Baxder is offline   Reply With Quote
Old 11-16-25, 07:28 PM   #3
Baxder
Chief
 
Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
Default

And can someone help me make more sense of this? I made my own adjustments to the nomograph with it, but I'm still fuzzy.

Quote:
Originally Posted by ElCid97 View Post

[G4B I1]
Name=Page Gramophone
Type=1027;Menu page
ItemID=0x4B000000
<-- This is the "child" serial number or specific ID. Notice the "0x4B...." serialization. The "page" is "G4B", so it's a hex number here. There are some good websites that can convert back and forth between "normal" and "hex" if you want to add more "children" items to existing pages. The "item" here is "I1" and the serial means it's the first item. If you wanted to add another "item" it would be "I2" and the next serial would be ItemID=0x4B000001, if I remember correctly.
ParentID=0x0
<-- This is the "parent" serial number or specific ID. In this case, "0x0" means it's "parent" is the main page, which is normally "1024x768" regardless of the screen resolution.
Pos=0,0,1024,768
<-- This tells the sim that the "origin" (top-left corner) is the top-left corner of the "child", and that the size of the "child" is "1024x768". In other words, it's basically the whole screen.
Zone= 0 768 1024 768 2 1 0x0 0.1 0 0x4B000000 -0.5 0 0 0
<-- This "positions" the "child" window (gramaphone) ACTUALLY to the top of the "parent" since the "zone" (which is required) is the way SH4 allows the various resolutions. Unfortunately, it also has the "origin" at the BOTTOM of the screen instead of the TOP of the screen. As a result, you have to move the "child" up the entire length of the "parent" to get it to the top-left corner (0 768 in this case). The next two numbers are the size of the "child" in relation to the "parent" (same in this case). The number "2" in this case may well be changed to "1" and it may actually get things to "fit" in your resolution since I THINK/REMEMBER that "1" is "vertical", "2" is "horizontal", and "5" is "proportional" (think "round" stuff) for display.
LoadingMode=1 <-- Can't remember off the top of my head. Just don't touch for now.

The numbers just before serial in the "Zone" line are where to position the "child" in relation to the "parent" expressed in "percentage" -- in this case, 0.1 0 means moving the "child" 10% to the right and no movement in the vertical. The "parent" is just to the left of the movement commands, so in this case it's "0x0". The numbers just after the "Zone" line are "fine tuning" numbers where you now use the size of the "child" to position it even further. In this case, you are moving the child "left" by 50% (negative numbers are left/down; positive are right/up) and no vertical movement. The last two numbers (0 0) are actually pixels that you would be moving for even finer tuning of the position. The main issue using these two numbers is that different resolutions would mean different values, so mostly these are left at "0 0" by most mods.

So basically, the gramaphone in this case is moved 10% to the right using the main page for reference, then left by half the gramaphone page's size. No vertical movement is done and it should be flush with the top of the screen.
EDIT: Oh my good God...

Last edited by Baxder; 11-16-25 at 07:56 PM.
Baxder is offline   Reply With Quote
Old 11-23-25, 02:21 PM   #4
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 5,991
Downloads: 109
Uploads: 2


Default

Was about to point you there, but see you already found it

When something has been aroun for long enough, the knowledge that was common wisdom long ago suddenly seems to be in need of being found out ... again. Reinventing the wheel, with all the pain and effort it takes, if you see what I mean.

Even me as one of the old hands around has forgotten so much stuff it is embarassing. But well, at least this is a real forum, of those that barely exist any more, instead of a stupid FB page of chat channel where things get lost not after 5 years but after 5 minutes ...

__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 11-23-25, 03:13 PM   #5
Bubblehead1980
Navy Seal
 
Join Date: Apr 2009
Location: USA
Posts: 8,645
Downloads: 697
Uploads: 61


Default

Quote:
Originally Posted by Hitman View Post
Was about to point you there, but see you already found it

When something has been aroun for long enough, the knowledge that was common wisdom long ago suddenly seems to be in need of being found out ... again. Reinventing the wheel, with all the pain and effort it takes, if you see what I mean.

Even me as one of the old hands around has forgotten so much stuff it is embarassing. But well, at least this is a real forum, of those that barely exist any more, instead of a stupid FB page of chat channel where things get lost not after 5 years but after 5 minutes ...


Well said. This place is a true treasure of information. I've learned so much (still plenty to learn) about modding here from "old hands" as well as just reading old threads here over the years. Not long ago, I found a thread from 2007 that answered my questions and helped me solve an issue lol.

There are things that have slipped my mind as well, but can usually refresh by searching subsim.

Amazes me when it comes to mind that SH3 is 20 years old, SH 4 is rapidly approaching 20, both are still alive, thriving, excellent sims. Even with more modern subsims out, I'd say better than anything out there, with the plethora of mods of course.
Bubblehead1980 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 09:03 AM.


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