OpenArena / engine

OpenArena modifications to the ioquake3 engine
http://openarena.ws
GNU General Public License v2.0
212 stars 50 forks source link

NT4 crashes with Sys_WritePIDFile #35

Open leilei- opened 7 years ago

leilei- commented 7 years ago

During startup, after "unable to get SHFolder.dll" it sends openarena.x86.exe to Dr. Watson with an illegal exception.

I believe it may be related to creating a PID file. Dummying out the Sys_WritePIDFile stuff in common.c lets the game start properly.

sago007 commented 7 years ago

Sys_WritePIDFile ultimately calls "GetCurrentProcessId" witch is available from Windows XP and later.

But can NT4 even handle OpenGL? I thought it had no 3d acceleration.

The-Gig commented 7 years ago

If that function has been introduced in XP, then the bug does also happen in Win2000?

PS: Leilei showed on Discord channel a screenshot of Windows NT 3.51 running Unreal Tournament: http://toastytech.com/guis/misccutnt351.png (but also said OA will never run there instead)

leilei- commented 7 years ago

But can NT4 even handle OpenGL? I thought it had no 3d acceleration.

It's where OpenGL support on Windows originated (with industrial-grade workstation hardware especially) and it does work with 3d acceleration there. What's notably absent from NT4 is full DirectX support (beyond partial DX3). which doesn't really matter as SDL can function without it.

If that function has been introduced in XP, then the bug does also hapen in Win2000?

Windows 2000 works fine, it doesn't create the pid file and moves along without crashing. Ditto for 95, 98 and ME.

(but also said OA will never run there instead)

Unreal got by with a software renderer and a lack of dependency for Winsock2- two things that are quite out of reach in OA's current scope and manpower.