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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-15-11, 11:22 AM   #1
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default Linear Dial Help

Hi Guys need some help with getting a linear dial working.

I wish to create a linear dial like the hard-coded compass dial.
This is what I have in Dials Config

Code:
[Dial116]
Name=reaper7_Bearing Dial
Type=24; DIAL_SOL_BEARING
Dial=0x26000000
CrtVal=0x26000010; My New Bearing Graphic
NewVal=0x0
DialVal=0,360
RealVal=0,360; degrees
Circular=No
I can get it to rotate by turning the Periscope, but here is where the problem is:
The Linear dial move up/down and not left/right which is the direction I need it to go (Like the stock Bearing Compass).
Any suggestions how to achieve this
reaper7 is offline   Reply With Quote
Old 04-15-11, 01:10 PM   #2
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,816
Downloads: 123
Uploads: 0
Default

Hi mate,

Have you try rotating your needle in paint program then adjust value?

Also negative number in dial can change orientation.

There is many ways to adjust those needles

Best regards hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-15-11, 05:39 PM   #3
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
Default

Quote:
Originally Posted by Hans Witteman View Post
Hi mate,

Have you try rotating your needle in paint program then adjust value?

Also negative number in dial can change orientation.

There is many ways to adjust those needles

Best regards hans
Hi mate, dial is not circular. Need to do a rectangular dial like the compass bearing at attack scope .

But linar dials in Sh3 seem to only work in the up/down plane (eg the Fuel Gauge) but I need to make a linar dial that rotates left/right like the hardcoded compass bearing .
Haven't managed to get it working this way .
reaper7 is offline   Reply With Quote
Old 04-15-11, 05:50 PM   #4
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,816
Downloads: 123
Uploads: 0
Default

Hi mate,

Have you tried to disable circular to no instead of yes in dials.cfg:


[Dial40]
Name=Fuel level
Type=34; DIAL_FUEL
Dial=0x0
CrtVal=0x3F300001
NewVal=0x0
DialVal=195,17
RealVal=0,1; normalized
Circular=No

I know it could also been control via menu_1024_768 just have a look at it sorry if my memory is not fresh enough because last year i play a lot whit menu and dials and after awhile i don't remember how i did some.

Best regards hans
__________________




Hans Witteman is offline   Reply With Quote
Old 04-15-11, 06:04 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

If you mean go from left to right or right to left?
Create a Dummy Node and attach it to that.
Then rotate the Dummy Node.
That should work.
  Reply With Quote
Old 04-15-11, 06:10 PM   #6
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,816
Downloads: 123
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post
If you mean go from left to right or right to left?
Create a Dummy Node and attach it to that.
Then rotate the Dummy Node.
That should work.
Yep another way around, there is so many way to do stuff in that game that why so many get confused because there is no absolute prcocedures for some aspect of modding.

Best regards Hans
__________________




Hans Witteman 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 05:22 AM.


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