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-15-07, 02:51 PM   #1
ATR-42
Commodore
 
Join Date: Mar 2007
Location: Jersey Shore
Posts: 606
Downloads: 20
Uploads: 6
Question about Menu.ini tga vs. dds

my question is general in nature but it was peaked because of this thread . Its regarding the Menu_1024_768.ini changes.

The clocks in that mod are dds files, later in that thread is a break down of some menu entries to make the chrono smaller.

When you look closely at that menu edit the clock files it points to are dds files (the new chronos). Yet the Menu edit itself lists them as tga.

When i 'merge' mods together i always make sure that a dds points to a dds and vice versa.

What happens when a menu tga points to a dds? does it simply not work? what are the differences between the two?
__________________

ATR-42 is offline   Reply With Quote
Old 12-15-07, 03:06 PM   #2
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

If I understand correctly (and I often don't ) the game doesn't care what you point to, it uses the .dds. I have, at times, deliberately left the menu.ini entry pointing to a .tga file that doesn't exist in the game but does exist in .dds format and it still displays. I have also made changes to .tga files that are pointed to and the changes do not appear in game, but if I change the corresponding .dds file, the changes miraculously appear.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 12-15-07, 04:09 PM   #3
ATR-42
Commodore
 
Join Date: Mar 2007
Location: Jersey Shore
Posts: 606
Downloads: 20
Uploads: 6
Default

I just ran a test with Nomograph...

i pointed the menu to a tga file but made sure the Nomo was dds, and it worked?! wtf?

very strange the way thats set up. like a fail safe or something?

my modding knowledge is limited, but the little merging work i do i want to be sure i do it 'cleanly' and that i fully understand whats going on....

this detail in particular is strange...
__________________

ATR-42 is offline   Reply With Quote
Old 12-15-07, 05:34 PM   #4
jaketoox
Gunner
 
Join Date: Jul 2007
Location: Finland
Posts: 93
Downloads: 5
Uploads: 0
Default

...for example...cameras.dat...you could rename it to be cameras.wtf....or even place it to a folder inside "Library" folder....and still it was causing troubles in some cases....seems like that the game is using whatever file is named close enough to original filename.....

Jake
jaketoox is offline   Reply With Quote
Old 12-15-07, 06:17 PM   #5
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
Default

I know more games that use this technique. Basically this behavior is for the benefit of the developers/artists. They don't always know in advance (when the game engine is built) what file types they are going to use for each and every part of the game. They made the routines that loads assets not care about extension (sortof), and allow the choice to the 3D artist. The routines generally look at the first bytes of the file to determine the filetype, and not the extension and this is also true for dat-files. There usually is a 'preferred' extension though (dds in the case of textures if i am correct), but if this file is not found other files with the same name are used.
skwasjer 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 07:46 AM.


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.