Here's a little tool I threw together to allow you to update mods to use them with the new playtest exe.
It's pretty crude, but it provides an easy way to get mods working.
Just drop it in the ...\ctp2_data\default\gamedata\ directory, and run it with a prefix as a command line argument, e.g. "ModUpdater APOL". It will edit [Prefix]_Const.txt and [Prefix]_tileimp.txt, if they exist.
It adds the new MAX_MATCH_LIST_CYCLES line to [Prefix]_Const.txt (This is the really critical thing).
It adds the Freight fields to tile imps (to match the MoveCost field) so your caravans follow roads, etc.
It doesn't add the Sound field to the tileimps because there's no way to know which sound is wanted, and most mods have the SLIC adding a sound when you place a tileimp anyway, so if sounds were added here you'd get two.
If the files have already been updated, then this program will not affect them (it won't add in an extra superfluous copy of the fields) - at least, that's true provided you didn't add more blank lines in between things and generally put things where it expects them to be.
It doesn't backup the old versions of the files, so do that yourself if you're worried.
It's written in C#, so you'll need the .NET framework v1.1 to use it (The best way to get this is through Windows Update).
Hope someone finds it useful .
It's pretty crude, but it provides an easy way to get mods working.
Just drop it in the ...\ctp2_data\default\gamedata\ directory, and run it with a prefix as a command line argument, e.g. "ModUpdater APOL". It will edit [Prefix]_Const.txt and [Prefix]_tileimp.txt, if they exist.
It adds the new MAX_MATCH_LIST_CYCLES line to [Prefix]_Const.txt (This is the really critical thing).
It adds the Freight fields to tile imps (to match the MoveCost field) so your caravans follow roads, etc.
It doesn't add the Sound field to the tileimps because there's no way to know which sound is wanted, and most mods have the SLIC adding a sound when you place a tileimp anyway, so if sounds were added here you'd get two.
If the files have already been updated, then this program will not affect them (it won't add in an extra superfluous copy of the fields) - at least, that's true provided you didn't add more blank lines in between things and generally put things where it expects them to be.
It doesn't backup the old versions of the files, so do that yourself if you're worried.
It's written in C#, so you'll need the .NET framework v1.1 to use it (The best way to get this is through Windows Update).
Hope someone finds it useful .
Comment