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

The game crashes when a certain 3D Shadow limit is exceeded #9

Open
xezon opened this issue Sep 27, 2021 · 1 comment
Open

The game crashes when a certain 3D Shadow limit is exceeded #9

xezon opened this issue Sep 27, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xezon
Copy link
Owner

xezon commented Sep 27, 2021

The game crashes when a certain 3D Shadow limit (4096) is exceeded.

Can be tested in test map:
https://github.com/xezon/GeneralsGamePatch/tree/main/Maps/Any/!TestScorpionShadowLimit513

It is W3DBufferManager that has 4096 buffer size.

Thyme has DX8VertexBufferClass and DX8IndexBufferClass reversed, which use the W3DBufferManager.

@xezon xezon added the bug Something isn't working label Sep 27, 2021
@xezon xezon self-assigned this Sep 27, 2021
@xezon
Copy link
Owner Author

xezon commented Sep 27, 2021

Try to redirect buffer access to custom larger buffer. Buffer struct size can be determined by trial and error using the test map above or by looking at memory of layout of buffer itself. Buffer address will reveal itself near the asserts that the World Builder executable has for exceeding the buffer limits. Then data breakpoint can be put on buffer to find all places it is access from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant