Development moved to https://github.com/old-games/bak-translation-tools
This project 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.10 or later
poetry
for dependency management (see https://python-poetry.org/docs/)- Tcl/Tk for GUI tools (Font Editor) - on Windows it is bundled with Python
- On MacOS you may need to install it with
brew install tcl-tk
andbrew install python-tk
- On MacOS you may need to install it with
- 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)
- Run
poetry install
to install the dependencies.
poetry python -m baktt.resources
- extracts/archives resource files from/tokrondor.001
/krondor.rmf
poetry python -m baktt.fonts
- Operations on the font files (.FNT)poetry python -m baktt.book
- Operations on the book files (.BOK)poetry python -m baktt.images
- Operations on the image files (.PAL, .SCX, .BMX)
Use --help
flag to see the available options.
Run the font editor with poetry python -m baktt.gui.font_editor
- Make sure you have all requirements installed and have the project set up (see above).
- Install
PyInstaller
:poetry run python -m pip install PyInstaller
- Build the executable file:
poetry run python -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