User Tools

Site Tools


dcx:trooptype_library_editor

This is an old revision of the document!


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 as specified in the modfile used at startup of the game.

Loading a trooptype library here

Only loads the sftypes on top of the masterfile. (note: masterfile can even be updated with more sftypes in a new version of the masterfile without breaking backwards compatibility)

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 base SFTypes in the masterfile should not be changed. But the ammount of base SFTypes could be increased.

dcx/trooptype_library_editor.1442476364.txt.gz · Last modified: 2026/06/22 12:14 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki