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 > Silent Hunter III
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-29-20, 01:49 AM   #1
SeniorChiefChef
Swabbie
 
Join Date: Apr 2017
Location: Virginia
Posts: 13
Downloads: 41
Uploads: 0
Icon14 menu_1024_768 Math: Navigation Map-Tools Placement

Hi, guys.

So I'm very close to getting a handle on how the tools on the Navigation Map (Group/Page [G31 I20]) are placed, but the the "math" is just throwing me off.

NB: I'm using the ARBWideGUI1920x1080 mod.

Code:
[G31 I20]
Name=Buttons
Type=1026;Menu group
ItemID=0x311A0000
ParentID=0x31000000
Pos=630,1137,414,42
So, according to the Pos parameter, the location on screen of the 414x42px Menu Group (the group containing the map tools) is 630px right, and 1137px down, so right 630px and down 57px (1137 - 1080 = 57), off screen.

After many many screenshots of the map in-game, using GIMP, and playing with the numbers .... I zeroed out the Menu Group in the vertical ...

Code:
Pos=140,0,414,42;                  That's 140px right, and 0px up/down.
... and moved each of the tools to a vertical (X?) pos of 100, e.g.:

Code:
[G31 I21];                  the "sharpener", i.e. the Tool Helper
Name=Help
Type=1033;Check box
ItemID=0x311A000A
ParentID=0x311A0000
Pos=212,100,160,80;           212px right, and 100px up/down(?).
... And here's what I ended up with in-game:


The guide shows that all of the maps tools are at 980px from the top.

So, the long and the short of it is, if the vertical pos of the Group is zero (0) how is 100 placing the tools at 980px and not 100px?
__________________
Defendi rempublicam adulescens, non deseram senex.


Last edited by SeniorChiefChef; 11-02-20 at 01:19 AM. Reason: Spelling.
SeniorChiefChef is offline   Reply With Quote
Old 10-29-20, 07:54 AM   #2
klh
Ensign
 
klh's Avatar
 
Join Date: Jan 2002
Location: Indiana, USA
Posts: 221
Downloads: 200
Uploads: 0
Default

The y coordinates are from the bottom. You placed the menu group reference point at y=0 (the bottom of the screen). Then you set the items at y=100px (also from the bottom). So the items' top right corner is at 980px from the top (assuming you have a 1080p monitor).

The coordinate system in SH3 is a little screwy sometimes, but you'll get used to it.
klh is offline   Reply With Quote
Old 11-01-20, 01:45 PM   #3
SeniorChiefChef
Swabbie
 
Join Date: Apr 2017
Location: Virginia
Posts: 13
Downloads: 41
Uploads: 0
Icon14 Thank You.

Thanks, klh.

Here's what I've done with that knowledge:

My Nav Map layout:



My Attack Map layout:

__________________
Defendi rempublicam adulescens, non deseram senex.

SeniorChiefChef is offline   Reply With Quote
Old 11-02-20, 06:44 AM   #4
John Pancoast
Ocean Warrior
 
Join Date: Apr 2002
Location: Minnysoda
Posts: 3,162
Downloads: 488
Uploads: 4


Default

Quote:
Originally Posted by SeniorChiefChef View Post
Thanks, klh.

Here's what I've done with that knowledge:

My Nav Map layout:



My Attack Map layout:



That WW2 history you have in your signature is great !!
__________________
"Realistic" is not always GAME-GOOD." - Wave Skipper
John Pancoast is offline   Reply With Quote
Old 11-02-20, 10:47 AM   #5
klh
Ensign
 
klh's Avatar
 
Join Date: Jan 2002
Location: Indiana, USA
Posts: 221
Downloads: 200
Uploads: 0
Default

Quote:
Originally Posted by SeniorChiefChef View Post
Thanks, klh.

Here's what I've done with that knowledge:

My Nav Map layout:



My Attack Map layout:

Well done. But one caution for you - now that you've started modding the interface, it is hard to stop.

I look forward to seeing what else you will do!
klh is offline   Reply With Quote
Old 11-02-20, 12:16 PM   #6
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,892
Downloads: 300
Uploads: 0
Default

Quote:
Originally Posted by John Pancoast View Post
That WW2 history you have in your signature is great !!
I call your "Great" and raise it to "Awesome!"
__________________
My site downloads: https://ricojansen.nl/downloads
Pisces is offline   Reply With Quote
Old 11-03-20, 09:12 AM   #7
SeniorChiefChef
Swabbie
 
Join Date: Apr 2017
Location: Virginia
Posts: 13
Downloads: 41
Uploads: 0
Default

Quote:
Originally Posted by Pisces View Post
I call your "Great" and raise it to "Awesome!"
I forget from where I stole it.
__________________
Defendi rempublicam adulescens, non deseram senex.

SeniorChiefChef is offline   Reply With Quote
Old 11-03-20, 09:19 AM   #8
SeniorChiefChef
Swabbie
 
Join Date: Apr 2017
Location: Virginia
Posts: 13
Downloads: 41
Uploads: 0
Default It's True!

Quote:
Originally Posted by klh View Post
Well done. But one caution for you - now that you've started modding the interface, it is hard to stop.

I look forward to seeing what else you will do!
Quote:
Originally Posted by klh View Post
Well done. But one caution for you - now that you've started modding the interface, it is hard to stop.

I look forward to seeing what else you will do!
LOL. It's true--I've spent more time modding than playing!

I just finished adding a red highlight to the 1500m mark on the Range Dial.

I've figured out where to re-activate the Torpedo Tube numbers on the Attack Scope Tube Selector.

I see that on the Attack Map, the numbers on Tube Selector alternate between single and multiple tubes depending on if in single or salvo mode, as expected. And the Selector animates!

Next up is figuring out how to get the Tube Selector on the Attack Scope TDC to do the same thing. Any chance you can point me toward the right file?
__________________
Defendi rempublicam adulescens, non deseram senex.

SeniorChiefChef is offline   Reply With Quote
Old 11-03-20, 02:10 PM   #9
diego_gut
Soundman
 
Join Date: Aug 2020
Location: Costa Rica
Posts: 147
Downloads: 25
Uploads: 0


Default

I don't think that is possible but if you find out how to do it please share it.
diego_gut is offline   Reply With Quote
Old 11-03-20, 10:13 PM   #10
klh
Ensign
 
klh's Avatar
 
Join Date: Jan 2002
Location: Indiana, USA
Posts: 221
Downloads: 200
Uploads: 0
Default

Quote:
Originally Posted by SeniorChiefChef View Post
I see that on the Attack Map, the numbers on Tube Selector alternate between single and multiple tubes depending on if in single or salvo mode, as expected. And the Selector animates!

Next up is figuring out how to get the Tube Selector on the Attack Scope TDC to do the same thing. Any chance you can point me toward the right file?
I've tried as have many others, but it appears that the attack map selectors behavior is hard-coded into the game engine. If you figure out a way, please let everyone know.

What I have done in my GUI is to separate the single and salvo selectors into two dials. This is historical, although it does take up more space.
klh is offline   Reply With Quote
Reply

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 01:25 AM.


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