Can't make a project built as library work standalone in UE5

I followed this page and managed to build a working unreal project as a .dll file with it’s corresponding .lib, however it still loads data from the unreal engine folder. What I want is to have all the needed files in a folder (preferably the unreal project folder) such that I can use it on computers that don’t have unreal engine.

I looked through the source code and found out that it’s trying to load the Internationalization data, some .ini files and some plugins. I tried copying these files to the unreal project folder but then the projects just quickly opens and closes.

This has become quite frustrating because the project built as a library and the project built as an executable have the same folders, files and sizes, the only exception being the .exe file is now a .dll file. This leads me to believe that it’s somehow possible to make it work standalone but I just can’t figure it out.

Managed to make it work. After I built the unreal project as a lib I unpacked the .pak file generated by the engine using this tutorial (the .pak file is in [ProjectBuildFolder]/Windows/[ProjectName]/Content/Paks)

The unpacked file contains 2 folders, one named “Engine” and one named after your project. You put these 2 folders in the same folder as the folder of the project you wish to use unreal as a lib in, copy the contents of the unreal project folder into the same named folder from the .pak file and now the project should work without requiring the engine files.

I don’t think you need all the files copied so if you need a smaller size you can try deleting folders and see which are really needed :smiley: .

1 Like