dethrace
dethrace copied to clipboard
Reverse engineering the 1997 game "Carmageddon"
- Update miniaudio to 0.11.11 - Play sounds when playing the smacker cutscenes - Because I noticed a lag between video and audio, I created a mini player at `tools/minismackerplay.c`...
The Portuguese Carmageddon segfaulted because its character set caused signed characters to access out-of-bounds memory. I also added a few fixes for warnings/errors seen in rec2. Fixes https://github.com/dethrace-labs/dethrace/issues/352

- Print error message when `fopen_s` fails - Make more functions static - Remove leading `_` from global variable (=undefined behavior)
In src/BRSRC13/CORE/STD/brstdfile.c line 91 ``` int BrStdioEof(void* f) { return feof((FILE*)f); // Pierre-Marie Baty -- added type cast because feof(f) is a macro dereferencing f on some systems } ```...
The rear view mirror is [currently disabled](https://github.com/dethrace-labs/dethrace/blob/8051ca2b6d3e060321407c69a65f92548bfe68e0/src/DETHRACE/common/graphics.c#L1693-L1717). Uncommenting it is not enough to get it working.
When compiling on Win32/x86, I couldn't get the new game video, which should be 50% chance either GARAGE1.SMK or GARAGE2.SMK to play the first one. After investigation it turned out...
From discord: > strangely enough, on windows 10, running dethrace.exe directly from the explorer window works, but starting it from the command line doesn't : > ``` > D:\Carmageddon>Dethrace version:...
A few months ago, I found out this cool reverse engineering project of Carmageddon. Glad it worked fine not only in PC, but also in some linux-based portable devices, such...
- Because SDL3 is still in development, mark it as experimental. - Update some github actions + use the latest SDL2 release for msvc ci