Page 1 of 1

Modding Div's

Posted: Fri Jun 22, 2007 4:09 pm
by Von Jeager
HI,

Can anyone tell me how to modify the number of divisions available in the game?

Thanks.

Posted: Fri Jun 22, 2007 5:49 pm
by Primasprit
Hi Von Jeager!

The script command to change the allowed number of divisions (since 1.05) is:
[font="Courier New"]SetCombiUnits = 0;0;48[/font]
which would allow 48 divisions. These value can be changed via events.
An example from the [font="Courier New"]1861 April Campaign.sct[/font]

Code: Select all

SelectFaction = $CSA
StartEvent = evt_nam_CSA_ForcePoolAdditionJune61|1|0|NULL|NULL|NULL|NULL

Conditions
  FixedDate = 1861/06/01

Actions
  SetCombiUnits = 0;0;6
  ChangeUnitPool = $uni_CSA_Bde1VA;1
  ChangeUnitPool = $uni_CSA_Bde2TN;1

[.....]
EndEvent


You can edit the event file directly or by changing the xls database file and converting it with the CSV-Splitter.
The allowed number of divisions for the scenario start (turn 1) are written in the scenario file. To change that I would recommend to change the values in the scenario xls file and create a new scenario.

Posted: Sun Jun 24, 2007 12:55 am
by Montbrun
I just went into the Scenario File (using Wordpad), and found the following strings (this example is from the Summer, 1862 Scenario):

Union:

The Union are those states which remained loyal to Lincoln and the Federal Government and did not secede. They are also known as the United States of America.
str1862Campaign2VC_USA
NULL
376|377|378|379|380|381|382|383|384|385|386|387|388|389|390|391|392|393|394|395|396|397|398|0|
4|4|2|1|2|3|2|2|2|3|1|2|2|2|3|2|1|1|1|1|1|1|1|1|
20|20|20|20|20|20|20|20|20|20|20|20|20|20|20|20|20|20|20|20|20|10|50|75|
147|5|111|5|572|5|716|7|580|5|294|5|945|5|819|2|644|3|159|1|681|5|72|3|5|3|274|3|526|2|
StrWin|2|txt_Win|scores_USA_victory.png|96|
StrLose|2|txt_Loose|scores_USA_defeat.png|95|
StrWinVP|2|txt_WinVP|scores_CMN_Stalemate.png|96|
StrLoseVP|2|txt_LooseVP|scores_CMN_Stalemate.png|95|
1096|4|1508|4|1509|4|
NULL
|50|evt_nam_ActivateKentuckyUSA
1506|4|
NULL
NULL
NULL
184|24|185|16|187|16|188|12|191|12|192|12|193|4|194|8|195|8|196|4|198|6|199|6|200|4|201|2|202|12|203|12|207|6|209|8|210|24|212|20|213|12|214|10|215|16|216|8|217|6|219|2|220|4|221|6|222|12|223|16|225|6|235|12|236|12|237|12|238|18|239|8|240|6|241|10|242|3|243|4|244|6|245|6|246|6|247|12|249|4|250|8|251|8|252|6|255|6|256|4|257|4|258|4|259|3|260|3|261|3|262|4|263|24|264|16|265|12|266|12|267|12|268|12|269|6|270|6|271|24|272|24|273|24|274|12|275|12|276|6|278|12|279|12|280|12|281|12|282|12|283|6|284|6|285|12|287|6|295|12|296|12|298|12|299|12|301|1|302|12|303|12|304|12|305|12|307|24|308|24|309|24|312|32|311|16|313|8|314|16|315|16|316|16|317|16|318|8|319|8|320|10|321|16|322|16|323|16|324|16|325|16|330|4|331|8|332|8|333|8|334|8|335|8|336|5|337|24|338|24|339|48|340|48|341|60|342|60|349|24|350|24|351|96|352|96|343|7|344|15|345|1|346|2|347|12|348|8|354|20|355|24|356|8|357|8|358|8|359|15|360|15|361|15|362|15|363|12|364|8|365|4|366|8|367|15|368|15|369|20|373|12|374|8|371|15|370|12|372|6|
NULL
5102|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5101|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5100|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5103|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5000|1&12&mdl_CSA_Mil5.png&strFreeVolunteersTitle&strFreeVolunteers&strFreeVolunteersTool&-50&0&0&0&0&0&0&0&0&0&0&&&&|5001|1&12&mdl_CSA_Mil5.png&strPaidVolunteersTitle&strPaidVolunteers&strPaidVolunteersTool&-20&0&0&1&0&0&0&0&0&0&0&&&&|5002|1&12&mdl_CSA_Mil5.png&strPaidVolunteersTitle&strPaidVolunteers&strPaidVolunteersTool&5&0&0&2&0&1&0&0&0&0&0&&&&|5003|1&12&mdl_CSA_Mil5.png&strPaidVolunteersTitle&strPaidVolunteers&strPaidVolunteersTool&25&0&0&3&0&2&0&0&0&0&0&&&&|5004|1&24&mdl_CSA_Mil2.png&strPartialMobilizationTitle&strPartialMobilization&strPartialMobilizationTool&50&0&0&0&0&4&25&0&0&0&0&&&&|5005|1&24&mdl_CSA_Mil2.png&strFullMobilizationTitle&strFullMobilization&strFullMobilizationTool&100&0&0&0&0&5&75&0&0&0&0&&&&|5008|1&12&WarBond.png&strWarBondsLowTitle&strWarBondsLow&strWarBondsLowTool&450&200&0&0&0&0&25&0&0&0&0&&&&|5009|1&12&WarBond.png&strWarBondsMedTitle&strWarBondsMed&strWarBondsMedTool&300&250&0&0&1&0&50&0&0&0&0&&&&|5010|1&12&WarBond.png&strWarBondsHighTitle&strWarBondsHigh&strWarBondsHighTool&150&325&0&0&2&0&75&0&0&0&0&&&&|5011|1&1&WarBond.png&strpaperMoneyTitle&strpaperMoney&strPaperMoneyTool&200&250&0&0&4&2&0&0&0&0&0&&&&|5012|1&12&WarBond.png&strTaxesLowTitle&strTaxesLow&strTaxesLowTool&400&200&0&0&0&1&0&0&0&0&0&&&&|5013|1&12&WarBond.png&strTaxesMedTitle&strTaxesMed&strTaxesMedTool&275&250&0&0&1&1&0&0&0&0&0&&&&|5014|1&12&WarBond.png&strTaxesHighTitle&strTaxesHigh&strTaxesHighTool&125&350&0&0&1&2&0&0&0&0&0&&&&|5015|1&0&&&&&0&0&0&0&0&0&0&0&0&0&0&&&&|5016|1&0&&&&&0&0&0&0&0&0&0&0&0&0&0&&&&|5017|1&12&MoveCapital.png&strMoveCapitalTitle&strMoveCapitalOption&strMoveCapitalTool&0&0&0&100&0&5&50&0&0&0&0&&&&|5018|1&12&MoveCapital.png&strMoveCapitalTitle&strMoveCapitalOption&strMoveCapitalTool&0&0&0&100&0&5&75&0&0&0&0&&&&|5019|1&12&MoveCapital.png&strMoveCapitalTitle&strMoveCapitalOption&strMoveCapitalTool&0&0&0&100&0&5&100&0&0&0&0&&&&|5020|1&12&CompleteBlockade.png&strForeignPressureUSATitle&strForeignPressureUSA&strForeignPressureUSATool&55&15&15&-50&0&-1&-15&0&0&0&0&strForeignPressureUSABackfire&strForeignPressureUSASuccessNotifyCSA&strForeignPressureUSABackFireNotifyCSA&|5021|1&12&TradeConcession.png&strForeignEcoGiftUSATitle&strForeignEcoGiftUSA&strForeignEcoGiftUSATool&80&6&2&-50&0&4&50&0&0&0&0&strGiftUSABackfire&strGiftUSASuccessNotifyCSA&strGiftUSABackFireNotifyCSA&|5022|1&12&LandConcession.png&strForeignLandGiftUSATitle&strForeignLandGiftUSA&strForeignLandGiftUSATool&70&12&2&10&0&7&100&0&0&0&0&strGiftUSABackfire&strGiftUSASuccessNotifyCSA&strGiftUSABackFireNotifyCSA&|
NULL
752|751|753
401|15|35|50
111|5|
0|5|11|4|12|8|22|10|23|50|32|5|33|5|34|3|42|15|52|15|62|5|63|10|64|5|72|10|73|1|74|2|75|1|76|1|92|8|93|20|95|8|
[color="Red"]0|0|48 > I change this to "64"[/color]
NULL
NULL
NULL

Connfederate:

The Confederacy is the name given to the eleven southern states that have seceded from the Union and formed their own nation and government. They are also known as the Confederate States of America.
str1862Campaign2VC_CSA
NULL
159|160|161|162|163|164|165|166|167|168|169|170|171|173|174|175|176|
3|2|2|3|1|3|3|1|4|2|3|2|4|1|1|1|1|
20|20|20|20|20|20|20|30|20|20|20|20|20|50|50|50|50|
147|5|111|5|572|5|716|7|580|5|294|5|945|5|819|2|644|3|159|1|681|5|72|3|5|3|274|3|526|2|
StrWin|2|txt_Win|scores_CSA_victory.png|96|
StrLose|2|txt_Loose|scores_CSA_defeat.png|95|
StrWinVP|2|txt_WinVP|scores_CMN_Stalemate.png|96|
StrLoseVP|2|txt_LooseVP|scores_CMN_Stalemate.png|95|
1081|2|1082|2|1072|2|1073|2|1074|2|1075|2|1076|2|1077|2|1078|2|1079|2|1080|2|1086|2|1087|2|1088|2|1098|2|1090|6|1099|3|1089|3|1097|5|
NULL
|50|evt_nam_ActivateKentuckyCSA
NULL
1100|6|1101|6|
NULL
158|1|159|5|180|1|191|1|192|1|227|3|228|3|291|6|351|1|358|1|367|1|374|1|0|3|667|1|
0|6|1|8|4|6|5|4|6|4|7|4|8|3|9|5|10|5|11|3|12|3|13|8|15|10|16|5|17|4|19|10|20|6|21|3|22|5|23|8|24|3|26|2|27|3|28|5|29|4|30|4|35|4|36|6|37|6|38|6|39|6|40|6|41|6|42|6|43|6|44|6|45|6|46|6|47|1|49|6|50|6|51|6|52|6|53|6|59|3|60|3|61|2|62|2|63|2|64|8|65|6|66|4|67|12|68|10|69|12|70|8|71|4|72|12|73|12|74|10|75|4|77|2|78|8|79|6|81|4|82|4|84|4|85|4|86|4|87|6|88|6|89|6|91|1|92|6|93|6|94|6|95|4|97|12|98|10|99|8|100|6|101|10|102|10|103|8|104|6|105|6|106|6|108|3|109|12|110|12|111|12|121|6|122|18|125|12|126|36|129|12|130|36|137|6|138|6|139|6|140|6|133|5|134|5|135|8|136|5|146|10|147|7|148|4|149|6|150|4|151|7|152|9|153|5|154|8|155|5|156|12|157|4|158|12|172|6|
NULL
5102|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5101|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5100|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5103|1&0&None.png&strNone&strNone&strNone&0&0&0&0&0&0&0&0&0&0&0&&&&|5000|1&12&mdl_CSA_Mil5.png&strFreeVolunteersTitle&strFreeVolunteers&strFreeVolunteersTool&-50&0&0&0&0&0&0&0&0&0&0&&&&|5001|1&12&mdl_CSA_Mil5.png&strPaidVolunteersTitle&strPaidVolunteers&strPaidVolunteersTool&-20&0&0&1&0&0&0&0&0&0&0&&&&|5002|1&12&mdl_CSA_Mil5.png&strPaidVolunteersTitle&strPaidVolunteers&strPaidVolunteersTool&5&0&0&2&0&1&0&0&0&0&0&&&&|5003|1&12&mdl_CSA_Mil5.png&strPaidVolunteersTitle&strPaidVolunteers&strPaidVolunteersTool&25&0&0&3&0&2&0&0&0&0&0&&&&|5004|1&24&mdl_CSA_Mil2.png&strPartialMobilizationTitle&strPartialMobilization&strPartialMobilizationTool&50&0&0&0&0&3&35&0&0&0&0&&&&|5005|1&24&mdl_CSA_Mil2.png&strFullMobilizationTitle&strFullMobilization&strFullMobilizationTool&100&0&0&0&0&4&70&0&0&0&0&&&&|5008|1&12&WarBond.png&strWarBondsLowTitle&strWarBondsLow&strWarBondsLowTool&450&200&0&0&0&0&25&0&0&0&0&&&&|5009|1&12&WarBond.png&strWarBondsMedTitle&strWarBondsMed&strWarBondsMedTool&300&250&0&0&1&0&50&0&0&0&0&&&&|5010|1&12&WarBond.png&strWarBondsHighTitle&strWarBondsHigh&strWarBondsHighTool&150&325&0&0&2&0&75&0&0&0&0&&&&|5011|1&1&WarBond.png&strpaperMoneyTitle&strpaperMoney&strPaperMoneyTool&200&250&0&0&4&1&0&0&0&0&0&&&&|5012|1&12&WarBond.png&strTaxesLowTitle&strTaxesLow&strTaxesLowTool&400&200&0&0&0&1&0&0&0&0&0&&&&|5013|1&12&WarBond.png&strTaxesMedTitle&strTaxesMed&strTaxesMedTool&275&250&0&0&1&1&0&0&0&0&0&&&&|5014|1&12&WarBond.png&strTaxesHighTitle&strTaxesHigh&strTaxesHighTool&125&325&0&0&2&1&0&0&0&0&0&&&&|5015|1&0&&&&&0&0&0&0&0&0&0&0&0&0&0&&&&|5016|1&0&&&&&0&0&0&0&0&0&0&0&0&0&0&&&&|5017|1&12&MoveCapital.png&strMoveCapitalTitle&strMoveCapitalOption&strMoveCapitalTool&0&0&0&50&0&2&25&0&0&0&0&&&&|5018|1&12&MoveCapital.png&strMoveCapitalTitle&strMoveCapitalOption&strMoveCapitalTool&0&0&0&50&0&2&35&0&0&0&0&&&&|5019|1&12&MoveCapital.png&strMoveCapitalTitle&strMoveCapitalOption&strMoveCapitalTool&0&0&0&50&0&2&50&0&0&0&0&&&&|5020|1&12&CottonEmbargo.png&strForeignPressureCSATitle&strForeignPressureCSA&strForeignPressureCSATool&65&22&30&150&0&-3&-5&0&0&0&0&strForeignPressureCSABackfire&strForeignPressureCSASuccessNotifyUSA&strForeignPressureCSABackFireNotifyUSA&|5021|1&12&TradeConcession.png&strForeignEcoGiftCSATitle&strForeignEcoGiftCSA&strForeignEcoGiftCSATool&90&6&2&-50&0&2&25&0&0&0&0&strGiftCSABackfire&strGiftCSASuccessNotifyUSA&strGiftCSABackFireNotifyUSA&|5022|1&12&LandConcession.png&strForeignLandGiftCSATitle&strForeignLandGiftCSA&strForeignLandGiftCSATool&70&12&2&10&0&5&25&0&0&0&0&strGiftCSABackfire&strGiftCSASuccessNotifyUSA&strGiftCSABackFireNotifyUSA&|
NULL
752|751|753
177|15|35|50
147|5|
0|5|11|4|12|8|22|7|23|50|32|5|33|4|34|6|42|15|52|15|62|8|63|6|64|3|72|6|73|1|74|1|92|5|93|7|94|15|95|1|96|1|
[color="Red"]0|0|24 > I change this number to "36"[/color]
NULL
NULL
NULL

Posted: Sun Jun 24, 2007 10:05 am
by Primasprit
Hi Montbrun!

Yes that works, but isn't it rather inconvenient to change it like that if you can also change it in the 'source code' of the scenario? :sourcil:
Take also care that in the April 1861 campaign the Division limits are changed by events, so changing them in the scenario file alone will not have the desired effect.

Cheers
Norbert

Posted: Wed Jul 18, 2007 12:23 am
by Gray_Lensman
deleted