Log in

View Full Version : Help needed for a new mod


Mav87th
01-06-07, 05:15 PM
Hi all

Im trying to put a copy of Sawdust's great Torpedoe Range Table's into SH3's periscope view as a drag out sheet - much like the sperrenets und minin sheet in the map (f5) view.

I have them showing up in peri view, and draggable and the right size....but:shifty: They are placed behind all the other periscope graphics. I have been fiddling with the ParrentID and ItemID number in menublablabla.dat, but only succeded in getting it in front of the main periscope graphics, not in front of the buttons and redmasking.

If anyone has a clue.....please help..:oops:

Boris
01-06-07, 05:49 PM
No idea really... I haven't looked at the menu file, but thinking logically, wouldn't the properties have to be similar to the flag sheet, which is also in the peri view?

Mav87th
01-07-07, 10:12 AM
From Menu_1024_768.ini

Below is what i have now - shows the sheet, but only "behind" all the other periscope graphics. I dont know if the Ixxx number has anything to do with the order things are shown in..

New entry for the sheet:

[G26 I200]
Name=Target;Range tables for mast heights to range
Type=1031;Stat bmp array
ItemID=0x26030004
ParentID=0x26030000
Pos=-250,765,886,684
Color=0xFFFFFFFF
Materials=1
Display=1;Linear
Mat 0=data/Menu/Gui/RangeTablePeri1.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFF


The current flag sheet:

[G26 I140]
Name=Target;Neuer Eintrag für Flaggen
Type=1031;Stat bmp array
ItemID=0x26030003
ParentID=0x26030000
Pos=-1700,765,1024,768
Color=0xFFFFFFFF
Materials=1
Display=1;Linear
Mat 0=data/Menu/Gui/Layout/Flaggen.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFF

Anvart
01-07-07, 10:45 AM
End of menu_1024_768.ini.
Examples:

[G31 I26]
Name=Target; Convoys Map in NavMap
Type=1031;Stat bmp array
ItemID=0x31000006
ParentID=0x31000000
Pos=-983,1781,1026,1026
Color=0xFFFFFFFF
Materials=1
Display=0;No stretch
Mat 0=data/Menu/Gui/Layout/ConvoysMap.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G31 I27]
Name=Target; Mines and AntiSubnets Maps in NavMap
Type=1031;Stat bmp array
ItemID=0x31000006
ParentID=0x31000000
Pos=-955,1778,1024,1024
Color=0xFFFFFFFF
Materials=1
Display=0;No stretch
Mat 0=data/Menu/Gui/Layout/MinefieldsMaps.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G31 I28]
Name=Target; Compass in NavMap
Type=1031;Stat bmp array
ItemID=0x31000006
ParentID=0x31000000
Pos=945,945,256,256
Color=0xFFFFFFFF
Materials=1
Display=2;Linear
Mat 0=data/Menu/Gui/Layout/CompassL.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G31 I29]
Name=Target; Nomograph
Type=1031;Stat bmp array
ItemID=0x31000006
ParentID=0x31000000
Pos=-925,915,1024,159
Color=0xFFFFFF80
Materials=1
Display=2;Linear
Mat 0=data/Menu/Gui/Layout/nomo.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G32 I32]
Name=Target; Compass in AttackMap
Type=1031;Stat bmp array
ItemID=0x32030007
ParentID=0x32030000
Pos=-100,610,256,256
Color=0xFFFFFFFF
Materials=1
Display=2;Linear
Mat 0=data/Menu/Gui/Layout/CompassL.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G28 I115]
Name=Target; Flags in UZO
Type=1031;Stat bmp array
ItemID=0x28110003
ParentID=0x28110000
Pos=-1725,1210,1024,768
Color=0xFFFFFFFF
Materials=1
Display=2;Linear
Mat 0=data/Menu/Gui/Layout/Flags.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G26 I140]
Name=Target; Flags in Periscope
Type=1031;Stat bmp array
ItemID=0x26110003
ParentID=0x26110000
Pos=-1725,1210,1024,768
Color=0xFFFFFFFF
Materials=1
Display=2;Linear
Mat 0=data/Menu/Gui/Layout/Flags.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G2B I140]
Name=Target; Flags in ObsPeriscope
Type=1031;Stat bmp array
ItemID=0x2B110003
ParentID=0x2B110000
Pos=-1725,1210,1024,768
Color=0xFFFFFFFF
Materials=1
Display=2;Linear
Mat 0=data/Menu/Gui/Layout/Flags.tga
Crop 0=0,0,1,1
MatFlags=0x9
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

dean_acheson
01-07-07, 11:49 AM
any screenshots of what this looks like?

Mav87th
01-07-07, 05:23 PM
Yea here is a shot.

http://static.filefront.com/images/personal/m/Mav87th/72419/ckstadgjor.jpg


Anvart thanks for the tip - but sadly i have tried all those tricks, I just can not get it to go in front of all the other graphics in the periscope.

To show up in peri view it HAS to be [G26 xxx]
To keep size XxY it HAS to be Display=2;Linear
The ParentID HAS to be within the 0x26xxxxxxx catagory or errors are certain afaik and have tried.
Pos places it and sizes the image

Anvart
01-08-07, 08:41 AM
Yea here is a shot.

http://static.filefront.com/images/personal/m/Mav87th/72419/ckstadgjor.jpg


Anvart thanks for the tip - but sadly i have tried all those tricks, I just can not get it to go in front of all the other graphics in the periscope.

To show up in peri view it HAS to be [G26 xxx]
To keep size XxY it HAS to be Display=2;Linear
The ParentID HAS to be within the 0x26xxxxxxx catagory or errors are certain afaik and have tried.
Pos places it and sizes the image
Look above.
Look RED it's important.
I have no prob's.

Mav87th
01-08-07, 05:38 PM
"I have no problems"

Anvart is that with the excisting mod's ?? Cus' i dont have problems with the flags or sperrnet or convoy maps and all those, and im not looking to replace them.

Im trying to implement a NEW additional sheet in the attack periscope view. A sheet that should be possible to drag around. I know about the ParentID and IdentID, but what i don't know is in what order they need to be in the specific catagory. Fx. all images layered for the attack periscope is in the [G26.... with parentID as 0x26xxxxxxxx - if the image does not have those it will not show in the attack peri. If it is labled [G28..... and have ParentID 0x28........... then it will show up in the UZO

geralt
01-08-07, 07:20 PM
Anvart is trying to say this (I hope)...

e.g. the G26 attack scope group

the most important thing is the 0x2611xxxx itemID number so the flaggen.tga becomes part of the 'aft tubes' label menu group
originaly in my menu*.ini for flaggen.tga was itemID=0x2603xxxx so everything with higher itemID=0x2604.. etc was displayed above the 2603 group
when I applied Anvart's method... 'wow'... flag sheet is above everything except for the aft tubes label and the redmask during night
again from my menu.ini:
- aft tubes static text is G26 I22, itemID=0x26110001
- aft tubes bkgr is G26 I23, itemID=0x26110002
- flaggen.tga G26 I183, itemID=0x26110003
this is the reason the flag sheet is under the aft tubes label, to move it up you need to put the flaggen.tga in front of the aft tubes
so it should look like this:
- flaggen.tga G26 I22, itemID=0x2611xxxx
- aft tubes static text is G26 I23
- aft tubes bkgr is G26 I24
BUT then you have to renumber the whole g26 section...
it's too late have to sleep a bit, hope this will help

Mav87th
01-08-07, 07:44 PM
Geralt thanks a million - got it nailed so its showed in front of all BUT the labels as you describe. That will be the next step - relabeling those in G26 section should not take to many....days...

Anvart
01-08-07, 10:24 PM
Anvart is trying to say this (I hope)...

e.g. the G26 attack scope group

the most important thing is the 0x2611xxxx itemID number so the flaggen.tga becomes part of the 'aft tubes' label menu group
originaly in my menu*.ini for flaggen.tga was itemID=0x2603xxxx so everything with higher itemID=0x2604.. etc was displayed above the 2603 group
when I applied Anvart's method... 'wow'... flag sheet is above everything except for the aft tubes label and the redmask during night
again from my menu.ini:
- aft tubes static text is G26 I22, itemID=0x26110001
- aft tubes bkgr is G26 I23, itemID=0x26110002
- flaggen.tga G26 I183, itemID=0x26110003
this is the reason the flag sheet is under the aft tubes label, to move it up you need to put the flaggen.tga in front of the aft tubes
so it should look like this:
- flaggen.tga G26 I22, itemID=0x2611xxxx
- aft tubes static text is G26 I23
- aft tubes bkgr is G26 I24
BUT then you have to renumber the whole g26 section...
it's too late have to sleep a bit, hope this will help
Good tip.:up: