How to implement custom modules in UE5

I’m unable to get modules to work in packaged builds for UE5 projects, and have reproduced the issue here. Compiling and running in PIE is fine, but when launching a packaged build, I get an error:

image

We can see from the log output (I’ve pasted it into the repo’s readme) that the module is found and compiled during the build, so unsure what could be causing this problem.

I first noticed this in a project I had upgraded from UE5 early access to UE5.0 full release, and I believe the issue wasn’t present before. Has something changed WRT how modules work (how they’re defined, how dependencies are declared… etc)?

EDIT: There’s been some discussion and brainstorming about this on the discord - none of us can figure out what’s wrong here Discord

Haven’t read through the discord but shouldn’t the second parameter to the IMPLEMENT_MODULE macro match exactly the name of the module? So Foo instead of FFooModule.

2 Likes

Ah… thank you!! I must be blind, didn’t see this in the original repo or this little repro repo.

A compilation error would have been really helpful! Due to the way only packaged builds were failing, I figured this was some kind of configuration problem… hours lost spinning my wheels in that direction :confused:

Thx again for taking a look :slight_smile: