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 03-25-07, 03:39 PM   #1
Prof
Medic
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 167
Downloads: 2
Uploads: 0
Default [TEC] Flag editing

I've been working on new versions of the SH4 flags with double the resolution, more realistic texturing with some historical innaccuracies corrected.

However, to do a proper job of it I need to change how the flags are assigned. Some countries in SH4 have different flag textures for naval and merchant ships (Japan, UK, Germany, etc...) How are these texture assignments made? I would like to change some ships' flags and, if possible, add another flag type for Russia to allow a civil and a naval ensign.

I've had a look through most of the files in the \Data directory but not had any success.

There is a file called 'flags.dat' but it's 10MB and I don't know how to edit it. I've had a look with a hex editor but that got me nowhere...
Prof is offline   Reply With Quote
Old 03-25-07, 03:46 PM   #2
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by Prof
There is a file called 'flags.dat' but it's 10MB and I don't know how to edit it. I've had a look with a hex editor but that got me nowhere...
Use Timetraveller's SH3 Unpacker
http://www.delraydepot.com/tt/sh3.htm
Seeadler is offline   Reply With Quote
Old 03-25-07, 03:48 PM   #3
Prof
Medic
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 167
Downloads: 2
Uploads: 0
Default

Thanks for the suggestion, but I realised I could try that after posting the message...all it does is show some TGA versions of the default SH4 flags (which don't seem to get used at all). The DAT Unpacker doesn't show anything else in there, but the TGA files don't add up to 10MB!
Prof is offline   Reply With Quote
Old 03-25-07, 04:04 PM   #4
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Try using Pack3d
Version 3 should be ok

You can extract all objects in the dat and replace with new ones

You can get pack3d here if you dont have it

http://files.filefront.com/P3dAllVer.../fileinfo.html
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 03-26-07, 06:12 AM   #5
Prof
Medic
 
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 167
Downloads: 2
Uploads: 0
Default

Thanks for the Pack3D link...very useful! I've unpacked the FLAG.DAT file and got a load of TGA/OBJ/MTL files out of it. I've had a go at editing some of the files (both in Notepad and Wings3D) but I've not found any reference to the texture which is applied to each flag.

Each country has two flag OBJ files (eg. American_FLG and American_FLGC). I'm assuming that one of these relates to the warships and one relates to the merchants (the flag models are identical). However, I still don't seem to be able to find any way of modifying the name of the texture to be applied to the flags.

Can anyone help me out a bit here?
Prof 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 04:14 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.