-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dispose track after race + get german localization running #107
Conversation
Your branch is crashing with a segmentation fault for me; I'll have a more detailed look at it in the evening. Just in case you see something immediately:
It didn't want to accept the disc contents directly due to missing write permissions, so |
While trying to get the demo's running again, looks like I broke OG Carmageddon.
Carmageddon writes to the data folder, so it does not support read-only data directories. |
Hmmm... Now it complains about
|
Strange, my german carmageddon data directory should not be different from yours. The error is emitted in the |
Yes, for the previous test I was using an installed version of Carmageddon (I thought that was necessary), but now I also just copied the contents from disc. The result is still the same though (plus two warnings about PATHS.TXT and OPTIONS.TXT not being found). The interesting thing is that I'm using the madebr/dispose-track branch - I assume that is the branch you are also testing with? |
The warnings about The breakpoint is not hit because it can't find those palette files. export DETHRACE_ROOT_DIR=/directory/to/german/carmageddon
The output of the following command must contain
You can simply run dethrace by executing: /path/to/dethrace If it is still failing, can you tell a bit more about your system? OS? Filesystem? Is it case sensitive? |
if (AllocationErrorsAreFatal()) { | ||
FatalError(14, gMain_flic_list[pIndex].file_name); | ||
} | ||
#ifdef DETHRACE_FIX_BUGS | ||
fclose(f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this to make the compiler happy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really.
If allocation errors are not fatal, this code path can leak.
Very unlikely, I know.
src/harness/harness.c
Outdated
} else { | ||
harness_game_info.defines.INTRO_SMK_FILE = "MIX_INTR.SMK"; | ||
carmageddon: | ||
if (access("DATA/CURSCENE/Mix_intr.smk", F_OK) == -1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CURSCENE
should be CUTSCENE
?
Also, do we need this now we've fixed the case sensitive file access?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, can be collapsed into one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the INTO_SMK_FILE
variable can be set unconditionally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the INTO_SMK_FILE
variable can be set unconditionally.
I'm not so sure, because this is used by libsmacker, not by DRfopen
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to patch smk_open_file
for that.
It looks like that function has already been customized.
This pr:
DisposeTrack
(+depending functions). It is now possible to start a 2nd race in the same DethRace execution@laenion Can you test this?
The german version has the following issues:
There is also a visual glitch with the umlaut on "neues spiel über netzwerk".
Comparing the data structures sizing the interface, there appears to be no difference between the uk and german release.
Is this also present when running the windows/dos version?
(the umlaut remains visible when changing the active menu item)
The splatpack + xmas demo version stil do not work.Closes #99
Closes #110