Page 1 of 1

Source code related, troubleshooting crashing

Posted: Sun Mar 19, 2006 1:50 pm
by zefrench
Since I am in the firm beleive that my crashing is machine related, I am not putting this post in the bugs thread.

I have added the following lines in inferno.c

Code: Select all

int _CDECL_ main (int argc, char *argv[])
{
	int h, i, t;
	ubyte title_pal [768];
	u_int32_t screen_mode;

con_printf (CON_DEBUG, \"test\\n\\n\");
con_printf (CON_NORMAL, \"test\\n\\n\");
everything build great, however if I open a command prompt (cmd.exe) then change directory to descent2, run d2x-xl.exe, I do not even see the lines test. (nothing in stderr.txt or stout.txt either)

Am I right in assuming everything before this point is initialization of SDl (which in turn drives directx) ?

Thanks in advance

Zefrench

Posted: Sun Mar 19, 2006 5:52 pm
by Diedel
con_printf does nothing in D2X-XL.

Replace it with calls to LogErr() and run d2x-xl using the switch -debug-printlog to have it create an error log named d2x.log in the application folder.