johandenver2
Lieutenant
Posts: 101
Joined: Mon May 09, 2016 9:46 pm

Questions about units & types

Tue May 10, 2016 6:19 pm

Right, I'm thinking I'm going to try to mod this game to my liking.
I've looked at the csv splitter but that seems totally overwhelming.
Currently I'm browsing through the different files trying to sort out how things work.
The problem is I can't find any sort of documentation on this so I'd be deeply grateful for any sort of help I can get.

Is there anywhere I can find some sort of documentation about the different model types & family types?
For example what's the difference between $mdl_USA_Inf1|1 & $mdl_USA_Inf5|1?
What's the difference between $famLeader|1 & $famLine|2?

Can someone explain the difference between the units listed under "CustomNames=" in the model files and units listed under "CustomNames=" in unit files?
Some units exists in both places but far from all and I don't get it :-)

Also, I'm looking for similar information about the difference brigade types.
There seem to be 5 different brigade types for New York infantry alone.
Is there a way to know the difference between 242USAInfantry Bde (NY) & 268USAInfantry Bde (NY)?

Final question, can the force pool be modded, and if so, how?

johandenver2
Lieutenant
Posts: 101
Joined: Mon May 09, 2016 9:46 pm

Sun May 15, 2016 2:17 pm

Below is kind of what I was after. I made a list of the different models myself :-)

ALIAS Faction Type Detail Size
$mdl_CSA_Art0 CSA Artillery - Light Horse artillery 72
$mdl_CSA_Art1 CSA Artillery - Light 6 pounder 72
$mdl_CSA_Art2 CSA Artillery - Field 12 pounder 72
$mdl_CSA_Art3 CSA Artillery - Field 10 parrott 72
$mdl_CSA_Art4 CSA Artillery - Field 20 parrott 72
$mdl_CSA_Art5 CSA Artillery - Field Columbiad 72
$mdl_CSA_Bal CSA Service asset Balloon company 50
$mdl_CSA_Bat CSA Navy - Transport Riverine transport 75
$mdl_CSA_Brg CSA Navy - Raider ship Brig 80
$mdl_CSA_Btx CSA Navy - Transport Bateaux 18
$mdl_CSA_Bty CSA Artillery - Field Fort batteries 120
$mdl_CSA_Cav1 CSA Cavalry Early cavalry 600
$mdl_CSA_Cav2 CSA Cavalry Late cavalry 600
$mdl_CSA_Cav3 CSA Cavalry Conscripts cavalry 600
$mdl_CSA_Cav4 CSA Cavalry Raiders 90
$mdl_CSA_Cav5 CSA Cavalry Bushwhackers 90
$mdl_CSA_Cav6 CSA Cavalry Elite cavalry 600
$mdl_CSA_Civ CSA Infantry Civilians 450
$mdl_CSA_Cld CSA Navy - Light warship Cottonclad 60
$mdl_CSA_Coa CSA Artillery - Heavy Coastal Artillery 180
$mdl_CSA_Eng CSA Engineer Engineer company 75
$mdl_CSA_Frg CSA Navy - Light warship Frigate 120
$mdl_CSA_Ftb CSA Navy - Transport Flatboat 12
$mdl_CSA_Gat2 CSA Artillery - Light Williams guns 120
$mdl_CSA_Gbt CSA Navy - Light warship Gunboat 48
$mdl_CSA_HQSup CSA Service asset HQ Support 250
$mdl_CSA_Inf1 CSA Infantry Line inf 600
$mdl_CSA_Inf10 CSA Infantry Line fortress troops 600
$mdl_CSA_Inf11 CSA Infantry Mounted 600
$mdl_CSA_Inf12 CSA Infantry Elite (mountain fgt, supply) 600
$mdl_CSA_Inf2 CSA Infantry Line inf 600
$mdl_CSA_Inf3 CSA Infantry Line inf 600
$mdl_CSA_Inf4 CSA Infantry Line inf 600
$mdl_CSA_Inf5 CSA Infantry Line conscripts 600
$mdl_CSA_Inf6 CSA Infantry Line conscripts 600
$mdl_CSA_Inf7 CSA Infantry Line conscripts 600
$mdl_CSA_Inf8 CSA Infantry Elite inf + sharpshooters 600
$mdl_CSA_Inf9 CSA Infantry Elite (strong morale) 600
$mdl_CSA_Iro CSA Navy - Heavy Warship Ironclad 180
$mdl_CSA_Lit CSA Infantry Light infantry 450
$mdl_CSA_Lit2 CSA Infantry Skirmischer 120
$mdl_CSA_Mar CSA Infantry Marines 600
$mdl_CSA_Med CSA Service asset Medical co 75
$mdl_CSA_Mer CSA Supplies Merchandise goods 50
$mdl_CSA_Mrt CSA Navy - Light warship Mortarboat 15
$mdl_CSA_MtdVol CSA Militia Mounted volunteers 450
$mdl_CSA_Nvg CSA Engineer Naval engineers 50
$mdl_CSA_Par CSA Infantry Bushwhackers 60
$mdl_CSA_Par2 CSA Infantry Partisans 60
$mdl_CSA_Pio CSA Engineer Pioneers 250
$mdl_CSA_Ptn CSA Service asset Pontoon bridges 150
$mdl_CSA_Ran CSA Cavalry Rangers 150
$mdl_CSA_Reb1 CSA Militia Volunteer infantry 450
$mdl_CSA_Reb10 CSA Militia State infantry 450
$mdl_CSA_Reb11 CSA Militia State infantry 450
$mdl_CSA_Reb12 CSA Militia State infantry 450
$mdl_CSA_Reb13 CSA Militia State infantry 450
$mdl_CSA_Reb14 CSA Militia State infantry 450
$mdl_CSA_Reb2 CSA Militia Volunteer infantry 450
$mdl_CSA_Reb3 CSA Militia Volunteer infantry 450
$mdl_CSA_Reb4 CSA Militia Volunteer infantry 450
$mdl_CSA_Reb5 CSA Militia Volunteer infantry 450
$mdl_CSA_Reb6 CSA Militia Volunteer infantry 450
$mdl_CSA_Reb7 CSA Militia Volunteer infantry 450
$mdl_CSA_Reb8 CSA Militia State infantry 450
$mdl_CSA_Reb9 CSA Militia State infantry 450
$mdl_CSA_RivIro CSA Navy - Heavy Warship River Ironclad 180
$mdl_CSA_Shp CSA Infantry Sharpshooters 150
$mdl_CSA_Sie CSA Artillery - Heavy Siege artillery 90
$mdl_CSA_Sig CSA Service asset Signal company 75
$mdl_CSA_Sla CSA Supplies Slaves 1000
$mdl_CSA_Slp CSA Navy - Light warship Sloop 96
$mdl_CSA_StF CSA Navy - Heavy Warship Steam frigate 160
$mdl_CSA_StSlp CSA Navy - Light warship Steam sloop 120
$mdl_CSA_Sup CSA Supplies Supply train 300
$mdl_CSA_Tra CSA Navy - Transport Transport ship 80
$mdl_CSA_Wsu CSA Supplies War supplies 50
$mdl_CSA_zou1 CSA Infantry Line Zouaves 600
$mdl_CSA_zou2 CSA Infantry Line Zouaves 600
$mdl_CSA_Zou3 CSA Infantry Line Zouaves + Sharpshooters 600
$mdl_USA_ArF USA Navy - Heavy Warship Armored frigate 240
$mdl_USA_Art0 USA Artillery - Light Horse artillery 108
$mdl_USA_Art1 USA Artillery - Light 6 pounder 108
$mdl_USA_Art2 USA Artillery - Field 12 pounder 108
$mdl_USA_Art3 USA Artillery - Field 10 parrott 108
$mdl_USA_Art4 USA Artillery - Field 20 parrott 108
$mdl_USA_Art5 USA Artillery - Field Rodman 108
$mdl_USA_Bal USA Service asset Balloon company 50
$mdl_USA_Bat USA Navy - Transport Riverine transport 75
$mdl_USA_Blo USA Navy - Light warship Blockade ship 100
$mdl_USA_Brg USA Navy - Light warship Brig 80
$mdl_USA_Btx USA Navy - Transport Bateaux 18
$mdl_USA_Bty USA Artillery - Field Fort batteries 180
$mdl_USA_Cav1 USA Cavalry Early cavalry 600
$mdl_USA_Cav2 USA Cavalry Late cavalry 600
$mdl_USA_Cav3 USA Cavalry Conscripts cavalry 600
$mdl_USA_Cav4 USA Cavalry Raiders 90
$mdl_USA_Civ USA Infantry Civilians 450
$mdl_USA_Cld USA Navy - Light warship Timberclad 60
$mdl_USA_Coa USA Artillery - Heavy Coastal Artillery 270
$mdl_USA_Eng USA Engineer Engineer company 75
$mdl_USA_Frg USA Navy - Light warship Frigate 120
$mdl_USA_Ftb USA Navy - Transport Flatboat 12
$mdl_USA_Gat USA Artillery - Light Gatling guns 160
$mdl_USA_Gat2 USA Artillery - Light Coffee Mills guns 120
$mdl_USA_Gbt USA Navy - Light warship Gunboat 48
$mdl_USA_HQSup USA Service asset HQ Support 250
$mdl_USA_Inf0 USA Infantry Line inf 750
$mdl_USA_Inf1 USA Infantry Line inf 600
$mdl_USA_Inf10 USA Infantry Mounted 600
$mdl_USA_Inf11 USA Infantry Line fortress troops 600
$mdl_USA_Inf2 USA Infantry Line inf 600
$mdl_USA_Inf3 USA Infantry Line inf 600
$mdl_USA_Inf4 USA Infantry Line inf 600
$mdl_USA_Inf5 USA Infantry Line conscripts 600
$mdl_USA_Inf6 USA Infantry Line conscripts 600
$mdl_USA_Inf7 USA Infantry Line colored 600
$mdl_USA_Inf8 USA Infantry Line colored 600
$mdl_USA_Inf9 USA Infantry Elite (strong morale) 600
$mdl_USA_Jay USA Infantry Unionists raiders 90
$mdl_USA_Lit USA Infantry Light infantry 450
$mdl_USA_Lit2 USA Infantry Skirmischer 120
$mdl_USA_Mar USA Infantry Marines 600
$mdl_USA_Mch USA Navy - Transport Merchantship 50
$mdl_USA_Med USA Service asset Medical co 75
$mdl_USA_Mer USA Supplies Merchandise goods 50
$mdl_USA_Mil1 USA Militia Volunteer infantry 450
$mdl_USA_Mil10 USA Militia Militia 450
$mdl_USA_Mil2 USA Militia Volunteer infantry (black) 450
$mdl_USA_Mil3 USA Militia Volunteer infantry 450
$mdl_USA_Mil4 USA Militia Volunteer infantry 450
$mdl_USA_Mil5 USA Militia Volunteer infantry 450
$mdl_USA_Mil6 USA Militia State infantry 450
$mdl_USA_Mil7 USA Militia State infantry (black) 450
$mdl_USA_Mil8 USA Militia Militia 450
$mdl_USA_Mil9 USA Militia Militia 450
$mdl_USA_Mon USA Navy - Heavy Warship Monitor 180
$mdl_USA_Mon2 USA Navy - Heavy Warship Ironclad 180
$mdl_USA_Mrt USA Navy - Light warship Mortarboat 15
$mdl_USA_MtdVol USA Militia Mounted volunteers 450
$mdl_USA_Nvg USA Engineer Naval engineers 50
$mdl_USA_Par USA Infantry Guerilla raiders 60
$mdl_USA_Pio USA Engineer Pioneers 250
$mdl_USA_Ptn USA Service asset Pontoon bridges 150
$mdl_USA_Ran USA Cavalry Rangers raiders 150
$mdl_USA_RivIro USA Navy - Heavy Warship River Ironclad 180
$mdl_USA_Sai USA Infantry Sailors 600
$mdl_USA_Shp1 USA Infantry Sharpshooters 150
$mdl_USA_Shp2 USA Infantry Sharpshooters 150
$mdl_USA_Sie USA Artillery - Heavy Siege artillery 150
$mdl_USA_Sig USA Service asset Signal company 75
$mdl_USA_Sla USA Infantry Contraband 200
$mdl_USA_Slp USA Navy - Light warship Sloop 96
$mdl_USA_StF USA Navy - Heavy Warship Steam frigate 160
$mdl_USA_StSlp USA Navy - Light warship Steam sloop 120
$mdl_USA_Sup USA Supplies Supply train 375
$mdl_USA_Tra USA Navy - Transport Transport ship 80
$mdl_USA_Wsu USA Supplies War supplies 50
$mdl_USA_Zou1 USA Infantry Line Zouaves 600
$mdl_USA_Zou2 USA Infantry Line Zouaves 600

grimjaw
General
Posts: 506
Joined: Wed Feb 09, 2011 5:38 am
Location: Arkansas

Mon May 16, 2016 12:07 am

johandenver2, the database contains all the information you listed in your second post and is the best official reference. You should be able to find the current database linked from the stickied post on the CW2 Mods forum. Don't let the word "database" scare you off, it's just an Excel spreadsheet.

Forgive me if I'm telling you something you already know or understand. Also, there is probably a different, more correct way of explaining what I'm about to, but I'll try to help anyway. The way I think of it, the model files are the elements that comprise the building blocks. The unit files reference the model files, and without at least one valid model a unit file doesn't work. A unit file can refer to several models (I don't know what limits there are, if any). Models do not refer to units.

The models you referenced were created to separate different types (elements) of line infantry. Some models have an upgrade path that references yet another model, and sometimes even a 3rd model upgrade. I haven't seen a chart that shows the progression for each model. Anyway, the stats between different types of models of similar types (say, line infantry) might differ slightly, and that's how the game keeps track of it.

The famleader, famline values are the way the game classifies the family of model. Family is what the game uses to decide build/replacement cost. The numbers in the unit file (I'm assuming that is what you were referencing) next to the family compute the number and type of families used by the unit, and links them to the model. I had an understanding of famleader, which is a little different, but it's been awhile. The families will (usually) correspond to the types of models referenced by the unit.

"Customnames=", a developer or possibly a beta tester could probably tell you more officially, but I *think* the unit file custom name will take precedence. It's been awhile since I messed with the game files so I can't be sure. But unit files taking precedence makes the most sense, since the same model files can be referred to multiple times by different unit files.

The brigades can be all over the map. One NY brigade might have one conscript element, one regular line infantry element, and one light artillery element. Another NY brigade only differs in that it has two regular line infantry instead of mixed conscript/regular.

The force pool: yes it can be modded, but it's usually done through scripting and event files. I think the scenario and event files will override the values that are in the unit(?) files.

I hope this helps somewhat.

-jm

johandenver2
Lieutenant
Posts: 101
Joined: Mon May 09, 2016 9:46 pm

Mon May 16, 2016 8:02 am

Hi grimjaw,

Thanks for the excellent answer, this certainly helps me understand how the game works a little better.
I'm not really overwhelmed by the excelfile itself but rather the splitter and how that is supposed to work.
What documentation I can find seems very generic and not very clear.

The numbers I'm referencing are actually the troop sizes of the different types, how many men are in each unit.
Basically I wanted to know which units are companies, regiments, brigades or any other size.

I'm still not really sure what the number 4 after $famLine| stands for.
Is it the max number of elements of this type that I'm able to put into the unit (when combining units in the game)?
ModelType0 = $mdl_USA_Inf1|1
ModelType1 = $mdl_USA_Inf5|4
ModelType2 = $mdl_CMN_Art1Exp|1
FamilyType0 = $famLeader|1
FamilyType1 = $famLine|4
FamilyType2 = $famLightArty|1

User avatar
JacquesDeLalaing
Colonel
Posts: 344
Joined: Tue Mar 09, 2010 11:05 pm
Location: Vienna (Austria)

Mon May 16, 2016 10:27 am

Afaik:

ModelType0-x = "model-alias"|"number"

This determines which ("model alias") and how many ("number") elements/subunits the unit contains when you use it in a scenario set-up. You can look up the model-alias in aliases/mdl_Alias where you can find the number of the respective model-file in GameData/models.

FamilyType0-x = "family alias"

This is not clear to me either. Obviously, it tells the game about the families of the models mentioned above. However, the model-files also have a "family"-entry. Also, I don't quite know if somehow the games need to consider the "family" of a unit (instead of a model) and therefore checks what the most prevlent model-family within that unit is? But that's pure speculation.
[CENTER][color="#A52A2A"] S I L E S I A I N R U P T A[/color]
- a work-in-progress mod for Rise of Prussia - [/CENTER]

grimjaw
General
Posts: 506
Joined: Wed Feb 09, 2011 5:38 am
Location: Arkansas

Mon May 16, 2016 2:01 pm

johandenver2, as I understand it, I'll explain a specific example. Below is taken from the unit file for UID 5 from the base game. My notes are in italics.

ModelType0 = $mdl_CSA_Inf1|2 Unit has two elements of type mdl_CSA_inf1
ModelType1 = $mdl_CSA_Inf6|2 Unit has two elements of type mdl_CSA_Inf6
ModelType2 = $mdl_CMN_Art1|1 Unit has one element of type mdl_CMN_Art1
ModelType3 = $mdl_CSA_Cav1|1 Unit has one element of type mdl_CSA_Cav1
FamilyType0 = $famLeader|1 There is an explanation for this line, but I am uncertain of it
FamilyType1 = $famLine|4 Unit has four elements of family famLine
FamilyType2 = $famCavalry|1 Unit has one element of family famCavalry
FamilyType3 = $famLightArty|1 Unit has one element of family famLightArty

Where my understanding breaks down is how the game knows to link the unit's element for mdl_CSA_Inf6 to famLine, and so on. There's already a value for famLine in the model file for mdl_CSA_Inf6, so it could be drawing on that. The family types listed in a unit file might be solely for build cost calculations. I haven't tried to experiment with it, but you could test it by coming up with some wacky family numbers for a unit, like FamilyType1 = $famLine|100. It may be that that the cost for a unit is determined by the family type, but when a replacement for a unit's element is required it draws on the model file values for the family chit required. Someone will know, but I do not.

Irrelevant to your question but good to know for future reference, the alias names (like mdl_CMN_Art1, etc) resolve to numbers that are set at the alias creation. When a scenario is created the game engine will take all those aliases and resolve them to their numbers. If you look at some of the compiled game files (I don't mean the base engine, but the files it uses for the various scenarios) you'll see those numbers instead of the alias names. Makes for smaller game files on disk.

johandenver2
Lieutenant
Posts: 101
Joined: Mon May 09, 2016 9:46 pm

Mon May 16, 2016 3:11 pm

Great, thanks a lot grimjaw. Now it makes a little more sense to me as well.

FamilyType0 = $famLeader|1 There is an explanation for this line, but I am uncertain of it

My guess would be that if I add this line to a brigade it can be merged with a unit in the family "Leader". But that is just a guess, I'm hoping that's the way it works :-)

grimjaw
General
Posts: 506
Joined: Wed Feb 09, 2011 5:38 am
Location: Arkansas

Mon May 16, 2016 4:12 pm

So far as I know the only elements with family type leader are leaders, so generals/admirals. While they can be combined into a division, they can't be combined with other famLeader elements or any other types into non-division brigades. For a unit to exist it doesn't require FamilyType0 = $famLeader|X (where X is some number). There are some units that don't contain that line; fort garrison units come to mind.

User avatar
JacquesDeLalaing
Colonel
Posts: 344
Joined: Tue Mar 09, 2010 11:05 pm
Location: Vienna (Austria)

Mon May 16, 2016 4:38 pm

One quick thought: Could it be that this information is used for the order of units in the user interface unit-tab at the bottom of the screen? Something along the line: leaders > combined units/bigades > infantry > cavalry > artillery > support? The units get sorted from left to right according to size in elements and element-type. It's the only reason I can see why there needs to be info on subunit-family-types on the unit-level.
[CENTER][color="#A52A2A"] S I L E S I A I N R U P T A[/color]

- a work-in-progress mod for Rise of Prussia - [/CENTER]

Return to “CW2 Mods”

Who is online

Users browsing this forum: No registered users and 14 guests