[Dead by daylight] Build errors #375

Open
opened 2025-08-03 09:30:32 +02:00 by kidiron08 · 8 comments
kidiron08 commented 2025-08-03 09:30:32 +02:00 (Migrated from github.com)

'FTableRowBase': base class undefined

Image

static_assert failed: 'Wrong size on FGameplayTagTableRow'

Image

static_assert failed: 'Member 'FGameplayTagTableRow::Tag' has a wrong offset!'

Image

static_assert failed: 'Member 'FGameplayTagTableRow::DevComment' has a wrong offset!'

Image

static_assert failed: 'Wrong size on FRestrictedGameplayTagTableRow'

Image

static_assert failed: 'Member 'FRestrictedGameplayTagTableRow::bAllowNonRestrictedChildren' has a wrong offset!'

Image
'FTableRowBase': base class undefined <img width="1920" height="1029" alt="Image" src="https://github.com/user-attachments/assets/dfca8b7a-12d1-4b03-8eda-8ce8d8c6baa4" /> static_assert failed: 'Wrong size on FGameplayTagTableRow' <img width="1920" height="1037" alt="Image" src="https://github.com/user-attachments/assets/c3a48a4b-ac1d-4688-ac04-bf580946ecf2" /> static_assert failed: 'Member 'FGameplayTagTableRow::Tag' has a wrong offset!' <img width="1920" height="1034" alt="Image" src="https://github.com/user-attachments/assets/776e1100-6a47-4f4c-a15d-1798ebab2b19" /> static_assert failed: 'Member 'FGameplayTagTableRow::DevComment' has a wrong offset!' <img width="1920" height="1037" alt="Image" src="https://github.com/user-attachments/assets/a14de6e0-7d0f-4c42-8fb8-199c3a651257" /> static_assert failed: 'Wrong size on FRestrictedGameplayTagTableRow' <img width="1920" height="1012" alt="Image" src="https://github.com/user-attachments/assets/7404a1c4-a70a-4456-a0c3-aef10a4883b1" /> static_assert failed: 'Member 'FRestrictedGameplayTagTableRow::bAllowNonRestrictedChildren' has a wrong offset!' <img width="1920" height="987" alt="Image" src="https://github.com/user-attachments/assets/985910c6-00a9-4ec8-934c-4a46740d43e7" />
Fischsalat commented 2025-08-03 11:31:29 +02:00 (Migrated from github.com)

These are cyclic dependencies from UE and I need to fix my algorithm to find and fix them.

To manually fix this you can copy FTableRowBase to every of the headers that it's missing in and append a count at the end (FTableRowBase2). The rename all of the occurrences in that file to that.

These are cyclic dependencies from UE and I need to fix my algorithm to find and fix them. To manually fix this you can copy FTableRowBase to every of the headers that it's missing in and append a count at the end (FTableRowBase2). The rename all of the occurrences in that file to that.
kidiron08 commented 2025-08-18 05:10:42 +02:00 (Migrated from github.com)

Now after running the latest commit im getting this error

Image
Now after running the latest commit im getting this error <img width="1557" height="572" alt="Image" src="https://github.com/user-attachments/assets/12b8ab1f-2e19-43f0-a805-c6bdc7c4afe8" />
Fischsalat commented 2025-08-18 11:34:26 +02:00 (Migrated from github.com)

Look at the output windows for more details as to where that is used.

Look at the output windows for more details as to where that is used.
kidiron08 commented 2025-08-18 21:27:17 +02:00 (Migrated from github.com)
Image
<img width="922" height="122" alt="Image" src="https://github.com/user-attachments/assets/c4f0e02c-4752-45a8-a9fa-690fb487d681" />
Fischsalat commented 2025-08-18 23:20:48 +02:00 (Migrated from github.com)

Any more info? A little more of the output history.

Any more info? A little more of the output history.
kidiron08 commented 2025-08-22 01:49:56 +02:00 (Migrated from github.com)

im so sorry for the delay

1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6359,2): warning C4309: 'initializing': truncation of constant value
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6359,2): warning C4369: 'SDK::ETextureEncodeSpeedOverride': enumerator value '256' cannot be represented as 'unsigned char', value is '256'
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6594,2): warning C4309: 'initializing': truncation of constant value
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6594,2): warning C4369: 'SDK::EStreamingSourcePriority': enumerator value '256' cannot be represented as 'unsigned char', value is '256'
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: 'UC::TPair<KeyElementType,ValueElementType>::First' uses undefined struct 'SDK::FGameplayTag'
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: with
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: [
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: KeyElementType=SDK::FGameplayTag,
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: ValueElementType=SDK::TSoftObjectPtrSDK::UMaterialInterface
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: ]
1>(compiling source file '/Source/dllmain.cpp')
1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11):
1> the template instantiation context (the oldest one first) is
1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(16182,70):
1> see reference to class template instantiation 'UC::TMap<SDK::FGameplayTag,SDK::TSoftObjectPtrSDK::UMaterialInterface>' being compiled
1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(563,21):
1> see reference to class template instantiation 'UC::TSet<UC::TPair<KeyElementType,ValueElementType>>' being compiled
1> with
1> [
1> KeyElementType=SDK::FGameplayTag,
1> ValueElementType=SDK::TSoftObjectPtrSDK::UMaterialInterface
1> ]
1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(503,49):
1> see reference to class template instantiation 'UC::TPair<KeyElementType,ValueElementType>' being compiled
1> with
1> [
1> KeyElementType=SDK::FGameplayTag,
1> ValueElementType=SDK::TSoftObjectPtrSDK::UMaterialInterface
1> ]
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(56,2): warning C4309: 'initializing': truncation of constant value
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(56,2): warning C4369: 'SDK::EStoryNodeState': enumerator value '256' cannot be represented as 'unsigned char', value is '256'
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(110,2): warning C4309: 'initializing': truncation of constant value
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(110,2): warning C4369: 'SDK::EChallengeSetMask': enumerator value '256' cannot be represented as 'unsigned char', value is '256'
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1404,2): warning C4309: 'initializing': truncation of constant value
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1404,2): warning C4369: 'SDK::EArchiveNodeType': enumerator value '256' cannot be represented as 'unsigned char', value is '256'
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1428,2): warning C4309: 'initializing': truncation of constant value
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1428,2): warning C4369: 'SDK::EQuestOperationType': enumerator value '256' cannot be represented as 'unsigned char', value is '256'
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\AkAudio_structs.hpp(332,2): warning C4309: 'initializing': truncation of constant value
1>(compiling source file '/Source/dllmain.cpp')
1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\AkAudio_structs.hpp(332,2): warning C4369: 'SDK::EAkMidiEventType': enumerator value '256' cannot be represented as 'unsigned char', value is '256'

im so sorry for the delay 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6359,2): warning C4309: 'initializing': truncation of constant value 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6359,2): warning C4369: 'SDK::ETextureEncodeSpeedOverride': enumerator value '256' cannot be represented as 'unsigned char', value is '256' 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6594,2): warning C4309: 'initializing': truncation of constant value 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(6594,2): warning C4369: 'SDK::EStreamingSourcePriority': enumerator value '256' cannot be represented as 'unsigned char', value is '256' 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: 'UC::TPair<KeyElementType,ValueElementType>::First' uses undefined struct 'SDK::FGameplayTag' 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: with 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: [ 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: KeyElementType=SDK::FGameplayTag, 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: ValueElementType=SDK::TSoftObjectPtr<SDK::UMaterialInterface> 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): error C2079: ] 1>(compiling source file '/Source/dllmain.cpp') 1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(212,11): 1> the template instantiation context (the oldest one first) is 1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\Engine_structs.hpp(16182,70): 1> see reference to class template instantiation 'UC::TMap<SDK::FGameplayTag,SDK::TSoftObjectPtr<SDK::UMaterialInterface>>' being compiled 1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(563,21): 1> see reference to class template instantiation 'UC::TSet<UC::TPair<KeyElementType,ValueElementType>>' being compiled 1> with 1> [ 1> KeyElementType=SDK::FGameplayTag, 1> ValueElementType=SDK::TSoftObjectPtr<SDK::UMaterialInterface> 1> ] 1> C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\UnrealContainers.hpp(503,49): 1> see reference to class template instantiation 'UC::TPair<KeyElementType,ValueElementType>' being compiled 1> with 1> [ 1> KeyElementType=SDK::FGameplayTag, 1> ValueElementType=SDK::TSoftObjectPtr<SDK::UMaterialInterface> 1> ] 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(56,2): warning C4309: 'initializing': truncation of constant value 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(56,2): warning C4369: 'SDK::EStoryNodeState': enumerator value '256' cannot be represented as 'unsigned char', value is '256' 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(110,2): warning C4309: 'initializing': truncation of constant value 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(110,2): warning C4369: 'SDK::EChallengeSetMask': enumerator value '256' cannot be represented as 'unsigned char', value is '256' 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1404,2): warning C4309: 'initializing': truncation of constant value 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1404,2): warning C4369: 'SDK::EArchiveNodeType': enumerator value '256' cannot be represented as 'unsigned char', value is '256' 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1428,2): warning C4309: 'initializing': truncation of constant value 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\DBDSharedTypes_structs.hpp(1428,2): warning C4369: 'SDK::EQuestOperationType': enumerator value '256' cannot be represented as 'unsigned char', value is '256' 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\AkAudio_structs.hpp(332,2): warning C4309: 'initializing': truncation of constant value 1>(compiling source file '/Source/dllmain.cpp') 1>C:\Users\Austin\Documents\Visual Studio 2022 Preview\Projects\Dead By Daylight Internal\Dead By Daylight Internal\SDK\SDK\AkAudio_structs.hpp(332,2): warning C4369: 'SDK::EAkMidiEventType': enumerator value '256' cannot be represented as 'unsigned char', value is '256'
Fischsalat commented 2025-08-22 11:08:52 +02:00 (Migrated from github.com)

If you don't need it just replace the occurrences of FGameplayTag with something else that compiles and doesn't change the size.

If you don't need it just replace the occurrences of FGameplayTag with something else that compiles and doesn't change the size.
igromanru commented 2025-08-31 09:28:39 +02:00 (Migrated from github.com)

After using D7 to generate Dead by Daylight SDK on Steam and Epic Games, I can tell that the only problem is in the GameplayTags_structs.hpp.

In the GameplayTags_structs.hpp remove the line #include "Engine_structs.hpp".
Add a copy of the FTableRowBase and rename it to something else like FTableRowBase2, like this:
Image

Then change struct FGameplayTagTableRow : public FTableRowBase to struct FGameplayTagTableRow : public FTableRowBase2.
Image
Done.

The issue can be closed, if you ask me.

After using D7 to generate Dead by Daylight SDK on Steam and Epic Games, I can tell that the only problem is in the `GameplayTags_structs.hpp`. In the `GameplayTags_structs.hpp` remove the line `#include "Engine_structs.hpp"`. Add a copy of the `FTableRowBase` and rename it to something else like `FTableRowBase2`, like this: <img width="560" height="568" alt="Image" src="https://github.com/user-attachments/assets/d17e05c6-5e32-4702-8958-9f73b0ddce95" /> Then change `struct FGameplayTagTableRow : public FTableRowBase` to `struct FGameplayTagTableRow : public FTableRowBase2`. <img width="644" height="276" alt="Image" src="https://github.com/user-attachments/assets/17caeea7-cf95-41b1-8404-227bb2332992" /> Done. The issue can be closed, if you ask me.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
software-migration-backups/Dumper-7-17-05-2026#375
No description provided.