Cxbx-Reloaded / game-compatibility

Cxbx-Reloaded game compatibilty list, using GitHub issues
GNU General Public License v2.0
114 stars 29 forks source link

Cold Fear [US-075] [1.01] #434

Open LukeUsher opened 6 years ago

LukeUsher commented 6 years ago

Description

This title crashes due to expecting the HANDLE returned by CreatePixelShader to be a pointer to valid memory, containing the pixel shader definition. Currently, our implementation of CreatePixelShader returns a handle to the host pixel shader, which is not correct behavior.

Status

Previous behavior: None reported

Current behavior: Crashes very shortly after emulation starts.

Additional Information

The title crashes while executing the following code (located at 0x0004F0F0 within the .text segment)

   D3DDevice_CreatePixelShader(&pPSDef, &pHandle);
    for ( i = dword_37D198; memcmp((const void *)(pHandle + i), &pPSDef, 0xF0u); dword_37D198 = i )
      i += 4;

Honestly, I'm a little shocked that the game relies on this behavior.

Xbe.txt

PatrickvL commented 6 years ago

The same issue with D3DDevice_CreatePixelShader is reported in Dino Crisis 3 too (see https://github.com/Cxbx-Reloaded/game-compatibility/issues/114#issuecomment-343683008).

This issue is now tracked at : https://github.com/Cxbx-Reloaded/Cxbx-Reloaded/issues/794

frankyfife commented 6 years ago

Description

Just another test-case message. additional i want to mention, that the intros r showing up (ubisoft, darkworks, renderware). The emulation stops with the message "texture creation error".

Dumps

Xbe.txt KrnlDebug.zip

Status

Previous behavior:

state-crashes

Current behavior:

state-booting

Screenshots

0 1 2

frankyfife commented 6 years ago

Description

well, that was fast. you now reach the menu and settings of the game and can play the intro video. however, the videos flicker very strongly. if you start a new game, the emulator crashes.

see https://youtu.be/eRNfyqeZev8

Status

Previous behavior:

state-booting

Current behavior:

state-interactive

Screenshots

image

image

image

frankyfife commented 6 years ago

Cxbx-Reloaded Version 8b71d404 (May 17 2018)

image

with the last build the menu is no longer (black screen only) visible (but can be used blindly), the intro videos are now played without flickering.