SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Mod Request For GWX Periscope/UZO (https://www.subsim.com/radioroom/showthread.php?t=104191)

geralt 01-24-07 12:40 PM

@ Venatore
Ok... no need to be pissed off
now 3 possible solutions:
1] copy the perihintergrund.tga and perihintergrund2.tga to data\menu\gui\layout you can get it here as a part of mod
http://www.ducimus.net/sh3/release/T...TDC_For_GWX.7z
I suggest to do it through JSGME
you need only the 2 tga's
I assume this shlould solve your problem

OR
2] I can make the default peri/uzo textures to looks like this:
http://img262.imageshack.us/img262/9...eare3nt.th.jpg

OR
3] get rid of the low-right dials and use slideout tdc panel
http://img178.imageshack.us/img178/4...lide2lo.th.jpg


---------------------------------------------
it's a pity you constantly refuse (no offence) looking in the menu1024.ini even posting here it's content... maybe you don't have enough time to mess with it

but come on...
the structure of this file could look a bit confusing but in fact it's pretty simple

small example from menu1024.ini:

[G26 I23]; g26 means 'group attack scope' this is specified in the beginning of the file, I23 is item number
Name=Aft tubes text; name of the block for good orientation
Type=1029;Static text; type static text means not clickable text
ItemID=0x26110002; don't care for this time
;ItemID=0x26110003
ParentID=0x26110000; don't care for this time
Pos=3,-7,85,36; position in pixels on the screen 3 on axis x, -7 on y, 85,36 is the size of this static text array again in pixels
Color=0xB4B4B4FE; simply color in hex (RRGGBB) of the displayed text B4B4B4 is ligt grey
Font=5; type of used font... fonts are specified in the beginning of the file e.g. Font5=DATA/Menu/Fonts/FPHunt15.tga
Text=2012; the displayed text is in en_menu.txt where 2012=AFT tUBES
TextFlags=0x15

[G26 I24]
Name=Bkgr
Type=1030;Static bmp; display some bmp
ItemID=0x26110001
;ItemID=0x26110002
ParentID=0x26110000
Pos=3,-7,85,37
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Periscope.tga; goto periscope.tga
Crop 0=0.773438,0.808594,0.0566406,0.0273438; crop this area
MatFlags=0x21
TexFmt=0x9

as a result of the 2 blocks above you can see this in the game:
http://img262.imageshack.us/img262/1...00719142dl.jpg

Uber Gruber 01-26-07 10:48 AM

To be honest, I'm also confused here. That said, your last post explaining a little of how menu works does shed some light. Perhapps you can write a quick summary titled "how to modify the TGA files for UZO/Periscope"....i ask because I have the slide out TDC mod for NYGM but I find the scope and uzo too bright during nigt time. I also would like the open/close torpedo doors switch in bottom right hand corner of your pics.

Any knowledge you can share would be greatly appreciated.

Thanks, Hans.

geralt 01-26-07 12:49 PM

Quote:

Originally Posted by Uber Gruber
To be honest, I'm also confused here. That said, your last post explaining a little of how menu works does shed some light. Perhapps you can write a quick summary titled "how to modify the TGA files for UZO/Periscope"....i ask because I have the slide out TDC mod for NYGM but I find the scope and uzo too bright during nigt time. I also would like the open/close torpedo doors switch in bottom right hand corner of your pics.

Any knowledge you can share would be greatly appreciated.

Thanks, Hans.

first your questions then menu1024.ini the post became tooooo long

so you want darker scope/UZO view
- this is simple... just open the periscope/uzo.tga in some editor and adjust the brihgtness/lightness to mach your needs, save the tga and that's all
- as for the torpedo doors switch sorry I don't have any... I use only the slideout mod as you can see on the screen in the above post
--------------------------------------------------------------------

now move to the menu1024.ini

well, actually I thought it's well known how menu1024.ini works
if you're really interested I can write a few words what I've learned when I was adjusting the GUI to satisfy my personal and specific needs (I've got dark CRT so no shiny/bright colors are allowed) but don't expect too much from me my knowledge is still limited in some areas...

please keep in mind english is not my first language and forgive me the mistakes...

Basically the menu_1024_768.ini (menu1024 in further text) is resposible for all non 3D rendered graphics (all F* screens menu screens etc.).
All examples are from my tweaked menu1024 your values could differ.

it's difficult where to start so try it from the beginning:
(All examples are from my tweaked menu1024 your values could differ)
Quote:

[Fonts]
Fonts=19
Font0=DATA/Menu/Fonts/FPHunt26.tga
Font1=DATA/Menu/Fonts/FPCond14.tga
Font3=DATA/Menu/Fonts/FPHunt38.tga
Font4=DATA/Menu/Fonts/FPHunt12.tga
Font5=DATA/Menu/Fonts/FPHunt15.tga
Font6=DATA/Menu/Fonts/FPSmall.tga
.
.
.
etc.
here are specified the fonts used in game
in some block is written e.g. 'font=4' - it means the game will use the font stored FPHunt12.tga file
You can view all font tga's in many various editors the only condition is the are capable to show the alpha channel

small example of some game fonts:
http://img440.imageshack.us/img440/5...ontsos3.th.jpg

next part
Quote:

[Settings]
SlidingSpeed=3300;pixels per second
CmdStatesColors=0x00FF00FF, 0xFF0000FF, 0x0000FFFF, 0x1155AAFF
sliding speed determines how fast are the slideout gauges/console moving
I'm not sure what the cmdstatecolors means in this palce

but something about colors...
as is said above the color is specified as a combination of hex values 0xRRGGBBFF, the last two letters FF means the opacity/lightness, FF is 100% opacity/max visibility when 00 is invisible
so
color=0xFF0000FF is red
color=0x00FF00FF is green
color=0x0000FFFF is blue
color=0xFFFFFFFF is white
color=0x000000FF is black
color=0x222222FF is dark grey
color=0xBBBBBBFF is light grey
etc.

move on
Quote:

[Main groups and pages]
GroupsNo=87
1=0A;Equipment Icon
2=0F;Typ21
3=0E;Typ9
4=0D;Typ7
5=16;Typ2
6=10;Page message
7=3D;Page Ingame Options
8=1A;Page SaveInGame
9=11;Tool tip
10=54;Page Net Final
11=55;Page Net Spectator
12=20;Page final
13=21;Page Console
14=22;Page help
15=02;Page effects
16=53;Page Net Chat
17=23;Page event camera
18=30;Pause game
19=01;Page shell
20=40;Page torpedo
21=3F;Page layout
22=24;Page gui event camera
23=25;Page recognition manual
24=28;Page UZO
25=2B;Page obs periscope
26=26;Page attack periscope
.
.
.
here are specified the groups
all blocks which begin with G26 Ixxx are related to the attack scoep screen... G28 to UZO... G3F is the layout (you see it all the time - officers, console, dials...)

one note: the semicolon neutralizes all contant behind it, it's suitbale for writing personal changes tsc.
so the game sees: 24=28 not the 24=28; page uzo

ok now the most interesting
e.g. the G26 menugroup attack scope
Quote:

[G26 I1]
Name=Page attack periscope
Type=1027;Menu page
ItemID=0x26000000
ParentID=0x0
Pos=0,0,0,0
LoadingMode=2
the first block nothing important here

Quote:

[G26 I11]
Name=RedLight
Type=1026;Menu group
ItemID=0x26120000
ParentID=0x26000000
Pos=-2,767,1024,768
Color=0xFFFFFFFF
beginning of the redmask section used during nightime
- I 11 block is Menu group, it means all following blocks belong to this group until other group starts (you'll see)
- it's positioned -2 pixels on axis x and 767pixels on axis y where the 0,0 point is the low left cornet of the screen
- its size is 1024 pixels on x and 768 on y
Quote:

[G26 I12]
Name=BottomRight
Type=1030;Static bmp
ItemID=0x26120005
ParentID=0x26120000
Pos=365,-342,295,295
;Color=0x96000050 original color
Color=0x55000055
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/redmask.tga
Crop 0=1,1,-1,-1
MatFlags=0x9
TexFmt=0x29
beginning of the redmask section
- I 12 block in static bmp, means its some kind of "picture"
- it's positioned.... and it's sized.... but now the origin 0,0 is the low left corner of the redlight menugroup
- semicolon cancels the original 960000 color which I found to bright
- color 55000055 is dark red , and the last 55 means opacity (not 55% remeber it's in hex)
Mat 0=data/menu/gui/redmask.tga says the game to go to the redmask.tga and
Crop 0=1,1,-1,-1 crop some part of it and then display it

blocks I12-I19 are still about the redmask
Quote:

[G26 I20]
Name=Torpedoes
Type=1026;Menu group
ItemID=0x26080000
ParentID=0x26000000
Pos=742,402,282,262
Color=0xFFFFFFFF
new menu group torpedoes

Quote:

[G26 I21]
Name=Aft tubes label
Type=1026;Menu group
ItemID=0x26110000
ParentID=0x26080000
Pos=4,-88,90,50
Color=0xFFFFFFFF
new menu group aft tubes label

Quote:

;;;;;;;;;;;;;;;;;;;;Flaggen;;;;;;;;;;;;;;;;;;;;;;; ;;;;

[G26 I22]
Name=Target;Neuer Eintrag f Flaggen
Type=1031;Stat bmp array
;ItemID=0x26030001
;ParentID=0x26030000
ItemID=0x26110003
ParentID=0x26110000
;Pos=-1700,765,1024,768
Pos=-1725,1210,1024,768
Color=0xFFFFFFFF
Materials=1
Display=2;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

;;;;;;;;;;;;;;;;;;;;Flaggen;;;;;;;;;;;;;;;;;;;;;;; ;;;;
please don't be confused
this is block for the dragable flag sheet placed in the high left corner... the reason it's here is to be above all the buttons and labels, this is determined by the Ixxx number
only blocks with lower Ixxx can appear above so in fact it's only the redmask
now back to the aft tubes label

Quote:

[G26 I23]
Name=Aft tubes text
Type=1029;Static text
ItemID=0x26110002
;ItemID=0x26110003
ParentID=0x26110000
Pos=3,-7,85,36
Color=0xB4B4B4FE
Font=5
Text=2012
TextFlags=0x15
this is explained in mt previous post above
position is realted to the aft tubes menugroup
Color=0xB4B4B4FE is light grey cos the pure white is too bright
font=5 means the FPHunt15.tga file will be used
Text=2012 look to your en/de_menu.txt you should find 2012=AFT TUBES in english or BUG ROHRE in german

Quote:

[G26 I24]
Name=Bkgr
Type=1030;Static bmp
ItemID=0x26110001
;ItemID=0x26110002
ParentID=0x26110000
Pos=3,-7,85,37
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.773438,0.808594,0.0566406,0.0273438
MatFlags=0x21
TexFmt=0x9
this is the backgroud table behind the aft tubes text
ot says go the the periscope.tga file crop specified part and dispaly it

Quote:

[G26 I25]
Name=Fore tubes label
Type=1026;Menu group
ItemID=0x26100000
ParentID=0x26080000
Pos=4,-16,90,50
Color=0xFFFFFFFF

[G26 I26]
Name=Fore tubes text
Type=1029;Static text
ItemID=0x26100002
ParentID=0x26100000
Pos=3,-6,85,36
Color=0xB4B4B4FE
Font=5
Text=2011
TextFlags=0x15

[G26 I27]
Name=Bkgr
Type=1030;Static bmp
ItemID=0x26100001
ParentID=0x26100000
Pos=3,-6,85,37
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.773438,0.808594,0.0566406,0.0273438
MatFlags=0x21
TexFmt=0x9
exactly the same situation is for the fore tubes text... menu group, text and background

please note the colored numbers behind itemID and parentID
I think it's better to understand it when you look at it than me trying to explain it with my limited english


OK I hope this helps for now
I'll add some pictures and more explanation later


All times are GMT -5. The time now is 04:11 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.