User Tools

Site Tools


dcx:trooptype_library_editor

This is an old revision of the document!


Trooptype Library Editor

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.

Walk through

1. Add Reinf Type

Adds a new reinforcement type to the library. If you want replacement troops to properly arrive you'll need to assign your trooptypes to at least the 1st reinforcement type.

2. Remove Reinf Type

Removes the selected reinf. type from the library.

3. Rename Reinf Type

Allows you to rename the reinf. type. Keep in mind that this will NOT impact your scenario logic as reinforcement types are not referenced on name but on slot number.

4. Set Ratio

In the replacement type reports and some OOB stats the reinf types are used and to properly present the player with for example the ammount of 'Light Tanks' requested we need to know the ratio to use. Basically you should really set the ratio the same as the ratio of the trooptypes that use it.

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.1442924963.txt.gz · Last modified: 2026/06/22 12:14 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki