View Single Post
Old 11-01-08, 10:21 PM   #1
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,325
Downloads: 182
Uploads: 7


Default [rel] Sliderule For The Olc Gui !

hello to everybody (forgive my english because is not my language)

first of all i have to say that my knowledge at editing programmes is very poor and i made this mod for my pleasure (and because i liked this tool very much and it was missing from olc gui).i would like to share it with all of you because this community has given me so much gifts(and keep giving...)so ,let say ,that this is my little gift for the community.

this is a DIY mod so be very carefull at the steps .first of all you have to download the U-jagd1.3.1_GWX and U-jagd_alt_sliderule2 (look for it at joegrundman 's page).now we have three steps to go....

1.create a folder at data/menu/ and name it U-jagd.inside this folder put all the tga from U-jagd1.3.1_GWX AND all from U-jagd_alt_sliderule2 (inside them there are folders with the same name,find them copy and paste all the tga in our folder)

for the next two steps we will edit the dials.cfg (data/menu/cfg/) and menu.ini (data/menu/) so make a back-up for theese two files first before proceed(in case that something going wrong)

2.open dials.cfg and at the end of the file copy and paste this:

[Dialxx]
Name=zeitrad
Type=42; DIAL_TGT_ANG_ON_BOW
Cmd=Set_tgt_sel_value
Dial=0x3F070012;3B200002
CrtVal=0x3F070011;3B200001
NewVal=0x0
DialVal=-180,180
RealVal=-180,180; degrees
Circular=Yes
CmdOnDrag=Yes
RelativeDrag=Yes


[Dialxx]
Name=circularsliderule
Type=16; DIAL_TORP_DEPTH
Cmd=Set_torpedo_depth
Dial=0x0x3F070015
CrtVal=0x0x3F070014
NewVal=0x0
DialVal=0,360
RealVal=5,5.2; meters
Circular=Yes
CmdOnDrag=Yes
RelativeDrag=Yes

You have to number each dial so that it continues onwards from the current last entry and
Then go to the top of the dials.cfg page and look for this line
DialsNo=xx
Replace this so that the number is 1 more than the last numbered dial that you added (because there is a dial0).

3.open menu.ini and search for the G3F I--- pages.find the last entry of theese pages ,leave a line and then copy and paste this:

[G3F Ixxx]
Name=sliderule
Type=1026;Menu group
ItemID=0x3F070010
ParentID=0x3F060000
Pos=-420,650,600,600
Color=0xFFFFFFFF
HorizSlide=600

[G3F Ixxx]
Name=sliderule centreknob
Type=1031;Stat bmp array
ItemID=0x3F070015
ParentID=0x3F070010
Pos=279,-276,46,46
Materials=1
Display=0
Mat 0=data/menu/U-jagd/kmcentreknob.tga
MatFlags=0x29
TexFmt=0x9
BmpState=0
NeedFocus=true
SelOne=false
IDGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F Ixxx]
Name=sliderule zeitrad
Type=1031;Stat bmp array
ItemID=0x3F070011;3B200001
ParentID=0x3F070010;3B200000
;Pos=144,-1,316,596
Pos=136,11,327,617
Materials=1
Display=5;Linear&Rotation
;Mat 0=data/menu/U-jagd/sliderulezeitrad.tga
Mat 0=data/menu/U-jagd/sliderulezeitradHitman.tga
Crop 0=0,0,1,1
MatFlags=0x29
TexFmt=0x9
BmpState=1
NeedFocus=true
SelOne=false
IDGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF


[G3F Ixxx]
Name=sliderule zeitrad user
Type=1031;Stat bmp array
ItemID=0x3F070012;3B200002
ParentID=0x3F070010;3B200000
Pos=144,-142,316,316
Materials=1
Display=2
Mat 0=data/menu/U-jagd/bkgr.tga
Crop 0=0,0,1,1
MatFlags=0x1
TexFmt=0x0
BmpState=1
NeedFocus=true
SelOne=false
IDGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F Ixxx]
Name=circularsliderule
Type=1031;Stat bmp array
ItemID=0x3F070014;3B200004
ParentID=0x3F070010;3B200000
Pos=0,0,600,600
Materials=1
Display=5;Linear&Rotation
;Mat 0=data/menu/U-jagd/circularsliderule.tga
Mat 0=data/menu/U-jagd/HItmanslideruleouter.tga
Crop 0=0,0,1,1
MatFlags=0x29;21
TexFmt=0x9
BmpState=1
NeedFocus=true
SelOne=false
IDGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F Ixxx]
Name=circularsliderule user
Type=1031;Stat bmp array
ItemID=0x3F070015
ParentID=0x3F070010
Pos=0,0,600,600
Materials=1
Display=2
Mat 0=data/menu/U-jagd/bkgr.tga
Crop 0=0,0,1,1
MatFlags=0x1
TexFmt=0x0
BmpState=1
NeedFocus=true
SelOne=false
IDGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F Ixxx]
Name=sliderule Peilung wheel
Type=1031;Stat bmp array
ItemID=0x3F070016;3B200003
ParentID=0x3F070010;3B200000
;Pos=73,-73,454,454
Pos=57,-57,486,486
Materials=1
Display=0; no stretch
;Mat 0=data/menu/U-jagd/sliderulepeilungwheel.tga
Mat 0=data/menu/U-jagd/Hitmanmidring.tga
Crop 0=0,0,1,1
MatFlags=0x29
TexFmt=0x9
BmpState=1
NeedFocus=true
SelOne=false
IDGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

don't forget to number each G3F Ixxx so that it continues onwards from the current last entry.

edit: this is the correct sequence for the menu.ini (thanks to mikhayl for pointing this,now the problem with the outer ring is ...gone)

that's all my friends we are ready to use the new tool !

some screens:

in this image you will see that the new tool is atached to NaO officer,clic the officer and at the right of the screen you will now see the edge of the wheel (look the pointer),simply move your cursor there and it will pop-up !





for some reason that i can't figure out the outer ring of the wheel is fuctional only on the places that are marked in the next picture (if anyone can solve this problem it will be great....)edit:problem is solved



ps1 : for the unlimited uses of this tool you will find a very good manual inside the joegrundman's U-jagd1.3.1_GWX mod

ps2: i must say a big thank to joegrundman (not only for his amazing mod) because without him i will never suceed to make this mod.his directions make me understand(a little bit) the logic of the menu-ini .thank you joegrundman

ps3: also i thank deeply hitman (his alternative plates for the wheel are simply fantastic) .thank you hitman (everytime i needed you ...you was there)

ps4: and of course i must thank olc for his amazing gui!thank you olc

ps5:i have to say for one last time that i am not a modder so this mod is only setted with your responsibility..

enjoy it

Last edited by makman94; 11-10-08 at 05:07 AM.
makman94 is offline   Reply With Quote