View Full Version : Number of visible torpedo tubes
Subsim modder 32
12-13-09, 10:49 AM
For the mod of my german Type 205 sub I need eigth bow torpedo tubes. I have added them to my .dat and .upcge files and I can see all eight tubes at the torpedo station.
Is it possible, to make all eight torpedo tobes visible the at the periscope TDC?
http://img229.imageshack.us/img229/5332/type205040.jpg
By zgrad (http://profile.imageshack.us/user/zgrad) at 2009-12-13
peabody
12-13-09, 04:27 PM
For the mod of my german Type 205 sub I need eigth bow torpedo tubes. I have added them to my .dat and .upcge files and I can see all eight tubes at the torpedo station.
Is it possible, to make all eight torpedo tobes visible the at the periscope TDC?
By zgrad (http://profile.imageshack.us/user/zgrad) at 2009-12-13
Yes, but one problem is there are no VII and VIII lights, so temporarily I reused the I and II lights for now until I get a chance to make a new .dds/.tga file. The second problem is the Attack Screen, there is not enough room for the extra lights so things will have to be moved and again new lights made.
The lights on the Periscope panel come from the Menu1024_768.ini section [G26 I27] and down from there. You need to create four more sections for the other two lights. As I said because of lack of time and for testing I only copied the lights I and II and placed them where the lights VII and VIII would go.
The G28 section would be for the UZO and the G2B for the Observaton scope and G3B for the TDC.
This will get you started:
;Following four items added by Peabody
[G26 I150]
Name=Tube VII sel
Type=1031;Stat bmp array
ItemID=0x26010017
ParentID=0x26010000
Pos=92,-75,43,43
;Zone= 830 379 43 43 1 1 0x26010000 0 -0.023622 0x26010017 0 0 0 0
Zone= 922 307 43 43 1 1 0x26010000 0.47244 -0.590551 0x26010017 0 0 0 0
Materials=3
Display=2;Linear
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.426758,0.768555,0.0419922,0.0419922
Mat 1=data/menu/gui/Periscope.tga
Crop 1=0.426758,0.811523,0.0419922,0.0419922
Mat 2=data/menu/gui/Periscope.tga
Crop 2=0.426758,0.854492,0.0419922,0.0419922
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=0
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
[G26 I151]
Name=Tube VII
Type=1031;Stat bmp array
ItemID=0x26010007
ParentID=0x26010000
Pos=92,-75,43,43
;Zone= 830 379 43 43 1 1 0x26010000 0 -0.023622 0x26010001 0 0 0 0
Zone= 922 307 43 43 1 1 0x26010000 0.47244 -0.590551 0x26010007 0 0 0 0
Materials=3
Display=2;Linear
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.167969,0.768555,0.0419922,0.0419922
Mat 1=data/menu/gui/Periscope.tga
Crop 1=0.167969,0.811523,0.0419922,0.0419922
Mat 2=data/menu/gui/Periscope.tga
Crop 2=0.167969,0.854492,0.0419922,0.0419922
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
[G26 I152]
Name=Tube VIII sel
Type=1031;Stat bmp array
ItemID=0x26010018
ParentID=0x26010000
Pos=138,-75,43,43
;Zone= 830 379 43 43 1 1 0x26010000 0 -0.023622 0x26010011 0 0 0 0
Zone= 968 307 43 43 1 1 0x26010000 0.70866 -0.590551 0x26010018 0 0 0 0
Materials=3
Display=2;Linear
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.426758,0.768555,0.0419922,0.0419922
Mat 1=data/menu/gui/Periscope.tga
Crop 1=0.426758,0.811523,0.0419922,0.0419922
Mat 2=data/menu/gui/Periscope.tga
Crop 2=0.426758,0.854492,0.0419922,0.0419922
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=0
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
[G26 I153]
Name=Tube VIII
Type=1031;Stat bmp array
ItemID=0x26010008
ParentID=0x26010000
Pos=138,-75,43,43
;Zone= 830 379 43 43 1 1 0x26010000 0 -0.023622 0x26010001 0 0 0 0
Zone= 968 307 43 43 1 1 0x26010000 0.70866 -0.590551 0x26010008 0 0 0 0
Materials=3
Display=2;Linear
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.211914,0.768555,0.0419922,0.0419922
Mat 1=data/menu/gui/Periscope.tga
Crop 1=0.211914,0.811523,0.0419922,0.0419922
Mat 2=data/menu/gui/Periscope.tga
Crop 2=0.211914,0.854492,0.0419922,0.0419922
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
It is only a beginning but it works.
Peabody
Nisgeis
12-13-09, 04:51 PM
Gord bless ya Mr. Peabody.
peabody
12-13-09, 05:20 PM
Gord bless ya Mr. Peabody.
Hello Mr Nisgeis, Long time no see. Hope things are going well.
Peabody
Subsim modder 32
12-13-09, 06:34 PM
hi peabody,
I have created two new lights in the file ...\Data\Menu\Gui\Periscope.dds. They do not look exactly identical to the others, because there was no place for the last letters. For a perfect result, the other lights has also to be changed.
Thank you for the code.
http://img163.imageshack.us/img163/7710/type205041.jpg
By zgrad (http://profile.imageshack.us/user/zgrad)
keltos01
12-14-09, 12:32 PM
so now even the germans have 8 tubes !
great work by Peabody :yeah:
keltos
Subsim modder 32
12-14-09, 01:26 PM
I'm almost finished. I have changed the TDC, so that all 8 torpedo lights are now visible in the right upper corner. I have also added two rows to the torpedo list on the left side, but the game won't update the lines with the loaded torpedo types. Any idea, where to change this?
http://img37.imageshack.us/img37/3621/type205042.jpg
This code shows the lines I have added to the menu_1024_768.ini file to get two more text lines on the left side.
;bow tubes 0x32020000
[G32 I32]
Name=Torp VIII
Type=1029;Static text
ItemID=0x32020019
ParentID=0x32020000
;Pos=28,-90,220,18
Pos=28,-150,220,18
Zone= 65 594 220 18 0 1 0x32020000 0.112 -1.102942 0x32020019 0 0 0 0
Color=0x323232C8
Font=1
Text=2707
TextFlags=0x14
[G32 I33]
Name=VIII
Type=1029;Static text
ItemID=0x32020009
ParentID=0x32020000
;Pos=5,-90,20,18
Pos=5,-150,20,18
Zone= 42 594 20 18 0 1 0x32020000 0.02 -1.102942 0x32020009 0 0 0 0
Color=0xFE
Font=1
Text=1198
TextFlags=0x16
[G32 I34]
Name=Torp VII
Type=1029;Static text
ItemID=0x32020018
ParentID=0x32020000
;Pos=28,-110,220,18
Pos=28,-130,220,18
Zone= 65 614 220 18 0 1 0x32020000 0.112 -0.955883 0x32020018 0 0 0 0
Color=0x323232C8
Font=1
Text=2707
TextFlags=0x14
[G32 I35]
Name=VII
Type=1029;Static text
ItemID=0x32020008
ParentID=0x32020000
;Pos=5,-110,20,18
Pos=5,-130,20,18
Zone= 42 614 20 18 0 1 0x32020000 0.02 -0.955883 0x32020008 0 0 0 0
Color=0xFE
Font=1
Text=1197
TextFlags=0x16
@peabody
When I'm finished, I will upload all the files here
peabody
12-15-09, 03:39 AM
Good job Zoltan!!
I will look at it but right now it is still listing those lines as aft tubes on the IJN subs. There may be a hardcoded limit but I will see what I can find.
These are images from the IJN Submarines:
*****************************************
This is what it looks like with 4 Forward tubes and 2 Aft Tubes
The aft tubes are listed but not where they belong and it still shows VII and VIII which are not being used.
http://img691.imageshack.us/img691/756/tubes4and2.jpg
**********************************************
This is the image with all three of these subs:
1. 8 Forward Tubes
2. 6 Forward tubes and 2 Aft Tubes
3. 6 Forward Tubes and NO Aft tubes
http://img691.imageshack.us/img691/273/tubes6and2.jpg
*************************************************
I will see if I can find out what is going on. If you have more than 4 forward tubes, the aft tubes don't get listed. And only 6 forward tubes get listed no matter what the setup is.
But it is looking real good, doing a great job.
Peabody
peabody
12-19-09, 02:08 PM
Zoltan,
Some additional info for you. On the Attack Map screen the lights have Fat/Lut buttons above them, if the correct torpedo is loaded. Clicking the button brings up a separate set of dials for the straight run, second gyro, and settings for the 'ladder'.
The Fat/Lut Menu Group section is [G3B I149] and there are only six of them, I did not make any additions to this because the Japanese torpedoes are not Fat or Lut, so we don't need them. In fact in the newest version we are working on I deleted them.
http://img683.imageshack.us/img683/3815/fatlutpanel.jpg
So in your case, if possible, the extra buttons will need to be added.
Also thank you for sending the graphics for light VII and VIII, it will save me some time since I won't have to remake them.
Peabody
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.