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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-05-08, 12:29 AM   #1
DanFraser
Bosun
 
Join Date: Jun 2007
Posts: 62
Downloads: 15
Uploads: 0
Default Mod program assistance requested!

Hi, I play silent hunter 3 absolutely loads, and I'm one of these people who like to play it arcade style

I'm also a bit of a programmer, being that is what my degree course is all about! I have stumbled across a few people asking for a program to set up a spysat mod with GWX and such. I know there at least was one out there, but obviously it messed up your campaign if it was for another mod etc. I've just knocked one up that just reads the data, looks for certain lines, and spits out new data with all of these set to 60 minutes and 100% probability. It works, and the program is TINY!

But, being a programmer, I want to make this better

What if someone wanted to only have task forces reported? Only convoys, only big convoys?

Analysing the data in the Campaign_RND.mis file I can identify that all groups have the same info, only differing in the number of internal units (ships). Bam, easy to write up the other stuff to add to the program to have these set up.

Now I'm just trying to figure out what the data actually means.

Code:
[RndGroup 1]
GroupName=US Coastal Convoys 42
Category=0
CommandEntry=0
Long=-6319192.000000
Lat=5707450.000000
Height=0.000000
DelayMin=60
DelayMinInterv=36000
SpawnProbability=75
RandStartRadius=0.000000
ReportPosMin=0
ReportPosProbability=0
Heading=102.615440
Speed=9.000000
ColumnsNo=3
Spacing=900
DeleteOnLastWaypoint=true
CurrentInstanceID=0
GameEntryDate=19420401
GameEntryTime=0
GameExitDate=19440228
GameExitTime=0
NextWP=0
Most are downright obvious. Some, are perplexing or I have no idea what it actually is supposed to represent.

Category and CommandEntry appear to be the same for all groups. If they aren't can someone tell me what it is actually for then?

DelayMin and DelayMinInterv, so, what's it delaying?

Is there anything in here to help me identify between task forces and convoys/single ships?

Now on to the units themselves...

Code:
[RndGroup 1.RndUnit 1]
Type=101
Origin=American
Side=0
CargoExt=-1
CargoInt=0
CfgDate=19390101
No=1
Escort=false
SpawnProbability=100
CrewRating=2
What is Type? I think it's the type to load when this group is placed. I think type 11 is a battleship of some sort. Has anyone got a list of what they type numbers mean?

Side? Good bad neutral? Explanation anyone?

CargoExt and CargoInt, are these the value types for cargo being carried?

'No'? Huh? (had to use '' to identify that was a type I was referring to :p )

And how is escort used specifically?


If someone could explain these values to me I would be seriously grateful!
DanFraser is offline   Reply With Quote
Old 02-05-08, 11:38 AM   #2
bigboywooly
Rear Admiral
 
Join Date: Apr 2006
Location: Swindon, England
Posts: 10,151
Downloads: 35
Uploads: 0
Default

Quote:
Originally Posted by DanFraser
Hi, I play silent hunter 3 absolutely loads, and I'm one of these people who like to play it arcade style

I'm also a bit of a programmer, being that is what my degree course is all about! I have stumbled across a few people asking for a program to set up a spysat mod with GWX and such. I know there at least was one out there, but obviously it messed up your campaign if it was for another mod etc. I've just knocked one up that just reads the data, looks for certain lines, and spits out new data with all of these set to 60 minutes and 100% probability. It works, and the program is TINY!

But, being a programmer, I want to make this better

What if someone wanted to only have task forces reported? Only convoys, only big convoys?

Analysing the data in the Campaign_RND.mis file I can identify that all groups have the same info, only differing in the number of internal units (ships). Bam, easy to write up the other stuff to add to the program to have these set up.

Now I'm just trying to figure out what the data actually means.

Code:
[RndGroup 1]
GroupName=US Coastal Convoys 42
Category=0 < 0=Naval\1=Air\2=Land
CommandEntry=0 < AI command ( 1 = player command )
Long=-6319192.000000
Lat=5707450.000000
Height=0.000000
DelayMin=60
DelayMinInterv=36000 < 600 hours before group will spawn again
SpawnProbability=75
RandStartRadius=0.000000
ReportPosMin=0
ReportPosProbability=0
Heading=102.615440
Speed=9.000000
ColumnsNo=3
Spacing=900
DeleteOnLastWaypoint=true
CurrentInstanceID=0
GameEntryDate=19420401
GameEntryTime=0
GameExitDate=19440228
GameExitTime=0
NextWP=0
Most are downright obvious. Some, are perplexing or I have no idea what it actually is supposed to represent.

Category and CommandEntry appear to be the same for all groups. If they aren't can someone tell me what it is actually for then?

DelayMin and DelayMinInterv, so, what's it delaying?

Is there anything in here to help me identify between task forces and convoys/single ships? Nope - the lead ship of any task force should be a warship - Convoys will be a merchant however some convoys have a sub as lead unit to simulate a sub watching a convoy

Now on to the units themselves...

Code:
[RndGroup 1.RndUnit 1]
Type=101 < Tanker - No class name specified so game can pick any tanker in the roster named below
Origin=American
Side=0 = Neutral\1=Allied\2-Axis = refers to the country state at time of entry although defisde cfg will overide the setting if not correct - ie if a ship is shown as side=0 when the US are at war the game will treat it as a side=1 as per the dates in the defside cfg
CargoExt=-1 < No external cargo carried on tankers so -1 or 0
CargoInt=0 < 0=Freight\1=Ammo\2=Fuel
CfgDate=19390101
No=1 < Number of units
Escort=false < can only be an escort true if type 0\1\2\3\4 (see list below) a warship is specified in the mission editor when scripting a convoy
SpawnProbability=100
CrewRating=2
What is Type? I think it's the type to load when this group is placed. I think type 11 is a battleship of some sort. Has anyone got a list of what they type numbers mean?

Side? Good bad neutral? Explanation anyone?

CargoExt and CargoInt, are these the value types for cargo being carried?

'No'? Huh? (had to use '' to identify that was a type I was referring to :p )

And how is escort used specifically?


If someone could explain these values to me I would be seriously grateful!
;Warships
Type0=Patrol Craft
Type1=Corvette
Type2=Frigate
Type3=Destroyer Escort
Type4=Destroyer
Type5=Minesweeper
Type6=Light Cruiser
Type7=Heavy Cruiser
Type8=Escort Carrier
Type9=Fleet Carrier
Type10=Battlecruiser
Type11=Battleship
Type12=Minor Warship
Type13=Auxiliary Cruiser
Type14=
Type15=
Type16=Iceberg
;Merchant ships
Type100=Replenishment
Type101=Tanker
Type102=Cargo
Type103=Troop Transport
Type104=Coastal Vessel
Type105=Environmental
;Submarine
Type200=Submarine
Type201=Replenishment Submarine
Type202=Missile Submarine
Type203=Environmental
;Air
Type300=Fighter
Type301=Bomber
Type302=Dive Bomber
Type303=Torpedo Bomber
Type304=Patrol
Type305=Helicopter
Type306=Environmental
;Land
Type400=Vehicle
Type401=Tank
Type402=Armored Personnel Carrier
Type403=Artillery
Type404=Antiaircraft
Type405=Missile
Type406=Airbase
Type407=Naval Base
Type408=Environmental
;Ordnance
Type500=Mine
Type501=AntiSub Net

Other answers in yellow
__________________


My mediafire page http://www.mediafire.com/?11eoq19bq9r41
bigboywooly is offline   Reply With Quote
Old 02-05-08, 08:12 PM   #3
DanFraser
Bosun
 
Join Date: Jun 2007
Posts: 62
Downloads: 15
Uploads: 0
Default

Thanks, I'll create a new thread with a better title so that people know what's involved!
DanFraser 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:31 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.