Crate tw_pack_lib
source ·Expand description
A library to create/manipulate Total War PackFiles.
Modern Total War games (since Empire: Total War) have their data packed inside .pack
files.
This library allows you to open those PackFiles and manipulate them however you want.
Not all Modern Total War games are supported yet. The supported ones are:
- Warhammer 2.
- Warhammer.
- Attila.
- Rome 2.
- Arena.
Games that will be supported in the future are:
- Shogun 2.
- Napoleon.
- Empire.
- Thrones of Brittania.
- Three Kingdoms.
Keep in mind that this lib only gives you the ability to open and edit PackFiles. If you want to edit the PackedFiles inside (like editing a value in a table), that’s not covered by this lib.
Modules
This module contains all error-related code of the library.
Structs
This represents the bitmasks a PackFile can have applied to his type.
This struct represents a parsed
PackFile
.This struct represents a PackedFile, a File contained inside a PackFile.
Enums
This enum represents the Type of a PackFile.
This enum represents the Version of a PackFile.
Functions
This function tries to create a
PackFile
in the filesystem from individual files.This function tries to create a
PackFile
in the filesystem from PackedFiles.This function tries to create a
PackFile
struct by parsing a file.