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

Black Myth: Wukong - static_assert failed #223

Open
Lyall opened this issue Aug 22, 2024 · 5 comments
Open

Black Myth: Wukong - static_assert failed #223

Lyall opened this issue Aug 22, 2024 · 5 comments

Comments

@Lyall
Copy link

Lyall commented Aug 22, 2024

Many thanks for your work on Dumper-7, it's been really useful for some of my own projects!

When trying to dump Black Myth: Wukong, first of all the game crashes while searching for GObjects. Setting the offset seems to work and allows the dump to finish.

 ObjectArray::Init(0x1D7700B0, 1024 * 64, true);

However the resulting SDK has a ton of static_assert failed errors.

image

I'm not sure exactly what's causing this. I thought it might a unicode thing with the game being developed in China but the Unicode-Names branch doesn't allow for specifying a GObjects offset (or at least I couldn't figure it out). The game has a free benchmark that seems to have the same issues so it might be helpful for testing.

Also here is a zip of the dump that was generated.

5.0.0-0+++UE5+Release-5.0-b1.zip

Repository owner deleted a comment from freddymuch Aug 22, 2024
@Fischsalat
Copy link
Collaborator

For some reason a bunch of enums have the underlaying type uint32 when it should be uint8. Maybe some auto-found offset for the underlaying type is wrong.

@Lyall
Copy link
Author

Lyall commented Aug 23, 2024

Replacing the engine enums that were uint32 with uint8 appears to have solved it for me. It compiles fine now and seems to work okay. Thank you!

@DearXiaoGui
Copy link

Replacing the engine enums that were uint32 with uint8 appears to have solved it for me. It compiles fine now and seems to work okay. Thank you!

屏幕截图 2024-08-24 185922 I'm still getting the "static_assert failed" error. Can you tell me how to fix it?

@Lyall
Copy link
Author

Lyall commented Aug 25, 2024

I'm still getting the "static_assert failed" error. Can you tell me how to fix it?

Open Engine_structs.hpp. Change enums from uint32 to uint8. That's all you need to do as I mentioned in the previous post.

@x1a0reN
Copy link

x1a0reN commented Sep 7, 2024

Thank you very much for your experience, it is very useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants