Software:OpenTTD
Appearance
| Developer | OpenTTD team |
|---|---|
| License | GPL-2.0-only |
| Website | https://www.openttd.org |
| On this wiki | Facts · Code · Notes · Topics |
Open-source (GPL-2.0, C++) reimplementation and extension of Transport Tycoon Deluxe; its src/ tree is the reference reader for the NewGRF graphics/data extension format.
Overview
OpenTTD reads the original Transport Tycoon Deluxe graphics (itself a .grf-style sprite file) and any NewGRF through the same loader. The relevant files are src/spritecache.cpp (sprite headers, sprite section offsets), src/spriteloader/sprite_file.cpp (container version detection), src/newgrf.cpp (record loop, action dispatch) and src/newgrf/newgrf_actNN.cpp (one handler file per action).
Code & repositories
- https://github.com/OpenTTD/OpenTTD (GPL-2.0)
- File format: Format:NewGRF
- https://github.com/OpenTTD/OpenTTD @
364d9b12b082b424de46423219188a52baf4e529· license: GPL-2.0-only (declared by the contributor; GitHub's detector did not recognize a license file)
OpenTTD source: NewGRF container, sprite loading, action handlers 0x00-0x14
Tested on: source read, not run: NewGRF files (not run) · checked 2026-10-18