-
Notifications
You must be signed in to change notification settings - Fork 96
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
[Dd7to9] Tonic Trouble #357
Comments
I added support for Width, Height and Pitch flags for |
Now the game crashes shortly after launching (still with just black); only errors/warnings in the logs are the expected
|
The crash could be related to another issue. What build number did you test in your first test? |
In both tests I compiled from the latest available commit. |
Just by chance, try enabling the |
Unfortunately it still seems to crash with |
Ok, if you can get me the full debug log I can take a look at it when I have some time. |
I have found the issue; ddraw is reporting too many texture formats and overflowing a fixed-size buffer created by the game to store all enumerated formats. This is a common problem with games from this era; DxWnd, ddrawcompat and even Windows itself (DirectXTrimTextureFormats shim) have fixes for this, I think it would be a good idea to have one here too. Only other problem I have seen so far is that the blue background behind text dialogue is invisible, making it very hard to read some text: This also happens on some PCs from the time too, but not all of them; DDrawCompat and dgVoodoo both fix the issue (though it was broken on one dgVoodoo build, dege claims it is undefined behaviour) |
Oh, very good. Thanks for tracking this down. I added an option for
Interesting. I will have to look at this later. It looks like it is caused by "out-of-range z-coordinates". |
Can confirm this fixes the issue! Thanks for adding this option so quickly. |
Thanks for testing! I did not have any good way to test this as I have no games that crash like this. As far as the "out-of-range z-coordinates", that requires a lot more work. I have to decode all the vertexes to find the z coordinates. dgVoodoo2 probably already does that. But dxwrapper just passes the vertexes to d3d9 as they are without decoding them. |
Tonic Trouble (which uses the same engine as Rayman 2) shows a black screen on launch with Dd7to9 enabled. In the log I get these errors:
Additionally, when running GXSetup.exe, the resolution is changed to 640x480; this doesn't happen with system ddraw or any other wrappers.
The text was updated successfully, but these errors were encountered: