UFO:Alien Invasion
Technical support => Feature Requests => Topic started by: weldroid on June 27, 2007, 10:31:25 am
-
/src/client/cl_console.c
line: 327
expression: Path
HP NC8000 Notebook, 512 MB RAM, 1,6 Mhz Pentium M, Windows2000
Is this a known issue? If not, can I provide more detailed information?
cheers,
Weldroid
-
which version are you using?
-
Thanks for the quick answer! :)
I've tried both 2.1.1 and 2.2 beta, both do the same.
-
I think I've located this bug.
ufo.exe!Con_SaveConsoleHistory(const char * path=0x00000000) ufo.exe!CL_Shutdown()
ufo.exe!Sys_Error(const char * error=0x005d2f68, ...)
ufo.exe!FixWorkingDirectory() Line 875 + 0xa bytes
ufo.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * hPrevInstance=0x00000000, char * lpCmdLine=0x00161f3f, int nCmdShow=1)
ufo.exe!__tmainCRTStartup() Line 578 + 0x35 bytes C
ufo.exe!WinMainCRTStartup() Line 403 C
It occurs when the working dir path is too long and sys_error is called.
Then Con_SaveConsoleHistory(FS_Gamedir()), but FS_Gamedir returns NULL, because "fs_searchpaths" is a null reference.
-
where did you install ufo:ai into? and where's your application data located?
-
I've placed breakpoints at the places in files.c where fs_searchpaths is assigned, but they're not hit before FS_Gamedir is called. I'm pretty new to this code so I don't know how to resolve this.
-
C:\Documents and Settings\Øystein\Mine dokumenter\Visual Studio Projects\ufo_8\debug is the directory where ufo is ran from. I haven't installed any gamedata yet, only .exe and .dll's.
-
Could it possibly be the 'O' character in your name causing troubles?
-
Maybe, but as far as I found out, fs_searchpaths isn't assigned before the error occurs and so the logging operations fail.