static_assert errors
Closed this issue · 3 comments
For some reason the game modified TSet to be 0x80 instead of 0x50.
To fix this properly you'd need to reverse engineer their TSet implementation. But instead of doing that you could just add 0x30 padding at the end of TSet and just never access any TSet/TMap. After adding the padding you need to change the static_asserts asserting that sizeof(TSet) == 0x50
and sizeof(TMap) == 0x50)
(both in UnrealContainers.hpp). You also need to remove the 0x30 padding at the end of UDataTable.
One last bug unrelated to the one above is a struct without members that contains 1 byte of padding. Just remove the padding there.
For some reason the game modified TSet to be 0x80 instead of 0x50.
To fix this properly you'd need to reverse engineer their TSet implementation. But instead of doing that you could just add 0x30 padding at the end of TSet and just never access any TSet/TMap. After adding the padding you need to change the static_asserts asserting that
sizeof(TSet) == 0x50
andsizeof(TMap) == 0x50)
(both in UnrealContainers.hpp). You also need to remove the 0x30 padding at the end of UDataTable.One last bug unrelated to the one above is a struct without members that contains 1 byte of padding. Just remove the padding there.
thank you very much
yes, that helped, thanks