Skip to main content

Module packs

Module packs 

Source
Expand description

Pack lifecycle and metadata operations: open, create, save, close, flags, settings and notes.

Constantsยง

AUTOSAVE_FOLDER_SIZE_WARNING ๐Ÿ”’
Size of the autosave folder, in bytes, over which a warning is logged after each autosave (25 GB).
CA_PACKS_NAME ๐Ÿ”’
Name of the pack with all the CA packs of the selected game merged.
DEFAULT_PACK_EXT ๐Ÿ”’
Extension appended to DEFAULT_PACK_STEM when materialising a new Packโ€™s filename.
DEFAULT_PACK_STEM ๐Ÿ”’
Stem used to seed names for newly created Packs (new_pack.pack, new_pack_2.pack, โ€ฆ).

Functionsยง

derive_new_pack_name ๐Ÿ”’
Derives a pack name for new (unsaved) packs no open pack has, like โ€œnew_pack.packโ€, โ€œnew_pack_2.packโ€, etc.
note_entry ๐Ÿ”’
Returns a note as an API entry.
save_autosave ๐Ÿ”’
Saves a pack as a new autosave in a folder, removing the oldest autosaves over the amount to keep.