[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Silent Hunter II » » Using templates (help needed)
Author Using templates (help needed)
Rossbach


Joined: Mar 24, 2002
Posts: 9
Posted: 2002-10-28 10:34   
Can somebody give some good advice. If I try to use templates in my custom scenarios( for instance template which consists 10 merchants + 2 escorts) the result is that program puts 4 ships into every ship location, so instead 12 ships I have 48 of them, they are piled together, some of them
will fly few minutes later, some sinks.
If I copy these units directly into scenario
then everything is ok. Any suggestions?


  View Profile of Rossbach      Edit/Delete This Post   Reply with quote
Hitman


Joined: Sep 22, 2002
Posts: 51
From: Spain
Posted: 2002-10-28 13:10   
Mmm, could you post your file? Simply copy it into the message when you reply...I promise nothing, but I can take a look. ( And, what´s more important, many around here who are wiser than me )

  View Profile of Hitman      Edit/Delete This Post   Reply with quote
Rossbach


Joined: Mar 24, 2002
Posts: 9
Posted: 2002-10-29 03:44   
No problem, I'm trying to make Arctic scenario for testing (campaign is in my mind) so the convoy is German in order to see
its route and that these ships don't shoot me when I'm lurking around them with my u-boat, beside the fact that the Germans opened Bergen U-boat base on May 1942. But nevertheless here are the scripts:

Scenario:


[SCENARIO]
Date = 19420412
Time = 1612
Duration = 5000
TimeOut = 0
Type = TYPE A
TitleEnglish = Arctic route test
TitleGerman =
TitleFrench =
Major = 10
Minor = 5
Origin = -5.7333, 58 ;;BaseLE;;
InitialZoom = 9
Weather = HIGH_CLOUDS
Preprocess = TRUE
DrawOvlyText = TRUE

;;; Objectives ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[OBJECTIVE1]
Objective = RETURN_TO_BASE
Home = Bergen
;;Time = 1440
;;Hidden = TRUE
Primary = TRUE
Score = 1000
;;Trigger = TIME
;;DateTrigger = 19390904
;;TimeTrigger = 0010

;;; Bases ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[BASE1]
Alignment = Allies
Location = -70.036530,12.568965
AirRadius = 199976.921875
AirProbability = 0.020000
Timer = 10.000000
Group = 17
NightAir = FALSE
Oneshot = FALSE

;;; Radio Messages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;; Multi ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;; Mutex ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;; Sides ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

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

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


;;; Groups ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[GROUP1]
Commander = HUMAN
Type = SHIPSQUADRON
UnitType = Submarine
Side = 2
Name = U-Boat
Nationality = German
WayptDisplay = DO_NOT_SHOW

[GROUP2]
Type = SHIPSQUADRON
UnitType = Merchant
File1 = Arc_type1
Side = 2
Name = Convoy
Nationality = German
Order1.1 = Formation,FORM_AS_ARE,0.0,2
Order1.2 = Speed, Exact, 8, -1, -1
Order1.3 = WayPt2, -5.7500, 59.016667,-1,-1 ;;Wp1;;
Order2.1 = WayPt2, -2.6619, 61.063272,-1,-1
Order3.1 = WayPt2, -3.3052, 65.920678,-1,-1
Order4.1 = WayPt2, -6.6559, 68.237966,-1,-1
Order5.1 = WayPt2, -3.2551, 73.086782,-1,-1
Order6.1 = WayPt2, 2.2536, 72.615058,-1,-1
Order7.1 = WayPt2, 4.1679, 74.115033,-1,-1
Order8.1 = WayPt2, 10.3244, 75.189004,-1,-1
Order9.1 = WayPt2, 13.5034, 73.279515,-1,-1
Order10.1 = WayPt2, 18.9811, 72.013049,-1,-1
Order11.1 = WayPt2, 23.9630, 74.874567,-1,-1
Order12.1 = WayPt2, 31.2706, 74.625263,-1,-1
Order13.1 = WayPt2, 33.1583, 77.988053,-1,-1
Order14.1 = WayPt2, 38.4755, 74.911668,-1,-1
Order15.1 = WayPt2, 35.3861, 71.002302,-1,-1
Order16.1 = WayPt2, 33.6000, 70.716667,-1,-1 ;;Wp16;;
Order17.1 = WayPt2, 33.6667, 69.833333,-1,-1 ;;BaseM;;
Order17.2 = Speed,Telegraph,STOP,-1,-1
Order18.1 = Speed, Exact, 8, -1, -1
Order18.2 = WayPt2, 33.6000, 70.716667,-1,-1 ;;Wp18;;
Order19.1 = WayPt2, 34.3372, 73.021132,-1,-1
Order20.1 = WayPt2, 37.4342, 74.350516,-1,-1
Order21.1 = WayPt2, 34.0995, 75.59446,-1,-1
Order22.1 = WayPt2, 28.6459, 74.588677,-1,-1
Order23.1 = WayPt2, 23.8713, 74.176158,-1,-1
Order24.1 = WayPt2, 19.8088, 73.530624,-1,-1
Order25.1 = WayPt2, 13.9174, 72.305096,-1,-1
Order26.1 = WayPt2, 9.2542, 75.496136,-1,-1
Order27.1 = WayPt2, 6.6252, 74.241035,-1,-1
Order28.1 = WayPt2, 3.1765, 70.690748,-1,-1
Order29.1 = WayPt2, -1.5283, 70.629183,-1,-1
Order30.1 = WayPt2, -6.5750, 69.687019,-1,-1
Order31.1 = WayPt2, -4.6896, 66.136029,-1,-1
Order32.1 = WayPt2, -3.8776, 61.805394,-1,-1
Order33.1 = WayPt2, -5.7500, 59.016667,-1,-1 ;;Wp1;;
Order34.1 = WayPt2, -5.7333, 58,-1,-1 ;;BaseLE;;
Order35.1 = Speed,Telegraph,STOP,-1,-1
WayptDisplay = DO_NOT_SHOW

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

[GROUP2.2]
Type = SHIPDIVISION
UnitType = Destroyer
Name = Escort
WayptDisplay = DO_NOT_SHOW

[GROUP2.3]
Type = SHIPDIVISION
UnitType = Destroyer
Name = Escort
WayptDisplay = DO_NOT_SHOW



;;; Units ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[UNIT1]
Group = 1
TypeAbrev = SS
Class = NSSUboat7C
Name = U-401
Control = HUMAN
Flag = TRUE
Guide = TRUE
Location = -5.7033, 58 ;;BaseLE;;
Orientation = 350
Captain = 80
Crew = 80
BoilersHot = TRUE
IconName = SUBMARINE
Display = SHOW_AS_UNIT

_________________________________________


Template:


[TEMPLATE]
Origin = -5.7333, 58

;;;;Groups;;;;;;;;;;;;;;;;;;;;;

[GROUP2]
Type = SHIPSQUADRON
UnitType = Merchant
Side = 2
Name = Convoy
Nationality = German
WayptDisplay = DO_NOT_SHOW

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

[GROUP2.2]
Type = SHIPDIVISION
UnitType = Destroyer
Name = Escort
WayptDisplay = DO_NOT_SHOW

[GROUP2.3]
Type = SHIPDIVISION
UnitType = Destroyer
Name = Escort
WayptDisplay = DO_NOT_SHOW

;;UNITS;;;;;;;;;;;;

[UNIT2]
Group = 2
TypeAbrev = SC
Class = MSCCargo3GB
Name = Olena
Flag = TRUE
Guide = TRUE
Location = -5.7333, 58 ;;BaseLE;;
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT3]
Group = 2
TypeAbrev = SC
Class = MSCCargo3GB
Name = Deidre
Location = -5.725300, 58.000000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT4]
Group = 2
TypeAbrev = FC
Class = MFCCargo
Name = Whitney
Location = -5.717300, 58.000000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT5]
Group = 2
TypeAbrev = FC
Class = MFCCargo
Name = Miriam
Location = -5.709300, 58.000000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT6]
Group = 2
TypeAbrev = SC
Class = MSCCargo2GB
Name = Yari
Location = -5.701300, 58.000000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT7]
Group = 2.1
TypeAbrev = SC
Class = MSCCargo3GB
Name = Ramona
Flag = TRUE
Guide = TRUE
Location = -5.733300, 57.992000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT8]
Group = 2.1
TypeAbrev = OT
Class = MOTgenTankerGB
Name = Heather Rose
Location = -5.725300, 57.992000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT9]
Group = 2.1
TypeAbrev = FC
Class = MFCCargo
Name = Jodie Madeline
Location = -5.717300, 57.992000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT10]
Group = 2.1
TypeAbrev = SC
Class = MSCCargo2GB
Name = Helena Aretha
Location = -5.709300, 57.992000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT11]
Group = 2.1
TypeAbrev = SC
Class = MSCCargo3GB
Name = Welsh Star
Location = -5.701300, 57.992000
Orientation = 0
Captain = 80
Crew = 80
IconName = MSHIP
Display = SHOW_AS_UNIT

[UNIT12]
Group = 2.2
TypeAbrev = DD
Class = NDDTribal
Name = Cossack
Flag = TRUE
Guide = TRUE
Location = -5.741300, 58.016000
Orientation = 0
Captain = 80
Crew = 80
BoilersHot = TRUE
Fuel = 0.000000
IconName = NSHIP
Display = SHOW_AS_UNIT

[UNIT13]
Group = 2.3
TypeAbrev = DE
Class = NFlower
Name = Blencathra
Flag = TRUE
Guide = TRUE
Location = -5.693300, 58.016000
Orientation = 0
Captain = 80
Crew = 80
BoilersHot = TRUE
Fuel = 0.000000
IconName = NSHIP
Display = SHOW_AS_UNIT




[ This Message was edited by: Rossbach on 2002-10-29 03:45 ]


  View Profile of Rossbach      Edit/Delete This Post   Reply with quote
Mark K


Joined: Feb 27, 2002
Posts: 474
From: Petaluma, California
Posted: 2002-10-29 16:10   
The GROUP section using the template needs to include the following parts:

Orientation = 90
Location = -23.833240,56.996212

Also, some of the UNITS in the template had Fuel = 0.000. This probably doesn't matter, but it might be bad.

thanks,
Mark Kundinger
(Ultimation)


  View Profile of Mark K   Goto the website of Mark K      Edit/Delete This Post   Reply with quote
Rossbach


Joined: Mar 24, 2002
Posts: 9
Posted: 2002-10-30 04:32   
Hi Mark,
You are right without "location" and "orientation" I shouldn't get any ships at all.

I corrected this, but still I get four ships instead of one.
FOUR DESTROYERS STUCK TOGETHER

What may cause it? Because if I don't get it fixed the I can forget my plans of quasi-dynamic campaigns.



[ This Message was edited by: Rossbach on 2002-10-30 04:33 ]


  View Profile of Rossbach      Edit/Delete This Post   Reply with quote
Dagger U-539


Joined: Feb 28, 2002
Posts: 448
Posted: 2002-10-30 09:47   
might try changing the escort group to group 3, group 4 and so on...also give them some room say a few natical miles seperation to start with.
Maybe that group 2.1,2.2 and so on makes a difference.


  View Profile of Dagger U-539   Email Dagger U-539   ICQ status       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.013254 seconds.