Skip to content
nolffanPublic

About

LithTech development tools

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

lithtools

Tools for the LithTech engine's games and their files: No One Lives Forever, Aliens versus Predator 2, No One Lives Forever 2, Contract J.A.C.K., Tron 2.0 and others of that era. Part of a game preservation effort: modern, cross-platform tools for the files these games ship, and the original development tools archived and reconstructed from their binaries for research.

LithRez Studio: No One Lives Forever 2's GAME.REZ open, previewing Cate Archer's HERO_CASUAL.LTB model with its pieces, sockets and skins Blender: No One Lives Forever 2's mime model imported with its LODs, and the LithTech Animations panel

What's here

Directory What it is
tools/lithrez/ lithrez (command line) and LithRez Studio (Qt 6): cross-platform tools for .rez archives, with texture, model and sound previews; and core/, the C++17 library they share for the games' file formats (.rez, .dtx, .abc, .ltb, sounds, attribute files)
plugins/blender/ a Blender extension that imports and exports LithTech models (.abc, .ltb, the PS2's .ltb) and DTX textures
legacy/ the original LithTech development tools, archived and decompiled for research: the "Talon" tools of NOLF and AvP2, rebuilt as source that compiles to the shipped binaries, and the Jupiter tools of NOLF2 and its successors, built from Build 69's source
scripts/ survey scripts: the inventory of every tools release (inventory.py), the format versions in each game's assets (fmtversions.py), and installer unpackers
INVENTORY.md every public LithTech tools release for these games, and what built each binary (inventory.tsv has one row per binary)
FORMATS.md which format versions each game ships and each tool build reads and writes

ext/ holds the submodules the legacy tools' build uses: tools/ (the reconstruction and scoring tools shared with the game projects) and toolchains/ (the period compilers). isos/ (your own disc images), downloads/, extracted/ and out/ are local working directories and are not in the repository.

Retail data in the repository

The repository holds no shipped binaries and no game data. It holds this retail data only:

  • the resources of the Talon tools, the same bytes as in the shipped binaries: each tool's resource script (.rc, decompiled from the shipped binary) with its icons, cursors and bitmaps (in legacy/talon/src/LT2/tools/*/res/, about 0.4 MB; decompiled from the shipped binaries, or taken from Build 69's source where they are the same). The reconstructed tools are compiled with them, so the build is complete without the discs. make progress checks each resource against the shipped binary, and make progress-ci against its recorded hash;
  • Build 69's tool source and its resources (legacy/jupiter/src/, the public 2006 package).

To score the reconstruction against the shipped tools, or to run the behaviour tests, you must supply your own disc images (see legacy/talon/README.md). legacy/talon/build/retail-files.txt lists each shipped file by its size and SHA-256, and holds no data of it.

Building

  • lithrez and LithRez Studio: CMake, with clang, gcc or MSVC on Linux, macOS and Windows; LithRez Studio needs Qt 6.2 or later. See tools/lithrez/README.md.
  • The Blender extension: packaged by plugins/blender/package.py; see its README.
  • The legacy tools: built in Docker with the period compilers (Visual C++ 5 and 6, Intel C/C++ 4.0, Visual C++ .NET 2003) under Wine; see each project's README under legacy/.

Continuous integration

  • tools.yml: builds and tests lithrez and LithRez Studio on Windows, Linux and macOS, packs the Blender extension, and publishes release builds.
  • talon.yml: builds the Talon reconstruction and checks that every function recorded as byte-identical still is (make progress-ci, against the recorded hashes). It needs no disc images. The full scoring and the behaviour tests need the shipped tools, and thus your own discs: run them locally.

Releases

The tools workflow's builds (Windows, Linux AppImage, macOS universal, and the Blender extension) are attached to each tagged release, and to a nightly build of the latest commit. To upgrade, unpack the new release over the existing one: there is no installer to run again.

Credits

This project builds on the work of others:

  • Monolith Productions, for No One Lives Forever, Aliens versus Predator 2, No One Lives Forever 2 and the other LithTech games, and for the editing tools they released to their players, which legacy/ archives.
  • StenApp for generously sharing his invaluable, in-depth knowledge of all things NOLF and LithTech.
  • branung for contributing v6 ABC format support.

About

LithTech development tools

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages