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 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-22-10, 04:26 PM   #1
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
[REQ] (S3ditor) Can anybody help me create .dat file?

I'm thinking about creating "All Nations-All Flags" mod but, even after trying hard, can't figure out how to modify flag.dat file.

I tried to compile list of countries even remotely involved in WW2 and create one big flag.dat file for all future modders so there will be no need to add to flags.dat or create additional flag2.dat, flag3.dat etc

So far I have hi-res flags for these countries:
Albania
Albania (merchant)
USA
Argentina
Argentina (merchant)
Australia same as Britain
Australia (merchant)
Bahrain
Belgium
Belgium (merchant)
Bolivia
Bolivia (merchant)
Brasil
Britain
Britain (merchant)
Bulgaria
Bulgaria (merchant)
Canada same as Britain
Canada (merchant)
Chile
China
Columbia
Columbia (merchant)
Costa Rica
Croatia
Croatia (merchant)
Cuba
Czech Republic
Denmark
Denmark (merchant)
Dominican Republic
Egypt
Egypt (merchant)
El Salvador
Estonia
Estonia (merchant)
Ethiopia
Fiji
Fiji (merchant)
Finland
Finland (merchant)
France
Free French
Free French (merchant)
Germany
Germany (merchant)
Guatemala
Guatemala (merchant)
Greece
Greece (merchant)
Haiti
Haiti (merchant)
Honduras
Honduras (merchant)
Hungary
Hungary (merchant)
Iceland
Iceland (merchant)
Iraq
Ireland
India same as Britain
India (merchant)
Italy
Italy (merchant)
Japan
Japan (merchant)
Latvia
Latvia (merchant)
Liberia
Lithuania
Lithuania (merchant)
Luxembourgh
Mexico
Netherlands
Newfoundland same as Britain
Newfoundland (merchant)
New Zealand same as Britain
New Zealand (merchant)
Nicaragua
Norway
Norway (merchant)
Philippines
Palestine (merchant)
Panama
Paraguay
Peru
Poland
Poland (merchant)
Portugal
Red Cross
Romania
Romania (merchant)
R.S.I.
R.S.I. (merchant)
Saudi Arabia
Slovak State
South Africa
South Africa (merchant)
Spain
Spain (merchant)
Sweden
Sweden (merchant)
Syria
Thailand
Thailand (merchant)
Turkey
Uruguay
Soviet Union
Soviet Union (merchant)
Venezuela
Venezuela (merchant)
Yugoslavia
Yugoslavia (merchant)

Here is a sample:


If somebody just helped me to create the file i would really appreciate it.
Also, any suggestions for additional countries would be appreciated.
Thanks!
__________________
conus00 is offline   Reply With Quote
Old 02-23-10, 04:59 AM   #2
brat-01
Nub
 
Join Date: May 2009
Posts: 2
Downloads: 181
Uploads: 0
Default

Good afternoon! Sorry for my bad English. There are no problems to make one file - Flags.dat. But there is no any sensein it. The positive effect is absent.
brat-01 is offline   Reply With Quote
Old 02-23-10, 01:00 PM   #3
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Default

There is a sense behind this mod: If you have all the nations involved in one flag.dat file then any future modders wanting to add additional nation to their mod can just "tap" into nation already in it.
Also, I was planning on releasing, besides the .dat file, all flags' .dds and also recognition manuals' .dds

Unfortunatey, I'm failing miserably in creating the .dat file in S3ditor.
__________________
conus00 is offline   Reply With Quote
Old 02-23-10, 01:42 PM   #4
Nisgeis
Ocean Warrior
 
Join Date: Jan 2008
Posts: 2,909
Downloads: 77
Uploads: 11
Default

What problem are you having? Are you copying the flag nodes and then assigning a material, with new flag graphic to the object?

EDIT: You may get a better response posting this in the SH4 Mod forum instead.
__________________
--------------------------------
This space left intentionally blank.
Nisgeis is offline   Reply With Quote
Old 02-23-10, 05:13 PM   #5
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Default

Quote:
Originally Posted by Nisgeis View Post
What problem are you having? Are you copying the flag nodes and then assigning a material, with new flag graphic to the object?
I just don't know how the nodes work in principle... i.e. what's tied to what.
I know how to assign new graphics to the object but the structure of the .dat file is complete mystery to me.
__________________
conus00 is offline   Reply With Quote
Old 02-23-10, 07:05 PM   #6
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by conus00 View Post
I just don't know how the nodes work in principle... i.e. what's tied to what.
I know how to assign new graphics to the object but the structure of the .dat file is complete mystery to me.
The nodes with the colored circles in front are the material nodes which contain the image of the flag.
The other nodes are for the mesh and animation.
Some countries have two flags, one civilian and one military and usually have an m or a C somewhere in the name.

Picture one shows the Material/texture or the picture of the flag. Notice at the right side there is a place to import/export the image.



The next picture is with the FLG node selected. Notice the Material Box has the material from the other picture which you put in using the "Add" button.

If you click the "3D Model" node you will see the ID listed at the top of the window for the 3D model is the number after "Model ID"



So to make a new flag you can copy an existing flag and then you need to import a new image and change the name "Japan" and give the nodes new IDs.

Here is dat file file I used in the example, you can play with your own flag images and then do a Remap IDs and import the dat into the flag.dat using "File/Import/dat file" and do it again with another flag.

http://www.filefront.com/15665911/Flagtemplate.dat

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody 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:01 PM.


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.