Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max Payne 2 #47

Closed
AlpyneDreams opened this issue Nov 6, 2022 · 8 comments
Closed

Max Payne 2 #47

AlpyneDreams opened this issue Nov 6, 2022 · 8 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@AlpyneDreams
Copy link
Owner

AlpyneDreams commented Nov 6, 2022

  • May or may not work with unmapping
  • LockRect - Invalid Call - Rhedox
    • Locking a texture that's already locked. Perhaps we are returning the wrong tex/surf somewhere, or failing to unlock something.
  • Likely not an issue: Render states 164 and 136 (see Unimplemented render states #46)
@AlpyneDreams AlpyneDreams added bug Something isn't working game help wanted Extra attention is needed labels Nov 6, 2022
@AlpyneDreams
Copy link
Owner Author

An apitrace will make things a lot easier if possible! However I can look into trying the game myself at some point.

@Blisto91
Copy link

Blisto91 commented Nov 6, 2022

Will look into apitrace. Can't remember if I've tried or not.

The game indeed crashes for me unless i turn off unmapping.
There is also an issue where the text in the main menu is invisible. This is a regression as it didnt used to be the case. Haven't bisected yet or tried with the latest few commits

@Blisto91
Copy link

Blisto91 commented Nov 6, 2022

Now crashes during loading before main menu since 25b4860

@Blisto91
Copy link

Blisto91 commented Nov 7, 2022

Now able to get to main menu. Tho text is still invisible so i need to look into that.

@AlpyneDreams
Copy link
Owner Author

I have fixed a couple tangentially related things however it still crashes. It seems the problem is not that we fail to unlock a texture, but that the program has an access violation (0xc0000005) and never gets to call UnlockRect.

@AlpyneDreams
Copy link
Owner Author

So presumably a bad pitch is being output and the game is writing out of bounds?

@AlpyneDreams
Copy link
Owner Author

AlpyneDreams commented Nov 11, 2022

I have fixed a couple tangentially related things however it still crashes. It seems the problem is not that we fail to unlock a texture, but that the program has an access violation (0xc0000005) and never gets to call UnlockRect.

Can't reproduce this now. It's just locking a surface twice. Can't figure out why.

Tested on 7cccee1, with d3d9.textureMemory = 0, but no dice. This may be a vendor issue as I am on Intel.

@AlpyneDreams
Copy link
Owner Author

Tested on latest master (f8e1f46) on a different Intel GPU. No dice

@AlpyneDreams AlpyneDreams removed the game label Feb 23, 2023
AlpyneDreams added a commit that referenced this issue Jul 3, 2023
AlpyneDreams added a commit that referenced this issue Jul 3, 2023
AlpyneDreams added a commit that referenced this issue Jul 7, 2024
AlpyneDreams added a commit that referenced this issue Jul 7, 2024
AlpyneDreams added a commit that referenced this issue Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants