![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
03-16-10, 09:59 AM
|
#1 |
|
Frogman
![]() Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
|
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. |
|
|
03-16-10, 05:08 PM
|
#2 | |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
Quote:
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. |
|
|
|
03-16-10, 05:26 PM
|
#3 |
|
Frogman
![]() Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
|
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. |
|
|
03-16-10, 05:37 PM
|
#4 |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
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. |
|
|
03-16-10, 06:21 PM
|
#5 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
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?
|
|
03-16-10, 09:40 PM
|
#6 |
|
sim2reality
![]() Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
|
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.
|
|
|
03-16-10, 10:52 PM
|
#7 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
03-17-10, 03:18 AM
|
#8 | |
|
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,481
Downloads: 122
Uploads: 1
|
Quote:
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... |
|
|
|
03-17-10, 06:31 AM
|
#9 |
|
Sea Lord
![]() Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,944
Downloads: 42
Uploads: 0
|
yes, that would be interesting...if this works!
__________________
|
|
|
03-17-10, 06:38 AM
|
#10 |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
