[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Silent Hunter II » » Mission scripters, please take a look...
Author Mission scripters, please take a look...
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-27 17:11   
Hi all,

Anyone with mission scripting ability (more than my own, anyway), please take a look at this SDF file, and please explain to me (like I am a 6 year old) why the supply ship does not show up. I keep getting "Unable to contact supply vessel", but it looks like I scripted it okay to me.

The three resupply-enabled missions that came with PM15 ALL work on my system, so it MUST be something I am doing wrong.
I have studied those missions to see what I am doing wrong, but I am sorry, I can't find it. I have also read, several times, the documentation about how to write SDF files. I think I stuck to the rules.

Perhaps I just don't have the talent to write SDF's for this game...

SDF file:
------------

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; File: test.sdf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[SCENARIO]
TitleEnglish = Resupply test
Date = 19440928
Time = 1600
Duration = 1500
TimeOut = 0
Type = Single
Major = 10
Minor = 5
InitialZoom = 9
Origin = 3.10, 2.52
Weather = Clear
Preprocess = TRUE
DrawOvlyText = TRUE

;;;
;;; SIDES:
;;;

[SIDE1]
Alignment = ALLIES
Name = Allies
Doctrine = AMERICAN

[SIDE2]
Alignment = AXIS
Name = Axis
Doctrine = German


;;;
;;; OBJECTIVES ;just one, because this is a test
;;;

[OBJECTIVE1]
Objective = TONNAGE
Tonnage = 25000
Type = CARGO
Score = 150

;;;
;;; GROUPS
;;;

[GROUP1]
Commander = HUMAN
Type = SHIPSQUADRON
UnitType = Submarine
Side = 2
Name = German Squad
Nationality = German

[GROUP2]
Type = SHIPSQUADRON
UnitType = Merchant
Side = 1
Name = Merchant Group
Nationality = Britain
Order1.1 = Formation,FORM_AS_ARE,0.0,2
Order1.2 = WayPt,3.260520, 7.651875,-1,-1
WayptDisplay = DO_NOT_SHOW

[GROUP2.1]
Type = SHIPDIVISION
UnitType = Merchant
Name = Merchant Group
WayptDisplay = DO_NOT_SHOW

[GROUP2.2]
Type = SHIPDIVISION
UnitType = Merchant
Name = Merchant Group
WayptDisplay = DO_NOT_SHOW

[GROUP3]
Type = SHIPSQUADRON
Side = 2
Category = SUBMARINE
Unit Type = Submarine
Class = SSUboat14
Model = NSSUboat14
Name = U-462
Origin = Germany
Crew = 53
EntryTime = 2300
EntryDate = 19990528
EntryInterval = 18
Order1.1 = Resupply,1,Fuel,UNIT,-1,-1
WayptDisplay = DO_NOT_SHOW

;;;
;;; UNITS
;;;

[UNIT1]
Group = 1
Class = NSSUBoat7c
Name = U-167
Control = HUMAN
Flag = TRUE
Guide = TRUE
Vessel = Submarine
Location = 3.10, 2.52
Orientation = 180
Captain = 80
Crew = 80
Fuel = 0.45
BoilersHot = TRUE
IconName = SUBMARINE
Display = SHOW_AS_GROUP

[UNIT2]
Group = 2
TypeAbrev = FC
Class = MFCCargo
Name = Anna Lea
Flag = TRUE
Guide = TRUE
Location = 3.260520, 2.651875
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT3]
Group = 2
TypeAbrev = FC
Class = MFCCargo
Name = Sophie Sarah
Location = 3.260520, 2.645647
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT4]
Group = 2
TypeAbrev = FC
Class = MFCCargo
Name = Hildegard Vanessa
Location = 3.260520, 2.633191
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT5]
Group = 2
TypeAbrev = FC
Class = MFCCargo
Name = Gretchen Anna
Location = 3.260520, 2.639419
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT6]
Group = 2.1
TypeAbrev = FC
Class = MFCCargo
Name = Laura Anne
Flag = TRUE
Guide = TRUE
Location = 3.242291, 2.652395
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT7]
Group = 2.1
TypeAbrev = FC
Class = MFCCargo
Name = Anne Michelle
Location = 3.242291, 2.639940
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT8]
Group = 2.1
TypeAbrev = FC
Class = MFCCargo
Name = Sophie Katharina
Location = 3.242291, 2.646168
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT9]
Group = 2.1
TypeAbrev = FC
Class = MFCCargo
Name = Marie
Location = 3.242291, 2.633712
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT10]
Group = 2.2
TypeAbrev = FC
Class = MFCVictory
Name = Laura Anna
Flag = TRUE
Guide = TRUE
Location = 3.275885, 2.652135
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT11]
Group = 2.2
TypeAbrev = FC
Class = MFCVictory
Name = Anna Julia
Location = 3.275885, 2.633451
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT12]
Group = 2.2
TypeAbrev = FC
Class = MFCVictory
Name = Lea Michelle
Location = 3.275885, 2.639679
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT13]
Group = 2.2
TypeAbrev = FC
Class = MFCVictory
Name = Michelle Maria
Location = 3.275885, 2.645907
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT14]
Group = 3
TypeAbrev = AVP
Class = NSSUboat14
Name = U-462
Origin = Germany
Flag = TRUE
Guide = TRUE
Location = 3.10, 2.52
Orientation = 180
Captain = 53
Crew = 53
BoilersHot = TRUE
IconName = Submarine
Display = SHOW_AS_GROUP

---------
End of SDF file.

Thanks for any help you can offer. If after this, I still can't figure it out, I will have to abandon my plans to get resupply working in the original campaign. Then it seems, I really don't have the ability to write SDF's which is a shame. I really wanted to do this.

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
Ol'Man


Joined: Feb 27, 2002
Posts: 81
From: Atop a high mountain
Posted: 2002-09-27 18:43   
For #1 you have no bases to resupply from. Put some in then try it.

Cheers
Ol'Man


  View Profile of Ol'Man      Edit/Delete This Post   Reply with quote
AdamWarren


Joined: May 23, 2002
Posts: 1329
From: squinting at the monitor TN, USA
Posted: 2002-09-27 20:13   
This may not help, but FIRE ALL OF YOUR TORPS! If you are out, then they might think about helping you. Try lowering you fuel level too.

_________________
- ADAM I play: Combat Flight Simulator 1 & 2, Flight Simulator 98, Silent Hunter I & II

The enemy is in front of us, the enemy is behind us, they are on the left and they are on the right. They can't get away this time! - Gen. Douglas MacArthur

[ This Message was edited by: AdamWarren on 2002-09-27 20:14 ]


  View Profile of AdamWarren   Email AdamWarren   ICQ status         Edit/Delete This Post   Reply with quote
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-28 04:56   
Thanks for the tips guys, and sorry for "running home to mommy" each time, when the program doesn't do what I want it to do

At the risk of sounding utterly moronic: "you need bases in the script for resupply to work?"
Don't worry, I WILL try it, of course.

Thanks again,

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
AdamWarren


Joined: May 23, 2002
Posts: 1329
From: squinting at the monitor TN, USA
Posted: 2002-09-28 06:37   
We all are running home to mommy

Hope you get it worked out
_________________
Fair winds and following seas.

GO NEAL!

© 1988-2003


  View Profile of AdamWarren   Email AdamWarren   ICQ status         Edit/Delete This Post   Reply with quote
HerrBaron


Joined: Feb 26, 2002
Posts: 493
From: Norwalk, CT
Posted: 2002-09-28 14:55   
Make sure you look carefully at how the resupply bases are scripted in the included missions... it matters.

_________________
Fair Winds and Following Seas!



HerrBaron


  View Profile of HerrBaron   Email HerrBaron   Goto the website of HerrBaron        Edit/Delete This Post   Reply with quote
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-29 06:54   
Thanks everyone, for the support, moral and otherwise

I'll just keep at it, until I get it right.

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.039229 seconds.