[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Silent Hunter II » » Odd convoy behaviour
Author Odd convoy behaviour
Floater


Joined: Oct 23, 2002
Posts: 246
From: England
Posted: 2002-12-12 09:01   
I've used the random mission generator I'm working on to generate a convoy of 40 ships in the North Atlantic, with no escorts, and some ships break ranks, for some strange reason. I couldn't figure out why they were doing this - maybe they were too close together (I automatically placed them 0.008 degrees apart in both axes, as the Convoy Formation Manager spreadsheet does).

So, I changed the software to place them 0.016 degrees apart, set the U-boat's Side to be the same as the convoy's, positioned the sub nearby, and started watching the convoy as it moved towards its first waypoint.

After a few minutes, though, the convoy disappears, and shortly after reappears further to the south west. I chase it, catch up, and then it does the same.

Has anyone seen anything like this? What on earth is going on? This is really weird. Here's the mission file:

[SCENARIO]
Date = 19430710
Time = 800
TitleEnglish = A random mission
TitleGerman = A random mission
Duration = 4500
TimeOut = -842150451
Type = TYPE A
Major = 10
Minor = 5
Origin = -43.409914,43.850981
InitialZoom = 5
Weather = CLEAR
Preprocess = FALSE
DrawOvlyText = TRUE

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

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

[GROUP1]
Commander = HUMAN
Type = SHIPDIVISION
UnitType = Submarine
Inactive = FALSE
Side = 1
Name = U-214
Nationality = German
WayptDisplay = DO_NOT_SHOW

[GROUP2]
Type = SHIPDIVISION
UnitType = Merchant
Inactive = TRUE
Side = 1
Name = Convoy 0
Nationality = British
Order1.1 = Formation,Form_As_Are,1000,2
Order1.2 = WayPt2,-16.510154,43.842114,-1,-1
WayptDisplay = DO_NOT_SHOW

[UNIT1]
Group = 1
TypeAbrev = SS
Class = NSSUBoat21
Name = U-boat
Control = HUMAN
Flag = TRUE
Guide = TRUE
Location = -43.409914,43.850981
Orientation = 270
Captain = 80
Crew = 80
Fuel = 0.45
BoilersHot = TRUE
IconName = SUBMARINE
Display = DO_NOT_SHOW

[UNIT2]
Group = 2
TypeAbrev = FC
Class = MSCCargoGB
Name = Ship 00-00
Flag = TRUE
Guide = TRUE
Location = -43.367390,43.837113
Orientation = 90
Captain = 80
Crew = 80
Fuel = 0.45
BoilersHot = TRUE
IconName = MSHIP
Display = DO_NOT_SHOW


[UNIT3]
Group = 2
TypeAbrev = FC
Class = MSCLiberty
Name = Ship 00-01
Flag = TRUE
Guide = TRUE
Location = -43.367390,43.821113
Orientation = 90
Captain = 80
Crew = 80
Fuel = 0.45
BoilersHot = TRUE
IconName = MSHIP
Display = DO_NOT_SHOW

..... and then units going up to UNIT41, with different locations and classes. The units are arranged in 6 columns with 7 rows, spaced apart 0.016 degrees. The classes used are a mixture of MFCCargo, MFCVictoryGB, MOTgenTankerGB, MSCLiberty and MSCCargoGB.

Until I can get this sorted out, I can't really do any decent development on the random mission generator.

[ This Message was edited by: Floater on 2002-12-12 09:07 ]


  View Profile of Floater   Email Floater      Edit/Delete This Post   Reply with quote
cdragon


Joined: May 29, 2002
Posts: 60
From: Boston, MA USA
Posted: 2002-12-12 11:48   
Floater, I haven't run the scenario, but some ideas off the top of my head:

As to why ships break ranks: you don't specify an exact speed in the orders for the group. The default speed is STANDARD. Different ship types will probably have different STANDARD speeds. Put a mix of different ship types in formation, and the formation will quickly lose cohesion as the faster ships turn to avoid the slower ones ahead. Try specifying an exact speed.

Use SHIPSQUADRON instead of SHIPDIVISION.

One other thought: Each ship in the formation is specified as the Flag and Guide ship of the Group. Trying making just one unit the Flag and Guide ship and see if that helps.

C.

_________________


[ This Message was edited by: cdragon on 2002-12-12 11:51 ]


  View Profile of cdragon   Email cdragon   ICQ status         Edit/Delete This Post   Reply with quote
Floater


Joined: Oct 23, 2002
Posts: 246
From: England
Posted: 2002-12-12 14:09   
Cdragon:

I think you've solved it! Omitting the FLAG and GUIDE flags for all but the lead ship (which has them set to TRUE) stops the silly behaviour. It needs a lot more testing, but I followed a convoy for a few hours of game time and it kept in perfect formation. That's the only thing I needed to change.

I've no idea why the convoy kept shifting position, but it seems to have stopped doing that too. Excellent.

For the record, I'd already played around with SPEED orders for the convoy while I was trying to pin this down, and it seemed to be best to leave them out. Certainly, setting a TELEGRAPH,FULL order caused the convoy to separate, each ship going at its own full speed.

But, that was before you mentioned the FLAG and GUIDE settings, which I didn't understand, and were simply put there for every ship, guessing it was to do with identification and mapping. If anyone knows the exact meaning of either of these offhand, please let me know.

My guess is that the GUIDE parameter is the one, but I'll keep FLAG and GUIDE off for all but the lead ship until I know what each does exactly. My guess is that ships in a convoy follow the ship with GUIDE set to TRUE; in the posted example, all the ships were trying to lead the rest.

Many thanks, Cdragon, and well spotted!

PS I don't think I've mentioned it here before, but for those that don't read VWarrior, the purpose behind all this is that I'm writing a random mission generator, initially restricted to North Atlantic convoys, but left open to other areas of the world.

So far, the status is that I've got convoys of various sizes appearing escorted by DDs/DEs in various strengths, always roughly eastbound. After some general tidying up, the next move is to make the convoys zigzag accurately, add enemy warship convoys, then maybe introduce random weather fronts. Another thing on the list is to add patrolling aircraft

If there's enough interest, it'd be nice to get this packaged up as a beta pretty soon, to share with other SH2 users.

[ This Message was edited by: Floater on 2002-12-12 14:11 ]


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


Joined: Feb 27, 2002
Posts: 474
From: Petaluma, California
Posted: 2002-12-12 17:26   
See that "2" and the end of the formation order for the group? That specifies which unit for the formation to follow, UNIT2.

So UNIT2 should have Flag and Guide = TRUE, the rest blank (as cdragon mentioned).

If a group of ships gets far away from the enemy, it will "collapse" into "group mode", which is a simplified processing method where individual ships aren't tracked unless they get close to the enemy again. Having mismatched guide units confuses group mode.

thanks
Mark Kundinger
(Ultimation)


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


Joined: Oct 23, 2002
Posts: 246
From: England
Posted: 2002-12-12 18:52   
Thanks, Mark - knowing what that number means on the FORMATION order will save a lot of trouble later. It was only set to "2" in that example by pure luck - I copied the other formation parameters from an existing SDF, not knowing what they meant.

Speaking of which, the "1000" in that line ...

Order1.1 = Formation,Form_As_Are,1000,2

... does that have any effect? I've read that it specifies distance between ships in LINE_ABREAST, etc, but I'd guessed that a FORM_AS_ARE formation would maintain the initial distances set by the units' LOCATION parameters, and that seems to work in practice. Any ideas?

Your explanation of "group mode" makes a lot of sense. I think maybe the incorrect GUIDE settings resulted in SH2 being unsure where the convoy actually was, hence the shifting about. Lots of testing needed now, but I'm in a confident mood

Thanks again for the help, everyone. I hope to repay you all with a working random mission generator.


  View Profile of Floater   Email Floater      Edit/Delete This Post   Reply with quote
Easy Rhino


Joined: Feb 27, 2002
Posts: 331
From: Californey
Posted: 2002-12-13 19:17   
That's distance between ships (in meters, from center to center, I think).

For form_as_are, it does nothing. For column, line_abreast, echelon, etc, it matters.

thanks,
Mark Kundinger
(Ultimation)


  View Profile of Easy Rhino      Edit/Delete This Post   Reply with quote
Floater


Joined: Oct 23, 2002
Posts: 246
From: England
Posted: 2002-12-14 07:06   
Thanks, Mark. That makes sense.

  View Profile of Floater   Email Floater      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.035987 seconds.