Blueprint libraries are invisible at standalone runtime, fail at packaging time

Blueprint libraries are still broken in the final version of 4.14.0
They work fine in editor, but as standalone, they’re just not there, and they’re unpackageable.

UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.11.16-00.47.11:524][  0]LogInit:Display: LogBlueprint:Error: [Compiler FirstPersonCharacter] Error Could not find a function named "BPlibtestSampleFunction" in 'FirstPersonCharacter'.
UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: Make sure 'FirstPersonCharacter' has been compiled for  K2Node_CallFunction_12 from Source: /Game/FirstPersonCPP/Blueprints/FirstPersonCharacter.FirstPersonCharacter
UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.11.16-00.47.11:535][  0]LogInit:Display: LogBlueprint:Error: [Compiler FirstPersonCharacter] Error This blueprint (self) is not compatible with ' self ', therefore that pin must have a connection. from Source: /Game/FirstPersonCPP/Blueprints/FirstPersonCharacter.FirstPersonCharacter
UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.11.16-00.47.11:546][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Script/BPlibtest'
UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.11.16-00.47.11:557][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Script/BPlibtest': Can't find file '/Script/BPlibtest'
UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.11.16-00.47.11:568][  0]LogInit:Display: LogLinker:Warning: Can't find file for asset '/Script/BPlibtest' while loading D:/Unreal/Projects/newtest414/Content/FirstPersonCPP/Blueprints/FirstPersonCharacter.uasset.
UATHelper: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.11.16-00.47.11:579][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load 'D:/Unreal/Projects/newtest414/Content/FirstPersonCPP/Blueprints/FirstPersonCharacter.uasset': Can't find file for asset '/Script/BPlibtest' while loading D:/Unreal/Projects/newtest414/Content/FirstPersonCPP/Bluepri
nts/FirstPersonCharacter.uasset.

Steps to reproduce:

  1. Create new project

  2. Add a new Blueprint Library plugin

  3. Create a blueprint function call like in the image below (I put mine in firstpersoncharacter)

  4. Run in viewport, see a list of -1 as expected

  5. Run in standalone, nothing gets printed

  6. Try packaging, fails as shown above

  7. (Changing the type from Developer to Runtime just in case it had anything to do with the weirdness related to [this other bug][1] doesn’t change anything)

115072-bplibrarybroken.png

Also, any USTRUCT added to the blueprint library will be “invalid” when running as standalone.

115073-bplibraryustructbroken.png

Hi turfster,

When you say ‘Blueprint Library plugin’ are you referring to a ‘Blueprint Library Function’?

If so, I attempted to reproduce this in a new blank project and the 3rd Person template, but I couldn’t get your results. -1 prints in PIE, Standalone, and the packaged project.

Could you upload a small test project that has the issue?

Hm.

Did further testing, and this actually seem to be two different problems that intersected in my test cases.

If I don’t use the starter content as a base or create a blueprint from scratch, everything runs and packages fine, but the default plugin type of “Developer” means it won’t load when packaged. Maybe change the default Type for BP libraries, since it makes no sense for them to only load during development?

The other problems I was having seem to be related to specifically extending the FirstPersonCharacter blueprint, bizarrely. Create a new blueprint, everything works fine. Edit the FPC BP and add it to the event graph, get random errors.

Sorry.

(Can’t really make a small test project for the FPC problem, since the starter content alone makes the archive balloon to 82mb)

Okay, I see what you mean. So maybe a feature request to change that particular plugin type from Developer to Runtime. Would that work for you?

As for the second issue you mentioned about the FirstPersonCharacter bp. 82 mb is to large to upload here but if you have a test project you don’t mind sharing, you can send me a link to download it over the Forums. Just select the ‘Send Private Message’ link on the left.

Thank you for the private message with the video.

I created the Feature Request I mentioned above. It’s JIRA UE-38822. Please keep in mind that a feature request isn’t a guarantee on implementation but our developers will be looking into it.

I was also able to reproduce the behavior where the FirstPersonCharacter bp will not work with the Blueprint Library plugin in Standalone Game or a packaged project. It is JIRA UE-38826. Please use that link to monitor the status of the bug and feel free to vote on it as well.

Cheers,

TJ