UE4Editor-projectName.dll missing

Hi, so im still new to UE4 but recently my project can’t be opened, it was fine for several weeks til i opened it yesterday the error says “UE4Editor-projectname.dll is missing or built with different engine version. Would you like to recompile it?” even though i created&open it using the 4.18(i also i have the 4.17 too) also i can open other project and create project just fine. So i have been looking for solution on internet and here what i have done so far:
-Deleting saved,intermediate,.vscode,and binaries then try to open it with UE4 Editor
-try to uncheck the read only on projrect folder
-try to delete the last code i write because i thought that was the problem(im following batterycollector tutorial where she edit the Character.cpp and Character.h)

and some suggestion said that i need to compile it manually using VS but unfortunately im using VS code so whenever i tried to generate visual studio file it always come up with .vscode folder and no sln file to open with VS.
Here what i can get during the build(it close immediately):

Also if possible i want to know what cause this error and how to prevent it for later project, thank you very much ^^

Hm… something wrong in BatteryPickup.cpp with IsCollected Implementation, I would need to see the whole code for more Information (inclusive the header file).

When you compile with VS, do get get a more specific error message? Like line number or maybe missing declaration in .hpp file or something?

the project still run perfectly last time because i’m following battery collector tutorial until the last tutorial about editing a TPS character.cpp also TPS character.h and i have some error on TPS character.cpp because i’m using attachTo which happen already deprecated. but since my laptop battery dying i saved it and close it, the next time i opened it, i got “UE4Editor-projectName.dll missing” error and i thought i need to fix the error on my code so i fixed it but still no luck those error on my screenshoot still appear

Here the BatteryPickup.cpp code: pastebin.com/cHgqj7iX

You defined IsCollected_Implementation, not WasCollected!

No, i already checked i use WasCollected both on .cpp & .h

Try to delete Intermediate folder inside your project and rebuild your project

Already tried to delete saved,intermediate,.vscode,and binaries folder but still no luck :frowning:

Can you post your entire BatteryPickup.h file?

Here is the battery pickup.h pastebin.com/8Zi806CG

Finally i’m able to fix this problem, and it was located on my Pickup.h there was a misnaming on my function after i fixed it. Then i try to load up the project again, it was successfully built :slight_smile:

Thank you very much Scienziatogm for your help, you help me pointing out my problem and this really a good experience especially since im still learning and new to UE4,so i can fix this problem in future if something like this happen again