PDA

View Full Version : Jonz Draggable chronometer - problem - Help!


Reece
03-20-06, 11:18 PM
Hi, when starting Silent Hunter I get a few errors "menu item not found" I think this is to do with the "menu_1024_768.ini" file.
I have updated the Dials.cfg & menu_1024_768.ini with the appropriate lines and made sure the line titles are numbered correctly, also placed the Chronometer.tga, Reflex.tga files in their correct places, I have only at this stage installed the Chronometer.
Could you please advise. :cry:
Many thanks,
Reece.

JonZ
03-20-06, 11:25 PM
Hi, when starting Silent Hunter I get a few errors "menu item not found" I think this is to do with the "menu_1024_768.ini" file.
I have updated the Dials.cfg & menu_1024_768.ini with the appropriate lines and made sure the line titles are numbered correctly, also placed the Chronometer.tga, Reflex.tga files in their correct places, I have only at this stage installed the Chronometer.
Could you please advise. :cry:
Many thanks,
Reece.


Sounds to me that an Item ID doesn't Match a ParentID either in your menu.ini file or in the Dials.cfg.

Can you post the Dials and menu parts you are trying to mod?

JonZ

Edit: I can't be helpful tonight, I had a swarmy day at work and must... sleep .....now. to...,morrow...zzzz z....m

Reece
03-20-06, 11:53 PM
The following includes the menu item before the new sections.

Dials.cfg:

[DIALS]
DialsNo=48


[Dial43]
Name=CO2 level
Type=39; DIAL_CO2
Dial=0x0
CrtVal=0x3F300004
NewVal=0x0
DialVal=-90,90
RealVal=0,1; normalized
Circular=Yes

[Dial44]
Name=Add_ChronoSec
Type=13; DIAL_CHRONO_SEC
Dial=0x0
CrtVal=0x3FF00002
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes

[Dial45]
Name=Add_ChronoMin
Type=14; DIAL_CHRONO_MIN
Dial=0x0
CrtVal=0x3FF00003
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

[Dial46]
Name=Add_ChronoEstSec
Type=40; DIAL_TORP_ESTIM_SEC
Dial=0x0
CrtVal=0x3FF00004
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes

[Dial47]
Name=Add_ChronoEstMin
Type=41; DIAL_TORP_ESTIM_MIN
Dial=0x0
CrtVal=0x3FF00005
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

menu_1024_768.ini:

[G3F I285]
Name=Group RClick back
Type=1026;Menu group
ItemID=0x3F160000
ParentID=0x3F000000
Pos=411,467,200,200
Color=0xFFFFFFFF

[G3F I286]
Name=Capture mouse
Type=1030;Static bmp
ItemID=0x3F000001
ParentID=0x3F000000
Pos=76,754,902,607
Color=0xFFFFFF64
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/layout/bkgr.tga
MatFlags=0x1
TexFmt=0x9
[G3F Ixxx]
Name=Dial
Type=1031;Stat bmp array
ItemID=0x3FF00000
ParentID=0x3F000000
Pos=100,970,194,230
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Chronometer.tga
Crop 0=0,0.1015625,0.2421875,0.8984375
MatFlags=0x29
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F I287]
Name=Reflection
Type=1030;Static bmp
ItemID=0x3FF00006
ParentID=0x3FF00000
Pos=0,26,256,256
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Reflex.tga
MatFlags=0x29
TexFmt=0x9
MatFlags=0x29
[G3F Ixxx]
Name=Center
Type=1030;Static bmp
ItemID=0x3FF00001
ParentID=0x3FF00000
Pos=99,-108,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

[G3F I288]
Name=Sec
Type=1031;Stat bmp array
ItemID=0x3FF00002
ParentID=0x3FF00000
Pos=96,-50,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

[G3F I289]
Name=Min
Type=1031;Stat bmp array
ItemID=0x3FF00003
ParentID=0x3FF00000
Pos=97,-63,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

[G3F I290]
Name=Estim Sec
Type=1031;Stat bmp array
ItemID=0x3FF00004
ParentID=0x3FF00000
Pos=96,-50,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

[G3F I291]
Name=Estim Min
Type=1031;Stat bmp array
ItemID=0x3FF00005
ParentID=0x3FF00000
Pos=97,-63,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

Could be a clash with other entries (Mods) prior to the Chronometer. :doh:

Reece.

Samwolf
03-20-06, 11:57 PM
Hi, when starting Silent Hunter I get a few errors "menu item not found" I think this is to do with the "menu_1024_768.ini" file.
I have updated the Dials.cfg & menu_1024_768.ini with the appropriate lines and made sure the line titles are numbered correctly, also placed the Chronometer.tga, Reflex.tga files in their correct places, I have only at this stage installed the Chronometer.
Could you please advise. :cry:
Many thanks,
Reece.

One problem that was encountered when editing files is a space at the end of lines. Check your entries to make sure there are no spaces at the end of any line.

JonZ
03-21-06, 12:01 AM
The following includes the menu item before the new sections.

Dials.cfg:

[DIALS]
DialsNo=48


[Dial43]
Name=CO2 level
Type=39; DIAL_CO2
Dial=0x0
CrtVal=0x3F300004
NewVal=0x0
DialVal=-90,90
RealVal=0,1; normalized
Circular=Yes

[Dial44]
Name=Add_ChronoSec
Type=13; DIAL_CHRONO_SEC
Dial=0x0
CrtVal=0x3FF00002
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes

[Dial45]
Name=Add_ChronoMin
Type=14; DIAL_CHRONO_MIN
Dial=0x0
CrtVal=0x3FF00003
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

[Dial46]
Name=Add_ChronoEstSec
Type=40; DIAL_TORP_ESTIM_SEC
Dial=0x0
CrtVal=0x3FF00004
NewVal=0x0
DialVal=0,360
RealVal=0,60; seconds
Circular=Yes

[Dial47]
Name=Add_ChronoEstMin
Type=41; DIAL_TORP_ESTIM_MIN
Dial=0x0
CrtVal=0x3FF00005
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

menu_1024_768.ini:

[G3F I285]
Name=Group RClick back
Type=1026;Menu group
ItemID=0x3F160000
ParentID=0x3F000000
Pos=411,467,200,200
Color=0xFFFFFFFF

[G3F I286]
Name=Capture mouse
Type=1030;Static bmp
ItemID=0x3F000001
ParentID=0x3F000000
Pos=76,754,902,607
Color=0xFFFFFF64
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/layout/bkgr.tga
MatFlags=0x1
TexFmt=0x9
[G3F Ixxx]
Name=Dial
Type=1031;Stat bmp array
ItemID=0x3FF00000
ParentID=0x3F000000
Pos=100,970,194,230
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Chronometer.tga
Crop 0=0,0.1015625,0.2421875,0.8984375
MatFlags=0x29
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F I287]
Name=Reflection
Type=1030;Static bmp
ItemID=0x3FF00006
ParentID=0x3FF00000
Pos=0,26,256,256
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Reflex.tga
MatFlags=0x29
TexFmt=0x9
MatFlags=0x29
[G3F Ixxx]
Name=Center
Type=1030;Static bmp
ItemID=0x3FF00001
ParentID=0x3FF00000
Pos=99,-108,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

[G3F I288]
Name=Sec
Type=1031;Stat bmp array
ItemID=0x3FF00002
ParentID=0x3FF00000
Pos=96,-50,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

[G3F I289]
Name=Min
Type=1031;Stat bmp array
ItemID=0x3FF00003
ParentID=0x3FF00000
Pos=97,-63,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

[G3F I290]
Name=Estim Sec
Type=1031;Stat bmp array
ItemID=0x3FF00004
ParentID=0x3FF00000
Pos=96,-50,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

[G3F I291]
Name=Estim Min
Type=1031;Stat bmp array
ItemID=0x3FF00005
ParentID=0x3FF00000
Pos=97,-63,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

Could be a clash with other entries (Mods) prior to the Chronometer. :doh:

Reece.

hey I'm not in bed yet :P

I highlighted the bad part in orange.. your sequence is erronous there, probably badly pasted and you did not see the spacer. Put an enter before the [G3F, and continue the sequence without skipping it ( i288].... i289]...forth).

Reece
03-21-06, 12:54 AM
My glasses, I need my glasses! :-?
Sheesh! how did I miss that! :88)
Thanks Jonz!
Also thanks Samwolf, will watch that, although I didn't think that would make a difference.
Cheers.

Just found another error above:

[G3F I286]
Name=Capture mouse
Type=1030;Static bmp
ItemID=0x3F000001
ParentID=0x3F000000
Pos=76,754,902,607
Color=0xFFFFFF64
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/layout/bkgr.tga
MatFlags=0x1
TexFmt=0x9
[G3F Ixxx]

I obviously missed these 2 entries as they have no line spacing like the others at the start of the menu item!
have edited & when I return to port will reinstall this mod! :D
Thanks again.