Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

andreyfedoseev/bak-translation-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Betrayal at Krondor Translation Tools

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.

Requirements

  • 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)

Installation

  1. (optional) Create and activate python virtualenv:
python3 -m virtualenv venv tools/venv
source ./tools/venv/bin/activate
  1. Install the filebuffer library
pip3 install -e ./tools/lib/filebuffer
  1. Install the main project
pip3 install -e ./tools

Command Line Tools

  • python3 -m baktt.resources - extracts/archives resource files from/to krondor.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.

Building the Font Editor for Windows

  1. Make sure you have all requirements installed and have the project set up (see above).
  2. Install PyInstaller: pip3 install PyInstaller
  3. Build the executable file: python3 -m PyInstaller --noconsole --onefile .\tools\src\baktt\gui\font_editor.py
  4. The .exe file is saved to dist folder.

TODO/Status

  • 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
  • Image Processing
    • Extract images
      • SCX
      • BMX
    • Pack images

About

Tools for translating the "Betrayal at Krondor" game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published