How to override some functions for all campaigns?
Posted: Thu Jan 26, 2012 4:49 am
There are some UI tweaks I am doing for my own use (and maybe others if they are interested). Basically I want to provide more infomation about combat, terrain, and units in tooltip. My first one I did was to provide details about the calculation in FireLogic_HE--function CalculateDamageHE. I basically just added some tooltip text to show the different values used to calulate the damage. I want this to apply to all my campaigns, so it did the change in the Battle Academy\Data\Battle\Scripts folder (after backinig up a copy of the folder). Then I saw the following steps about modifying the scripts, and how you shouldn't modify the original:
1 – Find a campaign directory (e.g. 3Bulge) from the Campaigns directory in the game install, and copy it into your local My Documents\My Games\BBCBA\Campaigns directory.
2 – Copy the DataSquads.CSV file into the root of your copy of the campaign directory (e.g. My Documents\My Games\BBCBA\Campaigns\3Bulge) .
3 – Copy the Data\Battle\Scripts directory into e.g. My Documents\My Games\BBCBA\Campaigns\3Bulge\Data\Battle\Scripts.
4 – Open the Text1.txt file in your campaign. Change the IDS_CAMPAIGN_NAME string so you can easily pick it out on the campaign list.
So, would the safe way be for me to do the above with all of the stock campaigns and then put my changed files in the copy of the official campaign? Is there a way to just override one, or a couple of the script files without copying all of them. For instance, can I just put my copy of FireLogic_HE in a folder somewhere and the game would pick it up? Or can I have a file called FireLogic_HE, with just the function I modified (CalculateDamageHE) and put that somewhere to just override that one function?
Or is there a better way to modify the UI to include more information that I overlooked?
Here is a thread pertaining to what I am doing: viewtopic.php?t=31615
Thanks
1 – Find a campaign directory (e.g. 3Bulge) from the Campaigns directory in the game install, and copy it into your local My Documents\My Games\BBCBA\Campaigns directory.
2 – Copy the DataSquads.CSV file into the root of your copy of the campaign directory (e.g. My Documents\My Games\BBCBA\Campaigns\3Bulge) .
3 – Copy the Data\Battle\Scripts directory into e.g. My Documents\My Games\BBCBA\Campaigns\3Bulge\Data\Battle\Scripts.
4 – Open the Text1.txt file in your campaign. Change the IDS_CAMPAIGN_NAME string so you can easily pick it out on the campaign list.
So, would the safe way be for me to do the above with all of the stock campaigns and then put my changed files in the copy of the official campaign? Is there a way to just override one, or a couple of the script files without copying all of them. For instance, can I just put my copy of FireLogic_HE in a folder somewhere and the game would pick it up? Or can I have a file called FireLogic_HE, with just the function I modified (CalculateDamageHE) and put that somewhere to just override that one function?
Or is there a better way to modify the UI to include more information that I overlooked?
Here is a thread pertaining to what I am doing: viewtopic.php?t=31615
Thanks