Open janisozaur opened 6 years ago
Offending line from the lowermost frame: https://github.com/Interrupt/systemshock/blob/0b8006ac06f1271f4238e801c09e9bfeed3693b1/src/GameSrc/popups.c#L62
Are there any error messages before the crash? The game is trying to load resources from res/data/gamescr.res
at that point. Is the Linux build working with the same res directory?
OK, I see the same crash when trying to start without the res
directory. Most likely you forgot to copy it.
The game should exit at the first critical error, but that code is currently commented out: https://github.com/Interrupt/systemshock/blob/1e258b57e8e37cebcc7d414b2b6611fb436bacd0/src/MacSrc/InitMac.c#L236
We should probably do a sanity check on startup where we look to see if the directory exists and can at least load some kind of data from it like a known string from cybstrng.res.
I think the existing message is clear enough:
WARN resfile.c:145: ResOpenResFile: can't open file: res/data/cybstrng.res
The game should just exit at that point instead of continuing as if nothing had happened.
I tried building systemshock with mingw toolchain (based on GCC 7.2.1) and it was successful.
Trying to launch the produced binary, however, fails, at least when used with wine. Here's the error report including stack trace, on 0b8006a
Note I have not made any configuration or any other steps than building and launching the executable.