Self-made "Greedy Autumn" Chinese version package file (extensions .spk and .stc) automatic repackaging tool
The self-made Chinese version package file (extensions .spk and .stc) of "Greedy Autumn" is an automatic repackaging tool that can easily create customized Chinese version package files.
Screenshots 8 screenshots
About this mod Machine translation
The self-made Chinese version package file (extensions .spk and .stc) of "Greedy Autumn" is an automatic repackaging tool that can easily create customized Chinese version package files.
Preface
The game "Greedy Autumn" is quite fun. Last week, I saw a friend posted a post about "Correcting some translation errors in the game, good news for obsessive-compulsive disorder." I found that the Chinese text of the game was saved in clear text encoding, so I was very interested in writing a program to realize the function of automatically repackaging .spk and .stc encoded files. I would like to share it with all you friends with obsessive-compulsive disorder!
Main topic
First, let’s explain the steps to use this tool:
- Go to this post I posted before and download the game.7z file using homemade game unified management tools, and extract it to any directory, such as: d:\tools;
- Run "Command Prompt" as a system administrator and enter the command:
cd /d d:\tools\game\bin
- Use a decompression tool such as 7zip to decompress the file GreedFall\packs\loc_chn_data.spk to any directory, and use a text editing tool to modify the Chinese text file of the game that needs to be modified (in the decompressed text subdirectory);
- Use a text editing tool to open the configuration file d:\tools\game\bin\file-spk.xml, and modify the node values marked in red below;
```
FileSPK configuration node structure description:
FileSPK nodes are composed of comment and SPKCode nodes in order. The comment node must be at the front, and there can be multiple SPKCode nodes.
FileSPK::comment FileSPK configuration node structure description, it has no impact on file repackaging, it is just a description.
FileSPK::SPKCode SPK encoding object contains all parameters required to automatically modify the .spk file and its corresponding .stc file with the same name.
The SPKCode node consists of nodes unpackPath, repackPath, filePath, fileName, queryRegex, STCFormat, and SPKFormat in order.
The unpacking path of the SPKCode::unpackPath.spk file is also the input path for SPKCode::queryRegex to perform regular query matching.
SPKCode::repackPath.spk file repackage path; cannot be the same value as SPKCode::filePath.
The SPKCode::filePath.spk file and its corresponding .stc file path with the same name are combined with SPKCode::fileName to read the file content.
SPKCode::fileName.spk file and its corresponding .stc file name with the same name are combined with SPKCode::filePath to read the file content.
SPKCode::queryRegex file name regular query expression, used to query all files under the SPKCode::unpackPath path; supports reference expressions and special character placeholder expressions (see file command parameter description).
SPKCode::STCFormat.stc file data format object, used to parse the data structure of the file.
The STCFormat node is composed of nodes HeaderInfo, BodyInfo, and ListInfo in order, describing the data structure of the entire .stc file.
File header information in STCFormat::HeaderInfo.stc file.
The STCFormat::HeaderInfo node consists of nodes headerSize, headerFlag, and recordSizeExpr in order.
STCFormat::HeaderInfo::headerSize The header size of the file header (a natural number in bytes, the same below).
STCFormat::HeaderInfo::headerFlag The header start flag of the file header; supports hexadecimal string expressions (matching regular expressions are: (?i)\A0x([0-9a-f]+)$), reference expressions and special character placeholder expressions (the same below).
STCFormat::HeaderInfo::recordSizeExpr The expression of the number of records in the file header; in the form: starting position [-,;][number]. If the number is not specified, the program will take the default value of 1; the matching regular expression is: \A([1-9]\d*)(?:-,;)?$.
STCFormat::BodyInfo.stc file object body information.
The STCFormat::BodyInfo node consists of the nodes headerSize, headerFlag, fileStartPosExpr, and fileSizeExpr in order.
STCFormat::BodyInf …
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- There is no universal mod manager for this game: some mods replace game files directly, some go into a game-specific Mods folder, and some need a game-specific community loader or tool first — follow the bundled readme.
- Place the files exactly as the readme says; mods with listed dependencies need those installed too.
- Launch the game to confirm it loaded; some games require enabling mods in settings or an in-game mod menu.
Install locations vary a lot between games and mods — the bundled readme is the most reliable guide.