PDA

View Full Version : Problem when adding a dial, any ideas?


karamazovnew
07-28-09, 11:48 PM
I'm trying to add chronometers to both the nav map and the hydrophone notepad. I've checked and rechecked, but for some reason the needles don't move. I've even downloaded the U-jagd tools to figure out if I did any mistake, but no. Here's how the files look (for the hydrophone screen).

Menu_1024_768.ini file:

;CHRONO------------
[G33 I10]
Name=Chrono
Type=1026;Menu group
ItemID=0x33020000
ParentID=0x33010000
Pos=0,0,136,52
Color=0xFFFFFFFF

[G33 I11]
Name=Center
Type=1030;Static bmp
ItemID=0x33020006
ParentID=0x33020000
Pos=64,-128,4,4
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0.0625,0.960938,1,0.984375
MatFlags=0x29
TexFmt=0x9

[G33 I12]
Name=Sec
Type=1031;Stat bmp array
ItemID=0x33020002
ParentID=0x33020000
Pos=61,-70,10,120
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0.3125,0,0.3125,0.9375
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G33 I13]
Name=Min
Type=1031;Stat bmp array
ItemID=0x33020003
ParentID=0x33020000
Pos=62,-83,8,40
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0,0,0.25,0.3125
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G33 I14]
Name=Estim Sec
Type=1031;Stat bmp array
ItemID=0x33020004
ParentID=0x33020000
Pos=61,-70,10,120
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0.6875,0,0.3125,0.9375
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G33 I15]
Name=Estim Min
Type=1031;Stat bmp array
ItemID=0x33020005
ParentID=0x33020000
Pos=62,-83,8,40
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Chrono.tga
Crop 0=0,0.492188,0.25,0.3125
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G33 I16]
Name=Dial
Type=1031;Stat bmp array
ItemID=0x33020001
ParentID=0x33020000
Pos=-20,0,163,213
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.00292969,0.767578,0.15918,0.208008
MatFlags=0x21
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
;ToolTipText=2202


;CHRONO END------



And Dials.cfg:


[DIALS]
DialsNo=95

etc etc etc etc

;;HYDRO CHRONO
[Dial91]
Name=H_ChronoSec
Type=13; DIAL_CHRONO_SEC
Dial=0x0
CrtVal=0x33020002
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes


[Dial92]
Name=H_ChronoMin
Type=14; DIAL_CHRONO_MIN
Dial=0x0
CrtVal=0x33020003
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes


[Dial93]
Name=H_ChronoEstSec
Type=40; DIAL_TORP_ESTIM_SEC
Dial=0x0
CrtVal=0x33020004
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes


[Dial94]
Name=H_ChronoEstMin
Type=41; DIAL_TORP_ESTIM_MIN
Dial=0x0
CrtVal=0x33020005
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

Please help :damn:

FIREWALL
07-28-09, 11:53 PM
I think there is a dragable chronometer mod.

Is that any help ?

karamazovnew
07-29-09, 12:04 AM
I had already downloaded that and compared to my files. Apart from the ID's there's no difference. I even thought that there could only be 3 chronometers in the game (AP, OP, UZO), but the Ujagd one doesn't take any of those ID's. I copy/pasted everything from the AP myself, and changed what was neccesary...

FIREWALL
07-29-09, 12:32 AM
Sorry I'm not more help.

I would also like a chrono at more stations.

Hope you get it worked out. :salute:

karamazovnew
07-29-09, 01:21 AM
Hmm, I've just moved another dial to the hydrophone screen (the Target Speed dial). As expected, it didn't work, yet this time I'm sure I wrote it correctly. I'm beginning to suspect that The Nav Map and the Hydrophone Screen (i mean Page Interior), do not check the dials.cfg file. That might explain why they made a draggable chrono that sits in the Page Layout (G3F) :P. Can anyone confirm this?