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 04-08-25, 10:39 PM   #4
ElCid97
Engineer
 
Join Date: Nov 2019
Location: Miami, FL
Posts: 204
Downloads: 146
Uploads: 6


Default

Well ...

So far I've been able to get the background to work, but not the other stuff. It "crops" to an extent, but the cropped areas for parts other than the background are not showing properly or working, much less moving.

I've exhausted everything I can think of, so I'm hoping someone may have an idea what I might be missing.

Here is a guide I put together to help myself along with cropping and making the groups for the ini file:





And here is what I have so far in the ini file:

;================================================= ====
;================ USN L10B-Slideruler ================
;================================================= ====

[G29 I20]
Name=L10B_SliderulerGroup
Type=1026 ;Menu group
ItemID=0x29020048 ;hex number
ParentID=0x29020000 ;Clock page
Pos=0,0,1500,446
Zone=0 768 1500 446 1 1 0x29020000 0 -1 0x29020048 0 0 0 0 ;Drop the slide ruler below the clock.
Color=0xFFFFFFFF

[G29 I21]
Name=L10B_SliderulerBCSlideGroup
Type=1026 ;Menu group
ItemID=0x2902004A ;hex number (next number)
ParentID=0x29020048 ;L10B_SliderulerGroup
Pos=0,0,1375,225
Zone=0 768 1375 225 1 1 0x29020048 0 0.168889 0x2902004A 0 0 0 0 ;Move group slightly down to try and place where slide should be.
Color=0xFFFFFFFF

[G29 I22]
Name=L10B_SliderulerBCSlideImage_Value ;"_Value" must be part of name "as-is"????
Type=1031 ;Static bmp array
ItemID=0x2902004B ;hex number (next number)
ParentID=0x2902004A ;L10B-L10B_SliderulerBCSlideGroup
Pos=0,0,1367,73
Zone=0 768 1367 73 1 1 0x2902004A 0 0 0x2902004B 0 0 0 0 ;Moves with parent group.
Color=0xFFFFFFFF
Materials=1
Display=2 ;Linear
Mat 0=data/menu/skins/american/gui/USN_L10-B.dds
Crop 0=0.080667,0.000000,0.911333,0.163677
;Mat 0=data/menu/skins/american/gui/blank.tga ;Blank image for testing.
;Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=0 ;"0" or "1"
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G29 I23]
Name=L10B_SliderulerBCSlideImage_Border ;"_Border" must be part of name "as-is"????
Type=1031 ;Static bmp array
ItemID=0x2902004C ;hex number (next number)
ParentID=0x2902004A ;L10B_SliderulerBCSlideGroup
Pos=0,0,1375,75
Zone=0 768 1375 75 1 1 0x2902004A 0 0 0x2902004C 0 0 0 0 ;Moves with parent group.
Materials=1
Display=2 ;Linear
Mat 0=data/menu/skins/american/gui/USN_L10-B.dds
Crop 0=0.083333,0.327354,0.916667,0.168161
;Mat 0=data/menu/skins/american/gui/blank.tga ;Blank image for testing.
;Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1 ;"0" or "1"
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G29 I24]
Name=L10B_Slideruler Background ;must use word "Background"????
Type=1031 ;Static bmp array
ItemID=0x29020049 ;hex number (next number)
ParentID=0x29020048 ;L10B_SliderulerGroup
Pos=0,0,1375,225
Zone=0 768 1375 225 1 1 0x29020048 0 0 0x29020049 0 0 0 0 ;Moves with parent group.
Color=0xFFFFFFFF
Materials=1
Display=2 ;Linear
Mat 0=data/menu/skins/american/gui/USN_L10-B.dds
Crop 0=0.083333,0.000000,0.916667,0.504484
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

;================================================= ====
;================================================= ====

Here is the Dials.cfg entry I added at the end, with the changed number of dials at the top to match (76 since the last one I added is 75) along with the notes I made to myself trying to explain to myself what was going on:

[Dial75]
Name=Clock_Temporary_AngleOnBow ;Name for dial (anything)
Type=42 ; DIAL_TGT_ANG_ON_BOW ;Type of dial (function)
Cmd=Set_TDC_angle_on_bow ;What to command.
Dial=0x2902004C ;_Border;defines draggable area????
CrtVal=0x2902004B ;_Value;Control Value????
NewVal=0x0 ;hex for "0"
DialVal=0.1,-0.1 ;percent????
RealVal=180,-180 ;degrees;units based on "Type"
Circular=No ;Yes=Rotate;No=Linear
CmdOnDrag=Yes ;"Dial=0x" can be dragged????
RelativeDrag=Yes ;Same????
SndStep=5 ;"Clicky" noise like German????
;SndList=1,Menu.TDC.AngleOnBow,360 ;"Clicky" noise like German????

The basis for the sections is just seeing other sections in the ini file since I haven't found much by way of "making" new stuff. Not sure how the AOB graphics and dials work together, but I'm definately missing something since it has been done before.

Right now I'm just trying to get the different "parts" to "play nice" together and show properly. The "moving" of the parts can come later, but if I can't get the things to show properly, then it's a moot point.

I've gone through the forums and have made PDF's of various tutorials on the "Zone" line, but I think I may be missing something. Either that, or it's something to do with the Hex code which I'm still trying to learn and have been using the internet to create "new" or "next" numbers from other numbers in the section/page (clock in this case). Maybe the "auto" created numbers are messing things up?

Heigharchy issue with the different parts? Maybe just save the parts as different files like Karamazov did and make the "Crop" line just 0,0,1,1 for the different parts?

Any ideas?

Thanks!

ElCid97
ElCid97 is offline   Reply With Quote
 


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 10:17 PM.


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.