This is an old revision of the document!
Table of Contents
Trooptype Library Editor
Usage: create trooptype libraries Now: basic functionality to create new trooptypes (sftypes) quickly. Also supporting CSV import and export Future: -
Basics
You make new trooptypes by specifying a very limited number of variables and a “Based On” setting. The trooptype editor then creates your new trooptypes based on your input that modifies the settings the “Based On” trooptype is using.
You can also create reinforcement types here that allow you to group some of your trooptypes together for any replacement troop events.
Technical Details
The masterfile has names set in tempString(600-699). Every slot with a name corresponds with SFTypeVar 0-99. Which is used by the event specified in rulevar(946) to create a trooptype.
Upon start up
It uses the latest masterfile.
Loading a trooptype library here
Only loads the sftypes on top of the masterfile. (note: masterfile can even be updated with more sftypes without breaking backwards compat.)
Saving a trooptype lib here
Everything is saved, but masterfile reference is removed.
Update master
You can manually update them with a new master if you want too. The .CopyFromSFType refers to a slot so the order of the masterfile should not be changed
