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 09-17-15, 11:07 PM   #16
ColonelSandersLite
Captain
 
Join Date: Aug 2009
Posts: 481
Downloads: 71
Uploads: 3
Default

Yeah. The hex values are links to ItemID in menu_1024_768.ini.

Dial is the background
CrtVal (currentVal) is the indicator of where you are now
NewVal is the indicator used after command is issued to show where you are going

As an example, take a look at the US depth gauge.
Dial is the field with the depth numbers
CrtVal is the current depth indicator
NewVal is the ghost needle left when you click a new depth


On the spread angle dial though, Dial is the same texture, location and placement as CrtVal and as far as I can make out is covered by CrtVal. CrtVal is the dial used to indicate current spread angle. Since spread angle responds instantly, NewVal is not used.


Question:
Where are the itemIDs used in menu_1024_768.ini (ItemID=0x4206000A) defined? Are they just defined when declared in menu_etc or are they referencing something else?

Re bug:
That's not a rounding error. They forgot to account for 0 as a possible value when deciding range. Supposing you declare a range of degrees from 1-10 inclusive, that's 10 possible values. -10 to -1 is also 10 possible values. -10 to 10 is 21 possible values. They made the mistake of thinking it was 20.
__________________
My SH4 LP

Last edited by ColonelSandersLite; 09-17-15 at 11:18 PM.
ColonelSandersLite is offline   Reply With Quote
Old 09-17-15, 11:52 PM   #17
ColonelSandersLite
Captain
 
Join Date: Aug 2009
Posts: 481
Downloads: 71
Uploads: 3
Default

And I'm pretty sure the answer is that ItemID is just set to whatever you want in menu_etc. Changing the value ItemID=0x4206000A to ItemID=0x4209900A and correcting in dials.cfg results in a working dial with no error messages.
__________________
My SH4 LP
ColonelSandersLite 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 08:07 PM.


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.