Voltar ao ranking

dethrace-labs/dethrace

Ctwitter.com/dethrace_labs

Reverse engineering the 1997 game "Carmageddon"

cgamedevdosassemblyreverse-engineeringcarmageddon
Crescimento de estrelas
Estrelas
1.2k
Forks
79
Crescimento semanal
Issues
71
5001k
out. de 2019jan. de 2022abr. de 2024jul. de 2026
README

Dethrace

Workflow Twitter Discord Carmageddon 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.

Status

Building

Dependencies

Dethrace using CMake to build, and SDL2 at runtime. The easiest way to install them is via your favorite package manager.

OSX:

brew install SDL2 cmake

Linux:

apt-get install libsdl2-dev cmake

Clone

Dethrace uses git submodules, so we must pull them after the inital clone:

git clone https://github.com/dethrace-labs/dethrace
cd dethrace
git submodule update --init --recursive

Build

Dethrace uses cmake

To generate the build files:

mkdir build
cd build
cmake ..

Once cmake has generated the build files for your platform, run the build. For example:

make

Running the game

Dethrace 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.

dethrace also supports the various freeware demos:

Dethrace 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.

Configuration INI file

Alternatively, you may configure a different Carmageddon directory and settings by providing a dethrace.ini file.

CD audio

Dethrace 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.

Screenshot 2024-09-30 at 8 31 59 AM

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

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?

Contributing

See docs

Changelog

From the beginning until release

Credits

  • CrayzKirk (did the first manual matching up functions and data structures in the DOS executable to the debugging symbols and proved it was possible!)
  • The developer at Stainless Software who left an old debugging .SYM file on the Splat Pack CD ;)
  • https://github.com/isledecomp/reccmp tooling

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.

Repositórios relacionados
Genymobile/scrcpy

Display and control your Android device

CApache License 2.0androidc
146.1k13.5k
neovim/neovim

Vim-fork focused on extensibility and usability

Vim ScriptOtherneovimc
neovim.io
101.3k7k
obsproject/obs-studio

OBS Studio - Free and open source software for live streaming and screen recording

CGNU General Public License v2.0cc-plus-plus
obsproject.com
74k9.4k
fffaraz/awesome-cpp

A curated list of awesome C++ (or C) frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff.

MIT Licensecppcppcon
fffaraz.github.io/awesome-cpp/
72.4k8.3k
FFmpeg/FFmpeg

Mirror of https://git.ffmpeg.org/ffmpeg.git

COtherffmpegvideo
ffmpeg.org
62.3k14k
git/git

Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.

COthercshell
62.1k28.2k
serhii-londar/open-source-mac-os-apps

🚀 Awesome list of open source applications for macOS. https://t.me/s/opensourcemacosapps

Creative Commons Zero v1.0 Universalmacosmac
49.7k2.6k
curl/curl

A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, MQTTS, POP3, POP3S, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features

COtherhttphttps
curl.se
42.4k7.3k
vim/vim

The official Vim repository

Vim ScriptVim Licensevimc
vim.org
40.7k6.1k
huihut/interview

📚 C/C++ 技术面试基础知识总结,包括语言、程序库、数据结构、算法、系统、网络、链接装载库等知识及面试经验、招聘、内推等信息。This repository is a summary of the basic knowledge of recruiting job seekers and beginners in the direction of C/C++ technology, including language, program library, data structure, algorithm, system, network, link loading library, interview experience, recruitment, recommendation, etc.

C++Otherinterviewinterview-questions
interview.huihut.com
38.1k8.1k
mpv-player/mpv

🎥 Command line media player

COthermpvmplayer
mpv.io
36.1k3.4k
kovidgoyal/kitty

If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based.

PythonPyPIGNU General Public License v3.0terminal-emulatorsopengl
sw.kovidgoyal.net/kitty/
34k1.4k