NBlood icon indicating copy to clipboard operation
NBlood copied to clipboard

[NBlood] game crashes without error message when MAP CRC does not match

Open Die4Ever opened this issue 1 year ago • 3 comments

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

Die4Ever avatar Jul 22 '22 05:07 Die4Ever

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.

CommonLoon102 avatar Jul 22 '22 08:07 CommonLoon102

so how do I see those logs? the game closes immediately and there's no log window or alert dialog

Die4Ever avatar Jul 22 '22 08:07 Die4Ever

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);

CommonLoon102 avatar Jul 22 '22 09:07 CommonLoon102