Forum Index
SUBSIM Forum Search

The Web's #1 BBS for all submarine and naval simulations!
[ SUBSIM Review ] [ SUBSIM STORE ]
Current Forum | Archives 2002-2003 |

File formats

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop
View previous topic :: View next topic  
Author Message
Floater



Joined: 14 Sep 2002
Posts: 2300
Location: England

PostPosted: Fri Mar 18, 2005 1:51 pm    Post subject: File formats Reply with quote

Has anyone had a poke around the file formats for missions, campaigns, units, etc? I'm just wondering if they're anything like SH2's.
Back to top
View user's profile Send private message Send e-mail
cdragon



Joined: 30 Apr 2002
Posts: 286
Location: Boston, MA USA

PostPosted: Fri Mar 18, 2005 3:51 pm    Post subject: Reply with quote

I poked around the .cfg files, before I even played the game! Rolling Eyes They are all text files, in similar structure to SH2 text-based configuration file:

[BLOCK]
A=B
C=D
E=F

There doesn't seem to be an informative AI .cfg file, unfortunately. The one I found so far deals with a few Crew behavior defaults, like values for "short", "medium" and "long" range for the deck gun crew.

The .cfg files that caught my imagination right off were the ones for the default characteristics of the crew. Names, hit points, abilities, all that good stuff. It would be nice to be able to randomly create them, especially the names! I've already threatened everyone I know that I will make them serve me, if only by name! Laughing (thats evil laughter you hear.)
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Fri Mar 18, 2005 6:15 pm    Post subject: Reply with quote

Each mission has a separate folder with the name of the mission. Inside there is a mission (text) file with extension MIS. It is accompanied by a Media.cfg file, also in text format.

Example of mission file Courageous.mis

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


[Mission]
Title=Sinking of HMS Courageous
MissionType=0
MissionDataType=0
Year=1939
Month=9
Day=17
Hour=16
Minute=0
Fog=1
FogRand=1
Clouds=1
CloudsRand=1
Precip=0
PrecipRand=0
WindHeading=0
WindSpeed=7.000000
WindRand=0
WeatherRndInterval=5
SeaType=0
Briefing=North Atlantic, September 1939||BRIEFING|The most effective counter-measure against u-boats of early war was the aircraft. Understanding this, the British Admiralty deployed its carriers to provide air patrols over the hunting ground of the u-boat. ||On 17th September 1939, U-29 came upon one of these carriers - the HMS Courageous. By sinking it, he would prove the carrier's vulnerability and thus win the open ocean for the u-boats.||PRIMARY OBJECTIVE|Sink the Courageous

[Group 1]
GroupName=CarrierGroup
CommandUnitName=BR CV Illustrious#1
Category=0
RandStartRadius=0.000000
DeleteOnLastWaypoint=true
EvolveFromEntryDate=false

[Group 1.Unit 1]
Name=BR CV Illustrious#1
Class=CVIllustrious
Type=9
Origin=British
Side=1
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19390101
DeleteOnLastWaypoint=true
GameEntryDate=19390917
GameEntryTime=0
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=-1731588.000000
Lat=6012909.000000
Height=0.000000
Heading=78.742302
Speed=20.000000
CrewRating=1
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0

[Group 1.Unit 1.Waypoint 1]
Speed=20.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-1723348.000000
Lat=6014559.000000
Height=0.000000

[Group 1.Unit 1.Waypoint 2]
Speed=20.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-1386748.000000
Lat=6034939.000000
Height=0.000000

[Group 1.Unit 1.Waypoint 3]
Speed=20.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-851248.000000
Lat=6115939.000000
Height=0.000000

[Group 1.Unit 1.Waypoint 4]
Speed=20.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-638248.000000
Lat=6311939.000000
Height=0.000000

[Group 1.Unit 1.Waypoint 5]
Speed=20.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-586248.000000
Lat=6439939.000000
Height=0.000000

[Group 1.Unit 1.Waypoint 6]
Speed=20.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-442248.000000
Lat=6459939.000000
Height=0.000000

[Group 1.Unit 1.Waypoint 7]
Speed=20.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-392248.000000
Lat=6413939.000000
Height=0.000000

[Group 1.Unit 2]
Name=BR DD C Class#2
Class=DDCClass
Type=4
Origin=British
Side=1
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
GameEntryDate=19390917
GameEntryTime=0
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=-1731528.000000
Lat=6014259.000000
Height=0.000000
Heading=78.742302
Speed=20.000000
CrewRating=1
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000

[Group 1.Unit 3]
Name=BR DD C Class#3
Class=DDCClass
Type=4
Origin=British
Side=1
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
GameEntryDate=19390917
GameEntryTime=0
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=-1730928.000000
Lat=6011699.000000
Height=0.000000
Heading=78.742302
Speed=20.000000
CrewRating=1
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000

[Group 1.Unit 4]
Name=BR DD J Class#1
Class=DDJClass
Type=4
Origin=British
Side=1
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
GameEntryDate=19390917
GameEntryTime=0
GameExitDate=19451201
GameExitTime=0
EvolveFromEntryDate=false
Long=-1730530.000000
Lat=6013680.000000
Height=0.000000
Heading=78.741997
Speed=20.000000
CrewRating=2
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000

[Group 1.Unit 5]
Name=BR DD J Class#2
Class=DDJClass
Type=4
Origin=British
Side=1
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
GameEntryDate=19390917
GameEntryTime=0
GameExitDate=19451201
GameExitTime=0
EvolveFromEntryDate=false
Long=-1730310.000000
Lat=6012740.000000
Height=0.000000
Heading=78.741997
Speed=20.000000
CrewRating=1
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000

[Unit 1]
Name=U-29
Class=SSTypeVIIB
Type=200
Origin=German
Side=2
Commander=1
CargoExt=-1
CargoInt=-1
CfgDate=19380601
DeleteOnLastWaypoint=false
GameEntryDate=19380625
GameEntryTime=0
GameExitDate=19430304
GameExitTime=0
EvolveFromEntryDate=false
Long=-1726563.000000
Lat=6017480.000000
Height=-12.000000
Heading=185.212997
Speed=5.000000
CrewRating=2
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0

[Unit 1.Waypoint 1]
Speed=5.000000
Radius=0.000000
Loop=-1
LoopProbability=100
Long=-1726688.000000
Lat=6012589.000000
Height=0.000000

[Objective 1]
ObjName=Engage Carrier Group
Obj=0
ObjType=0
RenownAwarded=2000
ClassName=CVIllustrious
No=1

[EditorParams]
InitLongOff=971862528.000000
InitLatOff=-228619504.000000
ZoomIndex=0

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


Example of corresponding Media.cfg

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Loading]
Map=SingleMissions.tga
;Path=54,740 100,740 200,740 400,740 645,740

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Back to top
View user's profile Send private message Send e-mail
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Fri Mar 18, 2005 6:37 pm    Post subject: Reply with quote

Each unit has a dedicated folder as well. There are a number of files in the folder. F.e. for Bismarck

NBB_Bismarck.cfg
NBB_Bismarck.dat - likely the model itself
NBB_Bismarck.dsd
NBB_Bismarck.eqp - equipment
NBB_Bismarck.sim
NBB_Bismarck.sns - sensors
NBB_Bismarck.val
NBB_Bismarck.zon - zone

Only CFG, EQP and SNS are text files.

NBB_Bismarck.cfg
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


[Unit]
ClassName=BBBismarck
UnitType=11
MaxSpeed=30
Length=270
Width=37
Mast=57
Draft=8.5
Displacement=42340
RenownAwarded=1700

[2DCompartments]
UnitPos=66,15,384,12
NbOfComp=6
Name1=Propulsion
Area1=79,11,30,18
Name2=Keel
Area2=155,8,200,10
Name3=Fore Ammo Bunker
Area3=324,19,40,18
Name4=Aft Ammo Bunker
Area4=132,19,40,18
Name5=Engines Room
Area5=238,19,40,18
Name6=Fuel Bunkers
Area6=280,19,30,18


\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

NBB_Bismarck.eqp
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Equipment 1]
NodeName=M01
LinkName=15InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 2]
NodeName=M02
LinkName=15InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 3]
NodeName=M03
LinkName=15InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 4]
NodeName=M04
LinkName=15InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 5]
NodeName=S01
LinkName=6InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 6]
NodeName=S02
LinkName=6InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 7]
NodeName=S03
LinkName=6InchDoubleTO
StartDate=19380101
EndDate=19451231

[Equipment 8]
NodeName=S04
LinkName=6InchDoubleTO
StartDate=19380101
EndDate=19451231

[Equipment 9]
NodeName=S05
LinkName=6InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 10]
NodeName=S06
LinkName=6InchDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 11]
NodeName=A01
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 12]
NodeName=A02
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 13]
NodeName=A03
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 14]
NodeName=A04
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 15]
NodeName=A05
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 16]
NodeName=A06
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 17]
NodeName=A07
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 18]
NodeName=A08
LinkName=88mmGEDoubleT
StartDate=19380101
EndDate=19451231

[Equipment 19]
NodeName=A09
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 20]
NodeName=A10
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 21]
NodeName=A11
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 22]
NodeName=A12
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 23]
NodeName=A13
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 24]
NodeName=A14
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 25]
NodeName=A15
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 26]
NodeName=A16
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 27]
NodeName=A17
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 28]
NodeName=A18
LinkName=20mmGBSingle
StartDate=19380101
EndDate=19451231

[Equipment 29]
NodeName=L01
LinkName=REF_big
StartDate=19380101
EndDate=19451231

[Equipment 30]
NodeName=L02
LinkName=REF_big
StartDate=19380101
EndDate=19451231

[Equipment 31]
NodeName=L03
LinkName=REF_big
StartDate=19380101
EndDate=19451231

[Equipment 32]
NodeName=L04
LinkName=REF_big
StartDate=19380101
EndDate=19451231

[Equipment 33]
NodeName=L05
LinkName=REF_big
StartDate=19380101
EndDate=19451231

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

NBB_Bismarck.sns
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


[Sensor 1]
NodeName=O01
LinkName=AI_Visual
StartDate=19380101
EndDate=19451231

[Sensor 2]
NodeName=H01
LinkName=NULL
StartDate=19380101
EndDate=19451231

[Sensor 3]
NodeName=N01
LinkName=NULL
StartDate=19380101
EndDate=19451231

[Sensor 4]
NodeName=R01
LinkName=NULL
StartDate=19380101
EndDate=19400301

[Sensor 5]
NodeName=R01
LinkName=FuMO23
StartDate=19400301
EndDate=19451231

[Sensor 6]
NodeName=D01
LinkName=NULL
StartDate=19380101
EndDate=19451231

[Sensor 7]
NodeName=C01
LinkName=NULL
StartDate=19380101
EndDate=19451231

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

There are also a copule of log files and a couple of tga files in the folder.
Back to top
View user's profile Send private message Send e-mail
sergbuto



Joined: 14 Sep 2002
Posts: 2530
Location: Sweden

PostPosted: Fri Mar 18, 2005 6:45 pm    Post subject: Reply with quote

Campaign includes three text files Campaign_RDN.mis, Campaign_SCR.mis, and Campaign_LND.mis corresponding to random and scripted layers, and land units. These three files can be created in the Mission Editor and overwritten.
Back to top
View user's profile Send private message Send e-mail
Floater



Joined: 14 Sep 2002
Posts: 2300
Location: England

PostPosted: Fri Mar 18, 2005 7:35 pm    Post subject: Reply with quote

Thanks, guys. It looks vaguely similar, yet ... completely different. Joking

No prizes for guessing why I was wondering ...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> SH3 Mods Workshop All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group