If you hadn't already heard, the 0.14.2 update for Cosmoteer has some of new modding improvements that, unfortunately, will also break all existing mods that add new weapons to the game.
The Mod Upgrader for 0.14.0 proved to be pretty successful, so I've made a new upgrader, this time for 0.14.2. This is a little program that you can download and run and it will try its best to upgrade a mod from 0.14.1 to 0.14.2. It's not perfect -- there are some situations in which it won't be able to upgrade something, will produce the wrong result, or perhaps even crash -- but for most mods I think it should do about 95% of the work required to upgrade a mod for 0.14.2.
I've tested the upgrader on Akinata, Bloodcult, Drones++, Abh, and SW:ACD. All seem to load fine without crashing after being upgraded, though I did not exhaustively test every feature of every mod, so it's likely there are still some issues. (Note: Although I did test these mods, I will not be distributing the actual upgraded mod files -- I will leave that to the mod authors.)
Note: This upgrader only works with mods that are already upgraded to 0.14.0 or 0.14.1. It will not work with mods that aren't yet compatible with those game versions, so you'll need to use the 0.14.0 upgrader on it first.
If you would like to use the Mod Upgrader on your mod, follow these steps:
Backup your mod! The Mod Upgrader makes its own copy of a mod when upgrading it in case something goes wrong, but you can never be too safe, so I highly advise you backup your mod before using the upgrader.
Download and install the 0.14.2 version of Cosmoteer.
Download CosmoteerModUpgrader_0.14.2_v4.zip and extract it to somewhere on your computer. (Do not extract it to your Cosmoteer install folder.)
CosmoteerModUpgrader.exe program! You will first be asked to enter the path of Cosmoteer's installation folder. (That's usually
C:\Program Files\Cosmoteer.) You can either type in the path manually, or (tip!) you can simply click-and-drag the folder straight into the command window to copy the folder path to it. Press enter to confirm the path.
You will next be asked to enter the path of the mod you want to upgrade. (Again, you can simply click-and-drag the folder into the command window.)
The upgrader will then make a copy of your mod by adding a
_upgraded after its folder name. (So if your mod's folder is
MyAwesomeMod, the upgrader will make a copy of it in a folder right next to it called
MyAwesomeMod_upgraded) WARNING: If there is already a folder of that name, it will be deleted and replaced with a new copy!
The mod upgrader will now attempt to upgrade the mod! Depending on the size of your mod, this will take between a few seconds to a few minutes, and you should see a bunch of text whizzing by as it upgrades. With any luck, it will finish without crashing.
If the upgrade completes successfully, you should now test your mod to make sure it loads and works properly in 0.14.2. Move it into your
Mods folder (if it's not already there), turn it on, and restart the game. (You may want to also temporarily remove the old version of the mod, just to be 100% sure that you're testing the upgraded version.) Test your mod for any crashes during loading or gameplay or other issues. If something isn't working, please post here describing the problem and providing a link to download your mod so that I can look into fixing the upgrader.
You may have some additional things you need to fix by hand, but hopefully not too many if the upgrader has done its job. Note that the upgrader sometimes produces code that, while it might work just fine, can be pretty ugly and non-ideal, which you may want to clean up. (You may want to use a tool like WinMerge to see what was changed.)
Hopefully this tool will make upgrading existing mods for 0.14.2 much easier. Again, if something's not working right or it screws up an upgrade, please let me know! (And post a link to your mod so I can test it.)