Source code related, troubleshooting crashing

D2X-XL - Descent II update for modern systems with many new features and enhanced graphics. Home Page

Moderators: Grendel, Aus-RED-5

Post Reply
zefrench
DBB Cadet
DBB Cadet
Posts: 7
Joined: Sat Mar 18, 2006 1:20 am

Source code related, troubleshooting crashing

Post 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
User avatar
Diedel
D2X Master
D2X Master
Posts: 5278
Joined: Thu Nov 05, 1998 12:01 pm
Contact:

Post 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.
Post Reply