Skip to main content

Module tools

Module tools 

Source
Expand description

Tool operations: optimizer, map packing, startpos and CEO building, translations, MyMods, animation ids, glTF export and plugin scripts.

StructsΒ§

MyModOptions
Editor support to set up in a new MyMod folder.
PendingStartpos πŸ”’
A startpos build started, waiting for the game to build it.

ConstantsΒ§

EXTRACTED_TABLES_SUFFIX πŸ”’
Suffix of the file name of the tables extracted from a startpos, after the campaign key.
STARTPOS_LAST_CAMPAIGN_SETTING πŸ”’
Pack setting with the campaign the last startpos of a pack was built for.
STARTPOS_TABLES_FOLDER_PREFIX πŸ”’
Start of the paths of the start_pos_* tables in a pack.
THREE_KINGDOMS_SUB_STARTPOS πŸ”’
Sub-startpos each Three Kingdoms campaign has.
VANILLA_FIXES_NAME πŸ”’
Filename prefix for community-maintained vanilla loc fix TSVs in the Total War Translation Hub repo (e.g. vanilla_fixes_es.tsv). Each one carries fixes for vanilla loc bugs in a specific language; the suffix is the language code.

FunctionsΒ§

container_path_from_disk_path πŸ”’
Rebuilds the in-pack container path of a file extracted under base_folder.
optimizer_options_with
Returns optimizer options with some of them changed, by name.
plugin_script_interpreter πŸ”’
Returns the interpreter command for a plugin script, based on its extension.
plugin_scripts
Returns the paths of the plugin scripts in the config’s scripts folder.
sorted πŸ”’
Returns the items of a collection, sorted.
write_lua_editor_configs πŸ”’
Writes the editor configs for Lua scripting in a MyMod folder.