SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 12-13-09, 10:49 AM   #1
Subsim modder 32
Watch
 
Join Date: Nov 2009
Posts: 27
Downloads: 19
Uploads: 1
Number of visible torpedo tubes

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 at 2009-12-13
Subsim modder 32 is offline   Reply With Quote
Old 12-13-09, 04:27 PM   #2
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by zoltan View Post
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 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
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 12-13-09, 04:51 PM   #3
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

Gord bless ya Mr. Peabody.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 12-13-09, 05:20 PM   #4
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by Nisgeis View Post
Gord bless ya Mr. Peabody.
Hello Mr Nisgeis, Long time no see. Hope things are going well.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 12-13-09, 06:34 PM   #5
Subsim modder 32
Watch
 
Join Date: Nov 2009
Posts: 27
Downloads: 19
Uploads: 1
Default

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.


By zgrad
Subsim modder 32 is offline   Reply With Quote
Old 12-14-09, 12:32 PM   #6
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

so now even the germans have 8 tubes !

great work by Peabody

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 12-14-09, 01:26 PM   #7
Subsim modder 32
Watch
 
Join Date: Nov 2009
Posts: 27
Downloads: 19
Uploads: 1
Default

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?







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.
Code:
;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
Subsim modder 32 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:48 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.