Unable to package UE5 project with an external plugin

Hi everyone, I’m a school teacher and we’re finishing our thesis project. We’ve ran in a big issue while packaging the project, essentially Unreal is unable to find the nodes and structures coming from an external plugin that we have integrated in the Plugins folder of the project(OpenAIAPI)
The errors given are similar to the following:

UATHelper: Cooking (Windows): LogInit: Display: LogBlueprint: Error: [AssetLog] C:\Users\bigWa\OneDrive\Desktop\UpdatedProjectZip\MetaPedro\MetaPedro\Content\MetaHumans\Pedro\BP_Pedro.uasset: [Compiler] Could not find a function named “OpenAICallGPT3” in ‘BP_Pedro’.

UATHelper: Packaging (Windows): LogInit: Display: LogBlueprint: Error: [AssetLog] C:\Users\bigWa\OneDrive\Desktop\UpdatedProjectZip\MetaPedro\MetaPedro\Content\MetaHumans\Pedro\BP_Pedro.uasset: [Compiler] In use pin no longer exists on node Set Open AIApi Key . Please refresh node or break links to remove pin. from Source: /Game/MetaHumans/Pedro/BP_Pedro.BP_Pedro

UATHelper: Packaging (Windows): LogInit: Display: LogProperty: Error: FStructProperty::Serialize Loading: Property ‘StructProperty /Game/MetaHumans/Pedro/BP_Pedro.BP_Pedro_C:ExecuteUbergraph_BP_Pedro:Temp_struct_Variable_2’. Unknown structure.

We tried refreshing the blueprints that use these nodes, but the errors are still the same! Could anybody help us? Thanks in advance!

I’m guessing this is too late to help with your thesis project issue, but in case you’re still dealing with this/others run into it, I had the exact same set of errors (but for a different plugin/function) and resolved them by:

  1. Ensuring the plugin EngineVersion listed in the .uplugin file matched my actual engine version of 5.1.0 (in my case, I had downloaded the plugins source-code for UE 5.1.0 from its GitHub/added it to my Plugins folder and game module’s Build.cs dependencies list, but the EngineVersion listed in the .uplugin file was "5.0.0" instead of "5.1.0")

  2. Rebuilt and ran my Visual Studio solution

I don’t know why these steps resolved the packaging issues since the plugin/function was working prior to them when playing in viewport and I’ve had plugin/engine version mismatches in the past and packaged without error, but they did :person_shrugging:t2: