https://github.com/dethrace-labs/dethrace Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} dethrace-labs / dethrace Public * Notifications * Fork 26 * Star 411 Reverse engineering the 1997 game "Carmageddon" twitter.com/dethrace_labs License GPL-3.0 license 411 stars 26 forks Star Notifications * Code * Issues 33 * Pull requests 7 * Discussions * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights dethrace-labs/dethrace This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 4 branches 10 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/d] Use Git or checkout with SVN using the web URL. [gh repo clone dethra] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @dethrace-labs dethrace-labs Remove references to u_material_index_range (#311) ... 33000e4 Apr 26, 2023 Remove references to `u_material_index_range` (#311) * fixes issue 304 33000e4 Git stats * 292 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github Fix ci warnings (#231) November 7, 2022 11:59 cmake Embed GLSL files during build (#238) November 11, 2022 13:18 docs SmackerLib API (#303) April 19, 2023 13:11 lib SmackerLib API (#303) April 19, 2023 13:11 src Remove references to u_material_index_range (#311) April 26, 2023 21:48 test Implements win95sys.c (#301) April 18, 2023 22:50 tools Implement TestAutoSpecialVolume + fix IWANTTOFIDDLE (#237) November 11, 2022 19:57 .clang-format Vehicle damage (#116) April 1, 2022 10:52 .gitignore Initial CMake based build system implementation. March 12, 2021 15:49 CMakeLists.txt SmackerLib API (#303) April 19, 2023 13:11 CONTRIBUTING.md Create CONTRIBUTING.md November 10, 2022 06:21 LICENSE Create LICENSE November 18, 2019 11:42 NOTES.md Feature/groove animations (#59) September 14, 2021 12:00 README.md Update README.md April 19, 2023 13:15 View code [ ] Dethrace Progress Last updated April 18 2023 Background Is "dethrace" a typo? Game content Dependencies SDL2 Build Run Run tests Changelog Credits Legal README.md Dethrace Workflow Twitter Discord Carmageddon server Want to chat? We are in the #dethrace channel on the Carmageddon discord server. Dethrace is an attempt to learn how the 1997 driving/mayhem game Carmageddon works behind the scenes and rebuild it to run natively on modern systems. Progress (Follow us on Twitter to get notified of updates!) Last updated April 18 2023 * 80% of functions implemented * Latest screenshot: Screenshot 2023-03-31 at 8 51 05 pm Background Watcom debug symbols for an earlier internal build were discovered named DETHRSC.SYM on the 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. This 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: watcom-debugger CrayzKirk from the Carmageddon community picked it up and did a lot of painstaking work manually matching up many functions and data structures in the DOS executable to the debugging symbols. We are slowly replacing the original assembly code with equivalent C code, function by function. Is "dethrace" a typo? No, 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? Game content Dethrace does not ship with any game 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. dethrace also supports the various freeware demos: * Original Carmageddon demo * Splat Pack demo * Splat Pack Xmas demo Lots of other fun things are available from the Road Reaction site Dependencies SDL2 The easiest way to install SDL is via your favorite package manager. OSX: brew install SDL2 Linux: apt-get install libsdl2-dev Point Dethrace at the Carmageddon install directory: export DETHRACE_ROOT_DIR=/path/to/carmageddon Build Dethrace uses cmake for generating build files. To generate the build files (generally only required once): mkdir build cd build cmake .. On cmake has generated the build files for your platform, run the build. For example: make Run After building, build/dethrace is created ./dethrace [args] Run tests A subset of tests do not require DETHRACE_ROOT_DIR. They run via Github actions when code is committed to this repo. This allows us to keep nice and clean and avoid storing any potentially legally problematic resouces in our repo. The majority of tests do require DETHRACE_ROOT_DIR. To run the full test suite, you must have a copy of the original Splat Pack data. export DETHRACE_ROOT_DIR=/path/to/carmageddon_splat_pack To run ./dethrace_test To run a single test DETHRACE_TEST_ARGS="-n test_name" make test Changelog From the beginning until release Credits * CrayzKirk (manually matching up functions and data structures in the executable to the debugging symbols) * The developer at Stainless Software who left an old debugging .SYM file on the Splat Pack CD ;) Legal Dethrace is released to the Public Domain. The documentation and function provided by Dethrace may only be utilized with assets provided by ownership of Carmageddon. The 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. Dethrace and any of its' maintainers are in no way associated with or endorsed by SCi, Stainless Software or THQ Nordic. About Reverse engineering the 1997 game "Carmageddon" twitter.com/dethrace_labs Topics c gamedev dos assembly reverse-engineering carmageddon Resources Readme License GPL-3.0 license Stars 411 stars Watchers 21 watching Forks 26 forks Report repository Releases 11 Dethrace 0.6.0 Latest Jan 9, 2023 + 10 releases Packages 0 No packages published Contributors 9 * @jeff-1amstudios * @dethrace-labs * @madebr * @OmniBlade * @zear * @DJs3000 * @plaes * @BSzili * @whouishere Languages * C 99.1% * Other 0.9% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.