| MCS' Coding Tips
Customized exit and error messages
Written by MCS
Tested by Quinnsey
Tips - "Success"!
Original Wolf 3D
|When you exit the game,the ID software "do not distribute" screen appears.
Also, if the game bombs to DOS, the error screen with the infamous message "Call Apogee etc." is displayed.
If you want your own exit and error messages instead of the ID ones, you have to modify the Quit function.
Open WL_MAIN.C, locate the Quit function and modify as follows:
void Quit (char *error)
_AX = 3;
// CA_CacheGrChunk (ERRORSCREEN);
// screen = grsegs[ERRORSCREEN];
if (error && *error)
// movedata ((unsigned)screen,7,0xb800,0,7*160);
printf(" My Addon Error!\n");
printf(" The error message is:\n");
if (!error || !(*error))
printf("-= (C)2002 MyAddon\n");
printf(" Thanks for playing!\n");
Modify the text between quotes in the yellow lines to your likings. Remember, the \n stands for carriage return and line feed, and has to stay intact.
Compile and link up. The engine should display your customized error and exit messages.