Knight of Lodis Recomp
Knight of Lodis Recomp is a native port of Tactics Ogre: The Knight of Lodis for Android and desktop with widescreen support and enhanced battlefield visuals.
- Type: PC port
- Game: Tactics Ogre: The Knight of Lodis
- Runs on Android
- By lucdubois
- Latest release v1.0.1, 2026-11-18
- Source: https://github.com/lucdubois/KnightOfLodisRecomp
README
Knight of Lodis Recomp
A native port of Tactics Ogre: The Knight of Lodis (Game Boy Advance, USA,
game code ATOE) for Android and desktop, built on
gbarecomp: the game's code is statically
recompiled to C++ and runs natively, with the real GBA hardware behaviour
underneath and a set of optional enhancements on top.
This project does not include the game. You need your own legally obtained copy of the cartridge ROM (and, optionally, the GBA BIOS). Nothing copyrighted by Nintendo, Quest or Square Enix is distributed here.
Features
Everything below is optional; the Original preset plays the game as it was.
- Widescreen, always 16:9: the battlefield, towns and scenes extended past the GBA's 240x160, at 320x180, 384x216 or 480x270.
- A 3D-feeling battlefield: perspective that follows the camera (right stick, or a finger drag on touch screens), lighting with shadows, ambient occlusion, torchlight, window light and night scenes, water and ice reflections, rain and snow of its own, plants that sway, props that stand off the ground, depth of field.
- Second screen (dual-screen handhelds such as the AYN Thor): the unit's status sheet, the army list, HELP text and the options menu.
- Sound: a high-quality re-render of the game's music engine, stereo, and optional HD instruments.
- Quality of life: fast loading, faster walking, actions and enemy turns, numbered save states, an analog cursor, rumble, Swap Face Buttons.
- Cheats (off by default): Rewind, Shop Anywhere, No Random Battles.
- Mods: IPS, UPS or BPS patches made for the game that change its data (text, stats, graphics) can be played over your ROM.
- RetroAchievements (softcore).
- On-screen controls on phones when no controller is connected.
What you need
- Your own
Tactics Ogre: The Knight of Lodis (USA)ROM (SHA-185a46320a31f16f5c6dda27fc094edd078dbe43d). It can be named anything. - Optionally the GBA BIOS (SHA-1
300c20df6731a33952ded8c436f7f186d25d3492). Without it, a built-in HLE BIOS is used, which is less tested.
Playing on Android
Install the APK. On first start, the setup screen asks for the ROM, and optionally the BIOS and a mod; press Play. BACK (or the second screen's button) opens the options menu.
Your save and save states are in Android's Files app, under the location
Knight of Lodis: totkol.sav is the game's save, and the folder states
holds the save states of the Save States page, three files each
(0007.state, its picture 0007.png and its details 0007.txt). Copy them
out to back them up, or copy them in to use them (a file that is replaced is
kept as <name>.bak). Replace the save with the game closed: it is read at
start. A state copied in shows on the Save States page after a restart. A mod
has its own save and its own states folder, each named with the mod's code
(totkol-1a2b3c4d.sav, states-1a2b3c4d).
Building
Requires a sibling checkout of gbarecomp,
built once per its own README, and your ROM as totkol.gba at the root of this
directory.
# 1. Generate the recompiled game code from the ROM and game.toml
../gbarecomp/build/gba_recompile --rom totkol.gba --config game.toml --out generated
# 2. The HD instruments' sound bank (optional; needs the FluidR3 soundfont)
tools/hd_audio/get_soundfont.sh
python3 tools/hd_audio/build_bank.py --atten-factor 1.0
# 3a. Desktop (needs SDL2 and libcurl)
cmake -S . -B build -G Ninja
cmake --build build --target KnightOfLodisRecomp
./build/KnightOfLodisRecomp --rom totkol.gba --bios path/to/gba_bios.bin
# 3b. Android (NDK r27, JDK 17; SDL2 2.32.10 unpacked at android/app/jni/SDL)
cd android && ./gradlew assembleRelease # -> app/build/outputs/apk/release/KnightOfLodisRecomp.apk
generated/ is never committed and must be regenerated whenever game.toml
changes. The release build leaves out the developer tools
(-DKOL_DEV_TOOLS=OFF; tools/check_release_build.sh checks it). A release is
signed with a key that is not part of this repository.
Documentation
- docs/DEVLOG.md: the full development log: how each feature works, its measurements, its switches and the approaches that failed. Code comments that cite a README section refer to this file.
game.toml: every hand-added recompiler entry, with the evidence for it.- gbarecomp's own documentation for the framework and its tools.
License
Knight of Lodis Recomp is licensed under the PolyForm Noncommercial License 1.0.0 (LICENSE), as gbarecomp and its other game projects are: free to use, change and share for any noncommercial purpose, not for sale or other commercial use.
gbarecomp has its own license. The third-party notices the app ships with are
in android/app/src/main/assets/licenses.txt (generated by
tools/make_licenses.py; Options > Licenses in the app).
Tactics Ogre: The Knight of Lodis, its ROM, the Game Boy Advance BIOS and all game assets remain the property of their respective owners and are not distributed by this project.