SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [TEC] Mod Tools, HowTo (https://www.subsim.com/radioroom/showthread.php?t=162702)

gutted 03-15-10 11:48 AM

I eventually intend to do that if i haven't given up on UI modding by then LOL.

Right now im just trying to figure it out, and see if i can get something spinning on the screen.

SteveTRM 03-15-10 11:49 AM

These have obviously been left in by the devs - i personally dont think its a mistake by them - perhaps they where pissed with UBI soft aswell lol.

SH5 may have lots of bugs and many have moaned about its problems but to have access like this to a game is worth every penny i paid for it.

It has huge possiblities to the point where previous versions of Silent Hunter could be added to the game, i wonder how long it will be before some of the excellent modders here port over SH4 uboat missions lol

Perhaps SH5 will be the last in the series - but look what they have given us, all we need now is to get rid of the DRM!

reaper7 03-15-10 12:09 PM

How do you import a 'stat bmp array'. Do not see anywhere to import bmp files only .dds files.
But when I try to import my own .dds files the editor crashes (windows 7).

gutted 03-15-10 12:29 PM

what settings are you using to save the .dds?

I used DXT3 with no mipmaps and it loaded just fine. not really sure what the game expects though.

reaper7 03-15-10 12:56 PM

Using the DDS plugin with Photoshop CS4, Exporting at DXT3 RGB 8bpp Interpolated Alpha, Likewise not sure the correct dds setting required but these worked ingame on the Recon Manual.
What prog are you using for dds files, I'm not convinced with the photoshop plugin.

TheDarkWraith 03-15-10 01:39 PM

Quote:

Originally Posted by reaper7 (Post 1317049)
Using the DDS plugin with Photoshop CS4, Exporting at DXT3 RGB 8bpp Interpolated Alpha, Likewise not sure the correct dds setting required but these worked ingame on the Recon Manual.
What prog are you using for dds files, I'm not convinced with the photoshop plugin.

64 bit version of CS4? I have 64 bit version and can't get the DDS plugin to work. You're using the nVidia DDS plugin correct?

gutted 03-15-10 01:45 PM

I used paint shop pro X2, with the nvidia plugin. it says it's a photoshop plugin, but works in paint shop pro (just had to google where to put it).

the setting i used was DXT3 ARGB 8bpp | explicit alpha /w no mimaps.

I had the transparent area loaded into the alpha channel, and it shows up fine in the menu editor, transparency and all.

reaper7 03-15-10 01:50 PM

Quote:

Originally Posted by TheDarkWraith (Post 1317134)
64 bit version of CS4? I have 64 bit version and can't get the DDS plugin to work. You're using the nVidia DDS plugin correct?

No 32bit, it seems very hit and miss though. Worked ok on on the *shipname*_sil.dds files but not on any psd files I try to convert to .dds using the same settings. :damn:

Quote:

Originally Posted by gutted (Post 1317150)
I used paint shop pro X2, with the nvidia plugin. it says it's a photoshop plugin, but works in paint shop pro (just had to google where to put it).

the setting i used was DXT3 ARGB 8bpp | explicit alpha /w no mimaps.

I had the transparent area loaded into the alpha channel, and it shows up fine in the menu editor, transparency and all.

I may try it with explicit alpha channels to see if that works.

Edit. No go getting up a "to many channels to export (5) error ???

2nd Edit: Found the error for above error. Even though I had merged layers in photoshop dds add-in appeared to see the layers even though they were no longer there. After selecting the flatten image command it allowed me to save.
Problem is its still crashing when I try to import dds file into editor. Do you need to define the size of the image before importing into editor?

gutted 03-15-10 02:53 PM

no, after i loaded it int the editor i had to tweak the sizes to see it correctly.

reaper7 03-15-10 04:39 PM

OK still having no luck getting this working.

I have created a dds file in Photoshop the file has an alpha layer.
Its exported as DXT3 ARGB 8bpp - explicit alpha and no mipmaps.
Now for the first import into the Editor I am using a selection of:
x=6, y=16, dx= 410, dy=892. This is the Selection for the Background Panel cover.

Photoshopped dds File with Alpha layer
http://i236.photobucket.com/albums/f...g?t=1268688069

I then open up the editor.

Goblin Editor
http://i236.photobucket.com/albums/f...g?t=1268688147

In this I set up a new page called Test.
Then I create a new controls group called TDC Test.
(I drag yellow selection to the top left corner and drag out its size)
Next I create a Control - Static BMP called Panel (So far so good).
(I give it the ordinates of x=6, y=761, dx=410, dy=892)
Now I select the image file I wish to import the selection from
ie the .dds file from above that contains the image set.

At this point the Editor locks up and crashes to desktop. :damn:

Any idea where I'm going wrong. I'm attempting to learn how to import dial and stuff into the UI in the hope of someday creating a Hi-Res interfaces.
Although the phyton stuff might scare me of before then. :)

reaper7 03-15-10 04:59 PM

Right I've redone all the above steps but this time I selected a .dds image file from TheDarkWrights UI mod and it loaded the selection OK tried it with a couple of other dds files and the loaded OK too.
For the life of me I can't figure out whats wrong with the dds file I created.
Is anyone else using the dds plug-in for Photoshop if so what settings are you using. Or can you recommend a reliable converter for dds files that work with psd files?

gouldjg 03-15-10 06:09 PM

Is there a decent .zon editor avaialble. The one supplied with sh5 game just crashes. I think it was used for Sh3 .zon but not sh5 but cant be positive.

I basically want to see all the ship sections and edit damage values and re-size zones etc.

Decoman 03-16-10 09:59 AM

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.

http://www.decoman.net/linked/torpcolors4.jpg

reaper7 03-16-10 05:08 PM

Quote:

Originally Posted by Decoman (Post 1318512)
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.

http://www.decoman.net/linked/torpcolors4.jpg

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.

Decoman 03-16-10 05:26 PM

Quote:

Originally Posted by reaper7 (Post 1319411)
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.

http://www.decoman.net/linked/torpcolors4.jpg


All times are GMT -5. The time now is 12:34 PM.

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