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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-16-10, 09:59 AM   #1
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

Edited

Q: What file or type of files should I look for, when finding out how the graphics for the torpedo tubes are positioned, on the system torpedo menu?

Linky, png image showing the menu editor

I want to either change the width of a piece of the graphics by scaling, or simply draw new graphics in a free area on the current texture file, and correct the positioning in the code.

Here is a problem I have, when trying to replace old torpedo graphics, with new ones that are some pixels wider:
The dark overlay graphics seen when reloading a torpedo tube, is located in a different .dds file than the one the torpedoes are in.
The dark overlay graphics, seem to be currently limited to a certain amount of pixels in width. This overlay is currently scaled up, but still does not cover the width of my new torpedo. And I don't know how to either scale it wider, or to simply draw a new but wider overlay in the texture file at some different posision in the .dds file.

As I have modeled two different shapes for the new torpedoes, one for the gas turbine and the other being the electric one, the dark overlay will only fit one type of torpedo shpae, the way things work currently. But this will have to do. I am only interested in the width issue, the shape of the mask is not really a problem.


Last edited by Decoman; 03-16-10 at 11:47 AM.
Decoman is offline   Reply With Quote
Old 03-16-10, 05:08 PM   #2
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by Decoman View Post
Edited

Q: What file or type of files should I look for, when finding out how the graphics for the torpedo tubes are positioned, on the system torpedo menu?

Linky, png image showing the menu editor

I want to either change the width of a piece of the graphics by scaling, or simply draw new graphics in a free area on the current texture file, and correct the positioning in the code.

Here is a problem I have, when trying to replace old torpedo graphics, with new ones that are some pixels wider:
The dark overlay graphics seen when reloading a torpedo tube, is located in a different .dds file than the one the torpedoes are in.
The dark overlay graphics, seem to be currently limited to a certain amount of pixels in width. This overlay is currently scaled up, but still does not cover the width of my new torpedo. And I don't know how to either scale it wider, or to simply draw a new but wider overlay in the texture file at some different posision in the .dds file.

As I have modeled two different shapes for the new torpedoes, one for the gas turbine and the other being the electric one, the dark overlay will only fit one type of torpedo shpae, the way things work currently. But this will have to do. I am only interested in the width issue, the shape of the mask is not really a problem.

I'm not sure if I've got what you are trying to do. But if its a case that your trying to enlarge the Black box that shows up when the torp is reloading.
Have you found the graphic for that image? If so not only would you have to make the black box larger to suit your new torp in a graphics editor but you would also have to remove that part of the alpha channel for it to show through.
And if your trying to make it smaller you do the opposite and add to the alpha channel.
Usually painting with white adds to the alpha channel and black removes.
reaper7 is offline   Reply With Quote
Old 03-16-10, 05:26 PM   #3
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

Quote:
Originally Posted by reaper7 View Post
Have you found the graphic for that image?
This image show the result of two modded files. Torpedoes.dds & TorpedoPage.dds (contain the dark reload overlay and such).

This image show the ingame result. The new torpedo gfx look ok. Let's say for example that it allows for a width of 200px (there is a limit), but the reload gfx in the other file only allows for 180px width. The two files for the gfx doesn't allow other modding than using the rather short default torpedo length gfx, when used together. They have to match together, else it the reload animation will look wrong because the dark overlay doesnt match the full torpedo length. Btw, the problem here, is not me not knowing how to create an alpha channel btw, just to clear up a potential misunderstanding.


Last edited by Decoman; 03-16-10 at 05:37 PM.
Decoman is offline   Reply With Quote
Old 03-16-10, 05:37 PM   #4
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Ah sorry misread what you were trying to do. Will have a look at those files and see if I can spot anything. What dir are they located in?

Ok found them, see what your getting at. In order to this your going to have to create a new Torpedopage.dds in the size you require then the Interesting bit is in the editor for the torpedo page you will have to resize the sta BMP or stat BMP array and link it to the cordinates of your new replacement Torpedopage.dds file.
I'm just starting to mess around with the editior so I can't ealy explain how it works, TheDarkWraite is the expert on that here. What he's done with the replacment UI is basically similar to what you need to do.


Last edited by reaper7; 03-16-10 at 07:18 PM.
reaper7 is offline   Reply With Quote
Old 03-16-10, 06:21 PM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

On the subject of doing new Units.
I don't need to export the old Units.
That's a waste of my time.

I can create New Units in GR2 format and implant them with Hex Editing.
Done that already.

It's the other Nodes I'm after now.
Like bomb placement nodes and such.

Any info?
  Reply With Quote
Old 03-16-10, 09:40 PM   #6
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

What programs and setting are ye guys using to create a .dds file from scratch.
I have been messing about in Photoshop and Gimp and creating a 512x512 RGB/8 bit image, on this I place a simple dial pic of 128x128 select it as a selection and create an alpha channel from it.
Alpha looks good (Dial is solid white - Background Solid Black).
Save it to .dds from within both programmers an a DXT3 no mipmaps.
Now Going into the editor and bringing up a page e.g Page TDC and selecting a dial face I can import an image from other .dds files no problem but as soon as I try to crop the image from my file the Editor crashes.
I've been trying this for 3 days solid and can't get any further.
I really want to create my own .dds files rather that using other peoples from mods or from stock images with SH5.

Any suggestion's. Its most likely something I'm doing wrong creating the image. Either with the attributes of the image or the settings when exporting to .dds.
reaper7 is offline   Reply With Quote
Old 03-16-10, 10:52 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by reaper7 View Post
What programs and setting are ye guys using to create a .dds file from scratch.
I have been messing about in Photoshop and Gimp and creating a 512x512 RGB/8 bit image, on this I place a simple dial pic of 128x128 select it as a selection and create an alpha channel from it.
Alpha looks good (Dial is solid white - Background Solid Black).
Save it to .dds from within both programmers an a DXT3 no mipmaps.
Now Going into the editor and bringing up a page e.g Page TDC and selecting a dial face I can import an image from other .dds files no problem but as soon as I try to crop the image from my file the Editor crashes.
I've been trying this for 3 days solid and can't get any further.
I really want to create my own .dds files rather that using other peoples from mods or from stock images with SH5.

Any suggestion's. Its most likely something I'm doing wrong creating the image. Either with the attributes of the image or the settings when exporting to .dds.
Have you tried using the Microsoft DirectX texture tools from the DirectX SDK (DxTex.exe)? You can use it to create .dds files and to view the alpha channels. See if you can load your created image using that SDK application.
TheDarkWraith is offline   Reply With Quote
Old 03-17-10, 03:18 AM   #8
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
Default

Quote:
Originally Posted by privateer View Post
On the subject of doing new Units.
...
I can create New Units in GR2 format ...
Using 3ds Max (2008 as ex.) and Granny exporter...?
__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Old 03-17-10, 06:31 AM   #9
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
Default

Quote:
Originally Posted by Anvart View Post
Using 3ds Max (2008 as ex.) and Granny exporter...?
yes, that would be interesting...if this works!
__________________


urfisch is offline   Reply With Quote
Old 03-17-10, 06:38 AM   #10
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Anvart View Post
Using 3ds Max (2008 as ex.) and Granny exporter...?
Yes.
3D Max 9 and Granny exporter.
  Reply With Quote
Reply

Thread Tools
Display Modes

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 01:45 AM.


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