Development moved to https://github.com/old-games/bak-translation-tools
This project is the is a set of tools for manipulating the resources of the Betrayal at Krondor video game to enable translation of the game to different languages (it was created to make a Russian translation, but may be used for other languages).
The project is not affiliated with the original authors of Betrayal at Krondor, not
the developers of the xbak
port.
- Python 3.9 or later
- Tcl/Tk for GUI tools (Font Editor) - on Windows it is bundled with Python
- C++ compiler for building Python C extensions (on Windows you can install Visual Studio with Python support enabled, including the "Python native development tools" component)
- (optional) Create and activate python virtualenv:
python3 -m virtualenv venv tools/venv
source ./tools/venv/bin/activate
- Install the
filebuffer
library
pip3 install -e ./tools/lib/filebuffer
- Install the main project
pip3 install -e ./tools
python3 -m baktt.resources
- extracts/archives resource files from/tokrondor.001
/krondor.rmf
python3 -m baktt.fonts
- Operations on the font files (.FNT)python3 -m baktt.book
- Operations on the book files (.BOK)python3 -m baktt.images
- Operations on the image files (.PAL, .SCX, .BMX)
Use --help
flag to see the available options.
- Make sure you have all requirements installed and have the project set up (see above).
- Install
PyInstaller
:pip3 install PyInstaller
- Build the executable file:
python3 -m PyInstaller --noconsole --onefile .\tools\src\baktt\gui\font_editor.py
- The
.exe
file is saved todist
folder.
- Extract/archive resource files
- Font editor
- Compress Fonts
- GUI
- Basic Window
- Character Table
- Display Glyph
- Editor Area
- Save files
- Font Demo Widget
- Translatable text extractor / packer
- BOK-files (books)
- Extract text
- Pack text
- DDX-files (dialogs)
- Extract text
- Pack text
- BOK-files (books)
- Image Processing
- Extract images
- SCX
- BMX
- Pack images
- Extract images