shinyquagsire23 / OpenJKDF2

A cross-platform reimplementation of JKDF2 in C
Other
513 stars 43 forks source link

Screenshots by F12 still crashes the game on Windows 10 64 bit #231

Open Alex3474247 opened 1 year ago

Alex3474247 commented 1 year ago

Engine version: latest 0.8.13 You can go to my code repository https://github.com/Alex3474247/OpenJKDF2, I do all my recent merges there. (MotS) When I press F12 to take a screenshot, an exception occurs in ntdll.dll Probably, the procedure that is written in std3d.c, isn't compatible with Windows. image When I press F12 while the player idle camera is rotating: image

ucrtbased.dll!00007ffba2e42e65()    Unknown
ucrtbased.dll!00007ffba2e43003()    Unknown
ucrtbased.dll!00007ffba2e5ab0d()    Unknown

openjkdf2-64.exe!jkgm_write_png(const char pFname, int width, int height, unsigned char paFramebuffer) Line 971 C++ openjkdf2-64.exe!std3D_Screenshot(const char pFpath) Line 3474 C openjkdf2-64.exe!jkGame_Screenshot(...) Line 311 C openjkdf2-64.exe!jkControl_HandleHudKeys(sithThing player, float b) Line 136 C openjkdf2-64.exe!sithControl_Tick(float deltaSecs, int deltaMs) Line 274 C openjkdf2-64.exe!sithMain_Tick(...) Line 309 C openjkdf2-64.exe!jkMain_GameplayTick(int a2) Line 697 C openjkdf2-64.exe!jkMain_GuiAdvance(...) Line 320 C openjkdf2-64.exe!Window_Main_Loop(...) Line 1223 C openjkdf2-64.exe!Window_Main_Linux(int argc, char argv) Line 1336 C openjkdf2-64.exe!SDL_main(int argc, char argv) Line 313 C openjkdf2-64.exe!main_getcmdline() Line 82 C [External Code]

Debug Error!

Program: C:\Users\User\Documents\OpenJKDF2\build\Debug\openjkdf2-64.exe

abort() has been called

(Press Retry to debug the application) openjkdf2-64.exe has triggered a breakpoint.