Encryqed / Dumper-7

Unreal Engine SDK Generator
744 stars 189 forks source link

Black Myth: Wukong - static_assert failed #223

Open Lyall opened 2 months ago

Lyall commented 2 months ago

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

Fischsalat commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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