NBlood
NBlood copied to clipboard
[NBlood] game crashes without error message when MAP CRC does not match
initprintf("Map File does not match CRC");
I extracted E1M1.MAP, it worked fine, then I used a hex editor to change the last byte of the file to 0 and now the game crashes but there's no message like that in nblood.log
https://github.com/nukeykt/NBlood/blob/master/source/blood/src/db.cpp#L1243-L1245
From baselayer.cpp
:
// initprintf() -- prints a formatted string to the initialization window
This function is part of the Build engine, so it won't output to a game specific log file.
so how do I see those logs? the game closes immediately and there's no log window or alert dialog
You can't. But if you add just one line of code then you will see it in nblood.log
.
initprintf()
in baselayer.cpp
:
initputs(buf);
LOG_F(INFO, buf); // Add this line
Xfree(buf);