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 01-21-23, 06:05 PM   #1
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,784
Downloads: 444
Uploads: 2


Default

Do your files match in bit depth and extension name, as the originals?
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 01-22-23, 08:45 AM   #2
SwissSubCommander
Asso dei Siluratori
 
SwissSubCommander's Avatar
 
Join Date: Jan 2016
Location: Roma, Italia
Posts: 82
Downloads: 330
Uploads: 2
Default

Quote:
Originally Posted by propbeanie View Post
Do your files match in bit depth and extension name, as the originals?
How do I check what bit depth the original has?
And how do I change it if needed?
__________________

"Da mesi e mesi non faccio che pensare ai miei marinai che sono onorevolmente in fondo al mare. Penso che il mio posto è con loro."
-Carlo Fecia di Cossato

Last edited by SwissSubCommander; 01-22-23 at 09:09 AM.
SwissSubCommander is offline   Reply With Quote
Old 01-22-23, 03:51 PM   #3
ElCid97
Gunner
 
Join Date: Nov 2019
Location: Miami, FL
Posts: 93
Downloads: 107
Uploads: 5


Default

What graphics/imaging program are you using? To check the data for the file, you would have to open it and then check the properties from there. If you need to change it, then it's part of the saving procedure. I believe that all the "dds" and "tga" files are 32-bit in format/depth, so you shouldn't have any issues there.

I'm not sure if it's a Win-7 thing, but when I right-click on a "tga" or "dds" file, the properties option only gives me generic info and nothing from the file. This is because they are 32-bit. If I do the same with a "png" or a "jpg" or another 24-bit file, I can see the size and bit depth info for them.

When modifying with GIMP (the program I use) I just make sure to NOT click on compression when it's offered for the dds files. I also agree (YES) to the option for creating mip-maps from a drop-down option. I haven't had any issues yet with this method of doing this. I'm sure there's a similar method for other imaging programs. Just the procedure for getting there may be somewhat different.

I haven't used the "tga" files yet, but I believe you DON'T want the compression option there either.

I believe if you compress the files they are then NOT 32-bit, and therefore can't be read by the sim. That was the case with flightsim files for FS9/FSX which I have considerable experience with. I don't see why this sim would be any different regarding the images/textures.

By the way, how did you get the image you posted to copy to an imaging program? I've tried Ctrl+F11 and PrintScreen, but none of them work for me. All I get is either a black box or a screen-shot of the imaging program I would be in.

Hope this helps.

ElCid97
ElCid97 is offline   Reply With Quote
Old 01-22-23, 04:31 PM   #4
SwissSubCommander
Asso dei Siluratori
 
SwissSubCommander's Avatar
 
Join Date: Jan 2016
Location: Roma, Italia
Posts: 82
Downloads: 330
Uploads: 2
Default

GIMP seems like a handy program.
I will try it out
WHat do you mean? How I took the screenshot or how i uploaded it?
__________________

"Da mesi e mesi non faccio che pensare ai miei marinai che sono onorevolmente in fondo al mare. Penso che il mio posto è con loro."
-Carlo Fecia di Cossato
SwissSubCommander is offline   Reply With Quote
Old 01-22-23, 05:28 PM   #5
ElCid97
Gunner
 
Join Date: Nov 2019
Location: Miami, FL
Posts: 93
Downloads: 107
Uploads: 5


Default

GIMP is basically an open source imaging program that allows you to work with layers and such, much like the payware ones. I figure since I'm only using it for a hobby that the price was worth it. (open source = free).

I'm on version 2.10.22, but it may be newer by now.

With regards to the images, I meant how to take them. Eventually I figured it out a little while ago when I started seeing several "bmp" files in the main SH4 directory that weren't there before.

I never would've thought that was the location that Ctrl+F11 would place them. I thought it was going to the save folder with the other stuff you save in-game.

Live and learn.

I'll post something once I clean them up.

Regards,

ElCid97
ElCid97 is offline   Reply With Quote
Old 01-24-23, 11:37 AM   #6
SwissSubCommander
Asso dei Siluratori
 
SwissSubCommander's Avatar
 
Join Date: Jan 2016
Location: Roma, Italia
Posts: 82
Downloads: 330
Uploads: 2
Default

So, progress has been made, but Im not quite there yet...
I edited the "Awardsitems 3&4" files.
I pasted every italian medal over the respective german one it should replace.
I tested this, after giving myself every medal by editing the savegame, but in the Awards-screen, the american medal wich is in "awardsitems 2" on the right hand side would show up
So I switched around the numbers of the files inside the menu_1024_768 file,
basically making every "awarditems 1" into a 3, every 2 into a 4 and vice versa...
When I did this, the "croce di guerra" showed up, the replacement for the german "knights cross" that sits in "awardsitems 4" on the right hand side.
Why this works is beyond me, since its basically loading a texture out of a foreign file...
Yay, an italian medal! Trouble is, it showed up for every single medal
Here is the awards-section of my menu_1024_768 file

Mat 0=data/menu/data/awardsitems_4.dds
Crop 0=0.5,0.0742188,0.5,0.851563
Mat 1=data/menu/data/awardsitems_3.dds
Crop 1=0.5,0.0742188,0.25,0.851563
Mat 2=data/menu/data/awardsitems_3.dds
Crop 2=0.75,0.0742188,0.25,0.851563
Mat 3=data/menu/data/awardsitems_4.dds
Crop 3=0,0.0742188,0.5,0.851563
Mat 4=data/menu/data/awardsitems_3.dds
Crop 4=0.25,0.0742188,0.25,0.851563
Mat 5=data/menu/data/awardsitems_3.dds
Crop 5=0,0.0742188,0.25,0.851563
Mat 6=data/menu/data/awardsitems_1.dds
Crop 6=0.25,0.0742188,0.25,0.851563
Mat 7=data/menu/data/awardsitems_1.dds
Crop 7=0.5,0.0742188,0.25,0.851563
Mat 8=data/menu/data/awardsitems_1.dds
Crop 8=0,0.0742188,0.25,0.851563
Mat 9=data/menu/data/awardsitems_1.dds
Crop 9=0.75,0.0742188,0.25,0.851563
Mat 10=data/menu/data/awardsitems_2.dds
Crop 10=0,0.0742188,0.5,0.851563
Mat 11=data/menu/data/awardsitems_2.dds
Crop 11=0.5,0.0742188,0.5,0.851563


And here are are the Awarditems 3 and 4 files respectively:





Any assistance would be highly appreciated
__________________

"Da mesi e mesi non faccio che pensare ai miei marinai che sono onorevolmente in fondo al mare. Penso che il mio posto è con loro."
-Carlo Fecia di Cossato

Last edited by SwissSubCommander; 01-24-23 at 11:48 AM.
SwissSubCommander is offline   Reply With Quote
Old 01-24-23, 02:35 PM   #7
ElCid97
Gunner
 
Join Date: Nov 2019
Location: Miami, FL
Posts: 93
Downloads: 107
Uploads: 5


Default

This is what I'm seeing on the KSD2 install. Figured I'd use that one since it's meant for the "other" side from the beginning. My guess is that the mods for Dark Waters should be the same.

[G12 I5]
Name=Medals;CAPTAINS_LARGE_MEDALS
Type=1031;Stat bmp array
ItemID=0x12000003
ParentID=0x12000000
Pos=200,-166,256,436
Zone= 200 602 256 436 6 1 0x12000001 0.32 -0.5 0x12000003 -0.5 0.5 0 0
Materials=12
Display=2;Linear
Mat 0=data/menu/data/CaptainAwards_2.tga;PURPLE_HEART
Crop 0=0.5,0.0742188,0.5,0.851563
Mat 1=data/menu/data/CaptainAwards_1.tga;NAVY_CROSS
Crop 1=0.5,0.0742188,0.25,0.851563
Mat 2=data/menu/data/CaptainAwards_2.tga;BRONZE_STAR
Crop 2=0,0.0742188,0.5,0.851563
Mat 3=data/menu/data/CaptainAwards_1.tga;SILVER_STAR
Crop 3=0.75,0.0742188,0.25,0.851563
Mat 4=data/menu/data/CaptainAwards_1.tga;NAVY_COMMENDATION
Crop 4=0.25,0.0742188,0.25,0.851563
Mat 5=data/menu/data/CaptainAwards_1.tga;ASIATIC_PACIFIC_CAMPAIGN
Crop 5=0,0.0742188,0.25,0.851563
Mat 6=data/menu/data/awardsitems_3.dds
Crop 6=0.25,0.0742188,0.25,0.851563
Mat 7=data/menu/data/awardsitems_3.dds
Crop 7=0.5,0.0742188,0.25,0.851563
Mat 8=data/menu/data/awardsitems_3.dds
Crop 8=0,0.0742188,0.25,0.851563
Mat 9=data/menu/data/awardsitems_3.dds
Crop 9=0.75,0.0742188,0.25,0.851563
Mat 10=data/menu/data/awardsitems_4.dds
Crop 10=0,0.0742188,0.5,0.851563
Mat 11=data/menu/data/awardsitems_4.dds
Crop 11=0.5,0.0742188,0.5,0.851563
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

See how this compares to yours. Keep in mind that the "CaptainAwards" files are not the default, so it may look different if you're modding off the vanilla sim.

If you have these in your setup, then just change the name of the new images you did from "awardsitems_x.dds" to "CaptainAwards_x.dds" instead. The sim will load dds files before it loads tga files, so there shouldn't be any conflict.

If all else fails, just resize the Italian medals to fit over the German ones EXACTLY. I say this because I still haven't figured out the numbers for the cropping or the positioning of the images, so can't help there.

Send me a PM if you like and I'll see what I can look at sometime this week when I get the chance. Still putting finishing touches on my mod, so it wouldn't be too much to look at this in case I need to look at it later for a further "tweak" there.

On lunch. Will check later after work.

ElCid97
ElCid97 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 09:28 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.