{"id":15060120,"url":"https://github.com/dethrace-labs/dethrace","last_synced_at":"2026-02-22T23:27:42.526Z","repository":{"id":37498709,"uuid":"218399932","full_name":"dethrace-labs/dethrace","owner":"dethrace-labs","description":"Reverse engineering the 1997 game \"Carmageddon\"","archived":false,"fork":false,"pushed_at":"2025-05-11T02:06:10.000Z","size":5820,"stargazers_count":926,"open_issues_count":55,"forks_count":59,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-05-11T02:43:01.423Z","etag":null,"topics":["assembly","c","carmageddon","dos","gamedev","reverse-engineering"],"latest_commit_sha":null,"homepage":"https://twitter.com/dethrace_labs","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dethrace-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-29T23:05:46.000Z","updated_at":"2025-05-11T01:44:58.000Z","dependencies_parsed_at":"2024-01-16T11:15:27.954Z","dependency_job_id":"5c9247d1-acf9-4591-9dca-ddb6167f5886","html_url":"https://github.com/dethrace-labs/dethrace","commit_stats":{"total_commits":343,"total_committers":12,"mean_commits":"28.583333333333332","dds":0.6472303206997084,"last_synced_commit":"3c01b633465f9565f394e3f30b5b9e5e85df93ba"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dethrace-labs%2Fdethrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dethrace-labs%2Fdethrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dethrace-labs%2Fdethrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dethrace-labs%2Fdethrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dethrace-labs","download_url":"https://codeload.github.com/dethrace-labs/dethrace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254254042,"owners_count":22039792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly","c","carmageddon","dos","gamedev","reverse-engineering"],"created_at":"2024-09-24T22:53:12.733Z","updated_at":"2026-02-22T23:27:42.519Z","avatar_url":"https://github.com/dethrace-labs.png","language":"C","funding_links":[],"categories":["Racing","Nintendo Wii","Game \u0026 Studio Tools"],"sub_categories":["Stainless Games"],"readme":"# Dethrace\n\n[![Workflow](https://github.com/dethrace-labs/dethrace/actions/workflows/workflow.yaml/badge.svg)](https://github.com/dethrace-labs/dethrace/actions/workflows/workflow.yml)\n[![Twitter](https://badgen.net/badge/icon/twitter?icon=twitter\u0026label)](https://twitter.com/dethrace_labs)\n[![Discord Carmageddon server](https://badgen.net/badge/icon/discord?icon=discord\u0026label)](https://discord.gg/f5StsuP)\n\nDethrace is an attempt to learn how the 1997 driving/mayhem game [Carmageddon](https://en.wikipedia.org/wiki/Carmageddon) works behind the scenes and rebuild it to run natively on modern systems.\n\n## Status\n\n\u003cimg width=\"50%\" src=\"https://raw.githubusercontent.com/dethrace-labs/reccmp-report/refs/heads/main/progress.svg\"\u003e\n\n## Building\n\n### Dependencies\n\nDethrace using CMake to build, and SDL2 at runtime. The easiest way to install them is via your favorite package manager.\n\nOSX:\n\n```sh\nbrew install SDL2 cmake\n```\n\nLinux:\n\n```sh\napt-get install libsdl2-dev cmake\n```\n\n### Clone\n\nDethrace uses [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules), so we must pull them after the inital clone:\n\n```sh\ngit clone https://github.com/dethrace-labs/dethrace\ncd dethrace\ngit submodule update --init --recursive\n```\n\n### Build\n\nDethrace uses [cmake](https://cmake.org/)\n\nTo generate the build files:\n\n```sh\nmkdir build\ncd build\ncmake ..\n```\n\nOnce cmake has generated the build files for your platform, run the build. For example:\n\n```sh\nmake\n```\n\n## Running the game\n\nDethrace does not ship with any content. You'll need access to the data from the original game. If you don't have an original CD then you can [buy Carmageddon from GoG.com](https://www.gog.com/game/carmageddon_max_pack).\n\n`dethrace` also supports the various freeware demos:\n\n- [Original Carmageddon demo](https://rr2000.cwaboard.co.uk/R4/PC/carmdemo.zip)\n- [Splat Pack demo](https://rr2000.cwaboard.co.uk/R4/PC/splatdem.zip)\n- [Splat Pack Xmas demo](https://rr2000.cwaboard.co.uk/R4/PC/Splatpack_christmas_demo.zip)\n\nDethrace generally expects to be placed into the top level Carmageddon folder. You know you have the right folder when you see the original `CARMA.EXE` there. If you are on Windows, you must also place `SDL2.dll` in the same folder.\n\n### Configuration INI file\n\nAlternatively, you may configure a different Carmageddon directory and settings by providing a [dethrace.ini file](docs/CONFIGURATION.md).\n\n### CD audio\n\nDethrace supports the GOG cd audio convention. If there is a `MUSIC` folder in the Carmageddon folder containing files `Track02.ogg`, `Track03.ogg` etc, then Dethrace will use those files in place of the original CD audio functions.\n\n\u003cimg width=\"571\" alt=\"Screenshot 2024-09-30 at 8 31 59 AM\" src=\"https://github.com/user-attachments/assets/cec72203-9156-4c2a-a15a-328609e65c68\"\u003e\n\n## Background\n\nWatcom debug symbols for an earlier internal build [were discovered](http://1amstudios.com/2014/12/02/carma1-symbols-dumped) named `DETHRSC.SYM` on the [Carmageddon Splat Pack](http://carmageddon.wikia.com/wiki/Carmageddon_Splat_Pack) expansion CD release. The symbols unfortunately did not match any known released executable, meaning they were interesting but not immediately usable to reverse engineer the game.\n\nThis is what it looked like from the Watcom debugger - the names of all the methods were present but the code location they were pointing to was junk:\n\n![watcom-debugger](http://1amstudios.com/img/watcom-debugger.jpg)\n\nWe are slowly replacing the original assembly code with equivalent C code, function by function.\n\n### Is \"dethrace\" a typo?\n\nNo, well, I don't think so at least. The original files according to the symbol dump were stored in `c:\\DETHRACE`, and the symbol file is called `DETHSRC.SYM`. Maybe they removed the \"a\" to be compatible with [8.3 filenames](https://en.wikipedia.org/wiki/8.3_filename)?\n\n## Contributing\nSee [docs](./CONTRIBUTING.md)\n\n## Changelog\n\n[From the beginning until release](docs/CHANGELOG.md)\n\n## Credits\n\n- CrayzKirk (did the first manual matching up functions and data structures in the DOS executable to the debugging symbols and proved it was possible!)\n- The developer at Stainless Software who left an old debugging .SYM file on the Splat Pack CD ;)\n- https://github.com/isledecomp/reccmp tooling\n\n## Legal\n\nDethrace is released to the Public Domain. The documentation and function provided by Dethrace may only be utilized with assets provided by ownership of Carmageddon.\n\nThe source code in this repository is for non-commerical use only. If you use the source code you may not charge others for access to it or any derivative work thereof.\n\nDethrace and any of its' maintainers are in no way associated with or endorsed by SCi, Stainless Software or THQ Nordic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdethrace-labs%2Fdethrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdethrace-labs%2Fdethrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdethrace-labs%2Fdethrace/lists"}