All roads lead to Rome, but you guys are getting stuck in the ditch
Most of everything stated has been correct, but to get this to work you have to pick one method and one method only.
First off Poorlaggedman, if the example in the first post is a True™ Cut-n-Paste™ copy of your event then the first issue you have is in the event-text-name: "evt_txt_CSA_Commissione rs186 1". You have 2 spaces imbedded in it. This will cause the event to miss-fire. First check if those spaces are really embedded in the event-text-name.
Then check the ScriptPreParse.txt and ScriptPostParse.txt files in your
..\AGEod's American Civil War\ACW\Scripts
directory. Search for the event name "MaxDivisionsAllowedCSA" and check if anything is reported.
Next, check the ScriptReportXXXX.txt file in the same directory for the last turn you executed -- the XXXX is the game-turn-number.
There are two ways you can determin this file's name.
Method 1.
If you know the date and time of the last turn execution, look for the file with that date and time. You can look at your ..\Saves\{game_name}\{game_name}.hst file of the game in question. That should have nearly the exact date/time.
If that doesn't work for you, use Method 2.
Method 2.
Download and open the attached PDF file; it contains a list of dates and their corresponding turn-numbers.
Load the game in question and check the date of the current turn, eg 63 Sep, Early. Look for that date on the table I attached and locate the corresponding turn-number. 63 Sep, Early is turn-number 2729.
Since we are looking for the turn-number of the last executed turn, go up one on the table. In this example it would be turn-number 2728.
Now look in ..\AGEod's American Civil War\ACW\Scripts for the corresponding ScriptReportXXXX.txt, where "XXXX" is the turn-number.
Check the last couple of lines of the file to see how many errors have been counted.
Now search for the script name "MaxDivisionsAllowedCSA" and note what is says about the execution of that script. Now you should be clued into why it don't work.
[HR][/HR]
Now that that has be taken care of, forget all of it, edit your "CSA event.sct" file and delete that event, because there is a simpler solution
In wise anticipation an event has been included in Balances.sct that will fulfill your needs. It's the last event in that file and has the name "evt_nam_USA_MODDivisionFormationUnlimited". Don't worry that it's a USA event, because it still modifies the division limit for both faction.
The MinDate for this event is 1861/10/16, which from my understanding is already passed. This means that the event has already fire numerous times. The catch is that it is programmed to fizzle. That is that it's execution-count is set to 0 - the first number following the event name:
StartEvent = evt_nam_USA_MODDivisionFormationUnlimited|0|0|NULL|NULL|NULL|NULL
This means that the event will successfully fire, but it's actions will not be executed.
So the first thing you do is edit this, changing the first 0 to a 1 so that it looks like this:
StartEvent = evt_nam_USA_MODDivisionFormationUnlimited|1|0|NULL|NULL|NULL|NULL
Now, your event is primed to fire once at any date later than 1861/10/16,
BUuuUT since it has already fired as many or more times that allowed (0), the game is now ignoring it.
BUuuUT we can tickle the game into checking the event for firing again.
The list of events that have "expired" is in every .hst file of the running game in question. We are only interested in the last one though.
Go to the ..\AGEod's American Civil War\ACW\Saves\{game_name} directory and find the {game_name}.hst file.
Open this in notepad.exe or the editor of your choice.
Search for the event name: evt_nam_USA_MODDivisionFormationUnlimited
You will find this:
Code: Select all
{EventState}
Name=evt_nam_USA_MODDivisionFormationUnlimited
Occurences=0
MaxOccurs=0
{/EventState}
Now edit MaxOccurs to read MaxOccurs=1 and save the changes.
Now on the next turn execution the game will again evaluate the event, which is now set to fire once, and will execute it, this modifying the division limit of both factions to 99