![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]()
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 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 ![]() |
![]() |
![]() |
![]() |
#2 |
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,816
Downloads: 123
Uploads: 0
|
![]()
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 |
![]() |
![]() |
![]() |
#3 | |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]() Quote:
![]() 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 ![]() |
|
![]() |
![]() |
![]() |
#4 |
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,816
Downloads: 123
Uploads: 0
|
![]()
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 |
![]() |
![]() |
![]() |
#5 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
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. |
![]() |
![]() |
#6 | |
Kaleun of U-3
![]() Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,816
Downloads: 123
Uploads: 0
|
![]() Quote:
Best regards Hans |
|
![]() |
![]() |
![]() |
#7 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
They don't call them 'Dummy' nodes for nothing you know.
![]() ![]() |
![]() |
![]() |
#8 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]()
Will this work for the 2d User Interface dials or is this method for 3d model.
I'm looking to do a Interface Linear dial that need to work just like the Periscope bearing ie: rotate 360 degrees in relation to the periscope. ![]() |
![]() |
![]() |
![]() |
#9 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
Ah, That's different.
Only one I could think to ask is danlisa. PM him and say I suggested you contact him so if he gets upset? He can come crab at me. ![]() |
![]() |
![]() |
#10 | |
Pacific Aces Dev Team
|
![]() Quote:
__________________
One day I will return to sea ... |
|
![]() |
![]() |
![]() |
#11 | |
Hellas
![]() |
![]() Quote:
create a VERY VERY BIG rounded image with the bearings's numbers at the 'edge' of it and make it rotate as a usal rounded dial . cover it and let only a small 'window' to show you the current value that you want. this rounded dial seems and behave at the end like a fake linear one you can see examples of this trick at 6-feeling dials (the bearing on the upper side of rudder dial) and at OLC,ACM,MaGui 's compass (the one that shows at the left bottom side of console)
__________________
Knowledge is the only thing that nobody can ever take from you... ![]() Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods |
|
![]() |
![]() |
![]() |
#12 | ||
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]() Quote:
Its needed for both Obs and attack scope stations, and need to be linked to the following dial type Type=24; DIAL_SOL_BEARING so yes its basically a copy of the Periscope Compass Bearing but will not be showing the compass bearing but a graphic of my own design that will work in the same way as the compass bearing. But will achieve an effect not seen in Silent Hunter yet in the Imerssion side. Basically if I can pull it of will achieve a 3d effect within the 2d User Interface - giving a whole lot more atmospheric to the Periscope stations ![]() Quote:
The worst part is while the gave us linear dials (Fuel dial) they only move up/down - that are in the dials.cfg, they made linear dials that move left/right (compass bearing) hardcoded ![]() |
||
![]() |
![]() |
![]() |
#13 |
Pacific Aces Dev Team
|
![]()
But why not simply make a clone copy of the existing bearing dial??
__________________
One day I will return to sea ... |
![]() |
![]() |
![]() |
#14 | |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]() Quote:
For example the compass in the Attack scope has an ID of: 0x26000004 Its graphic is bearing.dds in data/menu/gui (1024x16) but displays only a portion of that (88x16). So when you rotate the scope the graphic scrolls thru that 88x16 window. There is no entry for the Compass in the dials.cfg so the ID 0x26000004 is being rotated by Hardcode. If I make a copy of the compass it will get a new ID which will not be touched by the hardcode, so in turn will not rotate it. Can one fool the game into having 2 same ID's (Clone as you mention) or will that cause CTD. I haven't tried to have the same ID for both items as SH5's Menu Editor does not allow for 2 same ID's, but I could edit the attack_scope.ini file to make them the same if cloning works ![]() EDIT: Nope giving them the same ID didn't work - both the original and clone didn't rotate ![]() Last edited by reaper7; 04-16-11 at 07:38 AM. |
|
![]() |
![]() |
![]() |
#15 |
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,280
Downloads: 258
Uploads: 30
|
![]()
Ok this is what I'm trying to achieve, hopefully its possible.
I wish to get a panoramic type rotating of the Conning tower behind the periscope in the Attack Scope and a panoramic background of the control room at the Obs Scope. Based on this http://www.kolumbus.fi/mika.ajomaa/P..._2_files/1.swf ![]() As you can see in the Pic above I need to create 2 Compass like dials both sides of the periscope. It copies the same principle as the Compass Bearing Dial found in the Attack scope etc. But without a left/right linear dial in the dial.cfg menu I don't know how to get it to rotate properly. (As I said I've got it to rotate up/down but not left/right when configured as a linear dial ![]() The concept is sound and will work if there is a method to rotate left/right like the hardcoded compass. Last edited by reaper7; 04-16-11 at 08:38 AM. |
![]() |
![]() |
![]() |
|
|