List of units in army lists?

Field of Glory II is a turn-based tactical game set during the Rise of Rome from 280 BC to 25 BC.
Post Reply
kronenblatt
General - Carrier
General - Carrier
Posts: 4822
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

List of units in army lists?

Post by kronenblatt »

Is there anywhere (apart from the game itself) where the different units to choose from in the various army lists are are listed? If yes, where?

Otherwise, I've made a simple list in Excel that can be filtered and in which it's thus possible to compare army lists, with the minimum and potential number of units for different number of force points. You can also check in which army lists certain units are included. It's all based on ArmyList.txt and the kind input from RBS (see below).
rbodleyscott wrote: Sun Jun 28, 2020 4:10 pm
kronenblatt wrote: Sun Jun 28, 2020 6:26 am In ArmyList.xlsx, the army list's units are specified with a MIN and a MAX, setting out "total (fixed + selection) quantity for 2000 point army".

1. How is that then adjusted and rounded for any other point of army, say 1200 point army: simply proportionally (multiplying each number with e.g. 1200/2000)?
This.
2. And how then rounded to integer values; always down, always up, or to nearest integer?
To nearest integer.
(With any floors (of say 1)?)
Floor of 1, with floor of 2 for core types in ally contingents.

Code: Select all

				StartWorkString(1);
				PrintWorkStringLiteral("MIN_", 1);
				PrintWorkStringInt(num, 1);
				min = FromFileGetValue(file, army, GetWorkString(1));
				min = ((min * points) + 1000) / 2000; // scale based on 2000 point army

				StartWorkString(1);
				PrintWorkStringLiteral("MAX_", 1);
				PrintWorkStringInt(num, 1);
				max = FromFileGetValue(file, army, GetWorkString(1));
				
				unadjustedMax = max; // v1.5.10 WatG addition	
				
				if (max > 0)
				{
					max = ((max * points) + 1000) / 2000 ; // scale based on 2000 point army

					// v1.5.10 WatG addition - to allow more than one unit of core types if their overall numbers in the allied list are not huge
					if (ally == 1)
						{
							if (max < 2)
								{
									max = (((unadjustedMax * points * 190) / 100) + 1000) / 2000;
									if (max > 2)
										{
											max = 2;
										}
								}
						}
					// End v1.5.10 WatG addition							
					
					if (max < min)
					{
						max = min;
					}
					if (max < 1)
					{
						max = 1;
					}
				}
Last edited by kronenblatt on Mon Jun 29, 2020 8:07 pm, edited 1 time in total.
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
SimonLancaster
Major - Jagdpanther
Major - Jagdpanther
Posts: 1059
Joined: Thu Dec 01, 2016 3:42 pm
Contact:

Re: List of units in army lists?

Post by SimonLancaster »

Good job. Does it work fully with allies? I see you have them but the core list changes as well depending on the allies.
YouTube channel for Field of Glory 2: Ancients and Medieval.

https://www.youtube.com/@simonlancaster1815
Paul59
General - King Tiger
General - King Tiger
Posts: 3863
Joined: Tue Jul 21, 2015 11:26 pm

Re: List of units in army lists?

Post by Paul59 »

kronenblatt wrote: Mon Jun 29, 2020 4:02 pm Is there anywhere (apart from the game itself) where the different units to choose from in the various army lists are are listed? If yes, where?

Otherwise, I've made a simple list in Excel that can be filtered and in which it's thus possible to compare army lists, with the minimum and potential number of units for different number of force points. You can also check in which army lists certain units are included. It's all based on ArmyList.xlsx and the kind input from RBS (see below).
rbodleyscott wrote: Sun Jun 28, 2020 4:10 pm
kronenblatt wrote: Sun Jun 28, 2020 6:26 am In ArmyList.xlsx, the army list's units are specified with a MIN and a MAX, setting out "total (fixed + selection) quantity for 2000 point army".

1. How is that then adjusted and rounded for any other point of army, say 1200 point army: simply proportionally (multiplying each number with e.g. 1200/2000)?
This.
2. And how then rounded to integer values; always down, always up, or to nearest integer?
To nearest integer.
(With any floors (of say 1)?)
Floor of 1, with floor of 2 for core types in ally contingents.

Code: Select all

				StartWorkString(1);
				PrintWorkStringLiteral("MIN_", 1);
				PrintWorkStringInt(num, 1);
				min = FromFileGetValue(file, army, GetWorkString(1));
				min = ((min * points) + 1000) / 2000; // scale based on 2000 point army

				StartWorkString(1);
				PrintWorkStringLiteral("MAX_", 1);
				PrintWorkStringInt(num, 1);
				max = FromFileGetValue(file, army, GetWorkString(1));
				
				unadjustedMax = max; // v1.5.10 WatG addition	
				
				if (max > 0)
				{
					max = ((max * points) + 1000) / 2000 ; // scale based on 2000 point army

					// v1.5.10 WatG addition - to allow more than one unit of core types if their overall numbers in the allied list are not huge
					if (ally == 1)
						{
							if (max < 2)
								{
									max = (((unadjustedMax * points * 190) / 100) + 1000) / 2000;
									if (max > 2)
										{
											max = 2;
										}
								}
						}
					// End v1.5.10 WatG addition							
					
					if (max < min)
					{
						max = min;
					}
					if (max < 1)
					{
						max = 1;
					}
				}
What is ArmyList.xlsx? Do you mean ArmyList.txt? That is where all the army list information for the game is held. It can be found in Field of Glory II/Core.

Here is an old post from Richard that explains how to read it:

viewtopic.php?f=492&t=79848
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
kronenblatt
General - Carrier
General - Carrier
Posts: 4822
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

Re: List of units in army lists?

Post by kronenblatt »

Paul59 wrote: Mon Jun 29, 2020 8:02 pm
kronenblatt wrote: Mon Jun 29, 2020 4:02 pm Is there anywhere (apart from the game itself) where the different units to choose from in the various army lists are are listed? If yes, where?

Otherwise, I've made a simple list in Excel that can be filtered and in which it's thus possible to compare army lists, with the minimum and potential number of units for different number of force points. You can also check in which army lists certain units are included. It's all based on ArmyList.xlsx and the kind input from RBS (see below).
rbodleyscott wrote: Sun Jun 28, 2020 4:10 pm

This.



To nearest integer.



Floor of 1, with floor of 2 for core types in ally contingents.

Code: Select all

				StartWorkString(1);
				PrintWorkStringLiteral("MIN_", 1);
				PrintWorkStringInt(num, 1);
				min = FromFileGetValue(file, army, GetWorkString(1));
				min = ((min * points) + 1000) / 2000; // scale based on 2000 point army

				StartWorkString(1);
				PrintWorkStringLiteral("MAX_", 1);
				PrintWorkStringInt(num, 1);
				max = FromFileGetValue(file, army, GetWorkString(1));
				
				unadjustedMax = max; // v1.5.10 WatG addition	
				
				if (max > 0)
				{
					max = ((max * points) + 1000) / 2000 ; // scale based on 2000 point army

					// v1.5.10 WatG addition - to allow more than one unit of core types if their overall numbers in the allied list are not huge
					if (ally == 1)
						{
							if (max < 2)
								{
									max = (((unadjustedMax * points * 190) / 100) + 1000) / 2000;
									if (max > 2)
										{
											max = 2;
										}
								}
						}
					// End v1.5.10 WatG addition							
					
					if (max < min)
					{
						max = min;
					}
					if (max < 1)
					{
						max = 1;
					}
				}
What is ArmyList.xlsx? Do you mean ArmyList.txt? That is where all the army list information for the game is held. It can be found in Field of Glory II/Core.

Here is an old post from Richard that explains how to read it:

viewtopic.php?f=492&t=79848
Yep, that's right: ArmyList.txt. Apologies for confusion. Anyway: I've compiled the information therein into a hopefully more accessible excel spreadsheet that can be filtered.
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
kronenblatt
General - Carrier
General - Carrier
Posts: 4822
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

Re: List of units in army lists?

Post by kronenblatt »

SLancaster wrote: Mon Jun 29, 2020 7:49 pm Good job. Does it work fully with allies? I see you have them but the core list changes as well depending on the allies.
Not fully, at least not yet. But possibly, if I could understand inter alia the following better:
1 Are only the core units of an ally available?
2 How and where is it distinguished which units are core and which aren't?

Because RBS spoke about core types in allies too.
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: List of units in army lists?

Post by rbodleyscott »

kronenblatt wrote: Mon Jun 29, 2020 8:12 pm
SLancaster wrote: Mon Jun 29, 2020 7:49 pm Good job. Does it work fully with allies? I see you have them but the core list changes as well depending on the allies.
Not fully, at least not yet. But possibly, if I could understand inter alia the following better:
1 Are only the core units of an ally available?
2 How and where is it distinguished which units are core and which aren't?

Because RBS spoke about core types in allies too.
It uses the usual scaling with allies getting 25% of the total points and main army getting 75% of the total points.

Then there is an adjustment to boost the more common types in the ally contingent to be allowed at least 2 units. This also scales, but as an example, in a 1200 point army, if the max of a unit in the allied army list was 6, the ally would (without the adjustment) only be allowed 1 unit, but with the adjustment they will be allowed 2. If the max in the allied list was 5 or less, they would only be allowed 1, even with the adjustment.
Richard Bodley Scott

Image
kronenblatt
General - Carrier
General - Carrier
Posts: 4822
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

Re: List of units in army lists?

Post by kronenblatt »

rbodleyscott wrote: Tue Jun 30, 2020 6:44 am
kronenblatt wrote: Mon Jun 29, 2020 8:12 pm
SLancaster wrote: Mon Jun 29, 2020 7:49 pm Good job. Does it work fully with allies? I see you have them but the core list changes as well depending on the allies.
Not fully, at least not yet. But possibly, if I could understand inter alia the following better:
1 Are only the core units of an ally available?
2 How and where is it distinguished which units are core and which aren't?

Because RBS spoke about core types in allies too.
It uses the usual scaling with allies getting 25% of the total points and main army getting 75% of the total points.

Then there is an adjustment to boost the more common types in the ally contingent to be allowed at least 2 units. This also scales, but as an example, in a 1200 point army, if the max of a unit in the allied army list was 6, the ally would (without the adjustment) only be allowed 1 unit, but with the adjustment they will be allowed 2. If the max in the allied list was 5 or less, they would only be allowed 1, even with the adjustment.
Thanks Richard. So all units in the ally army list are available to choose from (i.e., always at least 1 from each unit)? But those that are "common" (core?), i.e., with higher number in the ally army list; may be available in higher number too (potentially 2)?
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
SimonLancaster
Major - Jagdpanther
Major - Jagdpanther
Posts: 1059
Joined: Thu Dec 01, 2016 3:42 pm
Contact:

Re: List of units in army lists?

Post by SimonLancaster »

Also, with certain allies you lose out on a few units. Perhaps you get three lancers ordinarily but if with a certain ally you only get two including the ally list. I think this is true..
YouTube channel for Field of Glory 2: Ancients and Medieval.

https://www.youtube.com/@simonlancaster1815
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: List of units in army lists?

Post by rbodleyscott »

kronenblatt wrote: Tue Jun 30, 2020 7:26 am
rbodleyscott wrote: Tue Jun 30, 2020 6:44 am
kronenblatt wrote: Mon Jun 29, 2020 8:12 pm

Not fully, at least not yet. But possibly, if I could understand inter alia the following better:
1 Are only the core units of an ally available?
2 How and where is it distinguished which units are core and which aren't?

Because RBS spoke about core types in allies too.
It uses the usual scaling with allies getting 25% of the total points and main army getting 75% of the total points.

Then there is an adjustment to boost the more common types in the ally contingent to be allowed at least 2 units. This also scales, but as an example, in a 1200 point army, if the max of a unit in the allied army list was 6, the ally would (without the adjustment) only be allowed 1 unit, but with the adjustment they will be allowed 2. If the max in the allied list was 5 or less, they would only be allowed 1, even with the adjustment.
Thanks Richard. So all units in the ally army list are available to choose from (i.e., always at least 1 from each unit)? But those that are "common" (core?), i.e., with higher number in the ally army list; may be available in higher number too (potentially 2)?
Pretty much, although if the numbers in the allied list are high enough, there may be many more than 2.

Also if the unit has

NOT_ALLY_n

in the army list, it is excluded from ally contingents.

However, currently the only units this applies to are Praetorian Guard.
Richard Bodley Scott

Image
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: List of units in army lists?

Post by rbodleyscott »

SLancaster wrote: Tue Jun 30, 2020 7:38 am Also, with certain allies you lose out on a few units. Perhaps you get three lancers ordinarily but if with a certain ally you only get two including the ally list. I think this is true..
That applies to all armies with allies. It is because the main list is scaled to 75% of the total points.
Richard Bodley Scott

Image
kronenblatt
General - Carrier
General - Carrier
Posts: 4822
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

Re: List of units in army lists?

Post by kronenblatt »

Here's the latest version of the Excel file in question, also showing which allies an army list can have, but not taking ally units into consideration:

DOWNLOAD

The OPT column shows how many units in addition to the MINimum that are available. Have compared to some army lists in-game for different force points and they seem to be correctly calculated. (Although I found a discrepancy in one of the Achaemenid army lists, for a unit of which there was plentiful: should have been 18 but showed 14, or the other way around.)

Please let me know what you think. Thanks.
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
kronenblatt
General - Carrier
General - Carrier
Posts: 4822
Joined: Mon Jun 03, 2019 4:17 pm
Location: Stockholm, SWEDEN

Re: List of units in army lists?

Post by kronenblatt »

This updated spreadsheet now also calculates the number of units, if having an ally (it's in tab 'Army' whereas all army lists are in tab 'Armies'). It now seems to make correct calculations:

DOWNLOAD

So in tab 'Army', select an army in the dropdown list of cell B2, then (if you want to) an ally army in the dropdown list of cell B3 (empty cell B3 if you want no ally), and finally enter number of force points available to the army as a whole in cell K1 (K1:N1). The list of units available should then be presented in columns I to N of tab 'Army'.

Again, please let me all know what you think. Enjoy and thanks.
kronenblatt's campaign and tournament thread hub:

https://www.slitherine.com/forum/viewtopic.php?t=108643
Post Reply

Return to “Field of Glory II”