What must i do in my event query generator to show statistics? C++

Are you sure it’s not an error regarding your constructor script? UEQGLifeBonusGenerator is throwing Object inizalization errors. Did you create the more verbose version of the constructor correctly? Maybe you missed a super call?
in header:

UEQGLifeBonusGenerator (const FObjectInitializer& ObjectInitializer);

cpp

UEQGLifeBonusGenerator::UEQGLifeBonusGenerator (const FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{
// init code here
}

I’m guessing the class is named UEQGLifeBonusGenerator as unreal adds linker garbled info in the front.

Also make sure your initializer code is public

public:
UEQGLifeBonusGenerator (const FObjectInitializer& ObjectInitializer);

Your error also mentions

LNK1169: One or more simultaneously defined symbols were found

Did you include a cpp inside of a cpp?

2 Likes