Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

How are random leaders assigned?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> How are random leaders assigned? Page: [1]
Login
Message << Older Topic   Newer Topic >>
How are random leaders assigned? - 6/29/2014 1:54:39 AM   
Peever


Posts: 196
Joined: 3/17/2002
From: Minnesota
Status: offline
I got to messing around with the editor after getting battered and bruised by Andy's latest Ironman scenario and I had some questions on how the game assigns leaders to units that are set to "random" by default. Does the game auto-generate a generic leader or just pull one from the "Leaders" pool that can be seen in the editor?

For a test I set all Allied ships and LCU's to have a delay of "0" so that every unit would be present at the start of the game. I wanted to see if there were enough leaders for everything at once. Everything seemed fine, and it looked like everyone had a leader, though not always the best for the job. Is it possible for the game to run out of leaders if I created a ton of new ships, and units?









< Message edited by Peever -- 6/29/2014 2:55:41 AM >


_____________________________

"Sergeant the Spanish bullet isn't made that will kill me," Bucky O'Neil seconds before receiving a fatal shot to the head at the battle of San Juan Hill.
Post #: 1
RE: How are random leaders assigned? - 6/29/2014 2:41:38 AM   
crsutton


Posts: 9590
Joined: 12/6/2002
From: Maryland
Status: offline
I doubt you will get an answer to this one.

_____________________________

I am the Holy Roman Emperor and am above grammar.

Sigismund of Luxemburg

(in reply to Peever)
Post #: 2
RE: How are random leaders assigned? - 6/29/2014 2:16:06 PM   
czert2

 

Posts: 508
Joined: 2/10/2013
Status: offline
I was allways under asumtion that every leader in database must be manualy assigned (or auto when groups merge/split) and units with random leader get it simply generated.

It is realy simple to find out if yxou want - just place xxxx in name of every leader in database and then start game and you will find out answer - if leaders will have reakl names, they are generated if xxx they are taken from pool :)

(in reply to crsutton)
Post #: 3
RE: How are random leaders assigned? - 6/29/2014 2:26:16 PM   
Chickenboy


Posts: 24520
Joined: 6/29/2002
From: San Antonio, TX
Status: offline
Sorry, Peever, but I must take the low hanging fruit on this reply. How are random leaders assigned? Erm...randomly.



_____________________________


(in reply to czert2)
Post #: 4
RE: How are random leaders assigned? - 6/29/2014 3:36:42 PM   
Symon


Posts: 1928
Joined: 11/24/2012
From: De Eye-lands, Mon
Status: offline
quote:

ORIGINAL: Peever
I got to messing around with the editor after getting battered and bruised by Andy's latest Ironman scenario and I had some questions on how the game assigns leaders to units that are set to "random" by default. Does the game auto-generate a generic leader or just pull one from the "Leaders" pool that can be seen in the editor?

For a test I set all Allied ships and LCU's to have a delay of "0" so that every unit would be present at the start of the game. I wanted to see if there were enough leaders for everything at once. Everything seemed fine, and it looked like everyone had a leader, though not always the best for the job. Is it possible for the game to run out of leaders if I created a ton of new ships, and units?

It’s ‘random’ but not really ‘random’. There’s several things the code looks at – for Ships, it reaches back to the Class and looks at “Type”. For a BB (Type=5), fx, it will find a leader of a suitable notional Nation (USN, IJN, RN, etc..), suitable Type=5 (ship) and Rank=19, 28, etc.. (Cpt equivalent since a BB is in the tables as a Capital Ship).

There are tables of ‘Class’ value that work for many things, such as points, target value, torpedo expenditure, and the like, so “value” is pretty well defined. Biggies get Captains, others get Commanders, then Lt Commanders, then Lieutenants, and on down to Ensigns, according to the decreasing ‘value’ scale and decreasing ‘Rank’ scale.

The logic is ‘fuzzy’ so if a ship qualifies for a LT Commander, it might get a Commander, or a Lieutenant, if the requisite code criteria are not met exactly (more on that in a moment).

When one needs a leader, the code consults all the different data numbers and generates a list of appropriate/active leaders with the appropriate data tags, and will pick the first one that shows up. If there aren’t any Captains left (for example) it MIGHT pick a Commander. Allowability of picking outside the box, and in which direction, and how far to go, is a proprietary algorithm.

Later war, when all the listed ‘leaders’ are being used, and the code can’t find a suitable candidate, the code makes up an Elmer Fudd with appropriate rank and nationality and having stats that are also determined by a proprietary algorithm.

You guys have always wondered why you can’t have someone commanding a TF go on to Fleet HQ; or someone commanding a HQ going on to TF command. That’s because the database ‘characterizes’ each line item (leader) by the editor “Type” field. That’s the reason you often get two listings for the same individual; one typed as 04=TF, the other typed as 01=HQ.

Land works the same way, but more so.

Pretty sure Alfred will make sense of all this and be able to explain it in a more organized and rational fashion.

Ciao. JWE


< Message edited by Symon -- 6/29/2014 4:42:33 PM >


_____________________________

Nous n'avons pas peur! Vive la liberté! Moi aussi je suis Charlie!
Yippy Ki Yay.

(in reply to Peever)
Post #: 5
RE: How are random leaders assigned? - 6/30/2014 3:06:50 PM   
Peever


Posts: 196
Joined: 3/17/2002
From: Minnesota
Status: offline

quote:

ORIGINAL: czert2
It is realy simple to find out if yxou want - just place xxxx in name of every leader in database and then start game and you will find out answer - if leaders will have reakl names, they are generated if xxx they are taken from pool :)


I was going to try that but I didn't see a way to make mass changes to the leader database like you can with ships, aircraft, and locations. Manually changing some 20,000+ leaders names seemed a little daunting to find this out. Not to mention the carpal tunnel...


quote:


Later war, when all the listed ‘leaders’ are being used, and the code can’t find a suitable candidate, the code makes up an Elmer Fudd with appropriate rank and nationality and having stats that are also determined by a proprietary algorithm.


That's what I was thinking the game was doing based on messing around with the editor. Thanks for the detailed response.







(in reply to czert2)
Post #: 6
RE: How are random leaders assigned? - 7/1/2014 6:40:12 PM   
czert2

 

Posts: 508
Joined: 2/10/2013
Status: offline

quote:

ORIGINAL: Peever


quote:

ORIGINAL: czert2
It is realy simple to find out if yxou want - just place xxxx in name of every leader in database and then start game and you will find out answer - if leaders will have reakl names, they are generated if xxx they are taken from pool :)


I was going to try that but I didn't see a way to make mass changes to the leader database like you can with ships, aircraft, and locations. Manually changing some 20,000+ leaders names seemed a little daunting to find this out. Not to mention the carpal tunnel...




well, you can allways make mini scenario with say 30 leaders and 30 units :)

(in reply to Peever)
Post #: 7
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> How are random leaders assigned? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

5.766