Blueprint internal events are not cooked

Hi guys,

It seems that something is wrong when cooking blueprints with nodes that creating internal events.

I’ve created TimeManager Actor which I will use to provide quick event system for artists. I can get it to work while simulating in editor but it’s not cooked properly. Actor is spawning, ticking etc but UFunction is not in the FuncMap.

Custom Node I created is based on code that K2Node_MatineeController is using. Everything seems fine but it still doesn’t work.

I’ve made a simple project that contains plugin with c++ code.

[Project][1]

U can use this with 4.9.*. It will compile on first time you open the project. To check how it behaves in game just simply package it. There is almost no content etc. All required information will be displayed on the left top corner of the screen. Events are fired at 5 and 10 seconds for test. This can be easily changed in property panel.

I made this topic because there was no response for this thread:

[Thread][2]

So is there any solution to solve this issue without changing engine code?

https://dl.dropboxusercontent.com/u/900840/TMTest.zip
[2]: How to cook custom K2Node_MatineeController? - Blueprint - Epic Developer Community Forums

Hey .Wiech,

In order to better assist you, we are going to need some additional information. Could you please explain exactly what is happening and what you feel like the bug is within your project, or with the blueprint nodes? The more detailed you can explain this, the quicker we can attempt to resolve or bug the situation.

Looking forward to hearing back from you, thanks!

Hi ,

I believe the problem is in the blueprint nodes. My plugin is divided into Editor Module and Runtime Module. In this case, I can’t use blueprint nodes in the runtime module so obviously they are in the editor module. Unfortunately when cooking, I got errors that blueprint nodes can’t find this module so in my opinion they are just ignored.

[Cooking log][1]

The reason I’m assuming that this problem lays inside blueprint nodes is that my custom blueprint node is in fact a copy of K2Node_MatineeController. The only difference is that I’m not using matinee actor but my custom actor. I believe matinee is specially treated during cooking process. You can debug the cooking process by opening my project if there is need to do so.
I’m also assuming that creation of internal blueprint events should be possible for any node that’s why I think it is a bug.
It works perfectly in Simulate in Editor.

https://dl.dropboxusercontent.com/u/900840/TMCookingLog.txt

Here are the warnings/errors that I’ve found within the log that you provided. Have you looked over these files and plugins and made sure they’re not included within your project folders or referenced anywhere within your project?

 MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.03:721][  0]LogLinker:Warning: Can't find file '/Script/TMEditor'
 MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.03:721][  0]LogUObjectGlobals:Warning: Failed to load '/Script/TMEditor': Can't find file '/Script/TMEditor'
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:395][  0]LogInit:Display: LogLinker:Warning: Asset '../../../Engine/Plugins/Runtime/LeapMotionController/Content/LM_PassthroughMaterial.uasset' has been saved with empty engine version. The asset will be loaded but may be incompatible.
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:396][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Engine/Tutorial/SubEditors/PersonaAnimEditorTutorial.PersonaAnimEditorTutorial_C'
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:396][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/MobileResources/HUD/VirtualJoystick_Thumb.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:396][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorResources/S_Actor.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:396][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/Maps/Templates/Thumbnails/Default.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:397][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/ParticleSystems/PSysThumbnail_NoImage.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:397][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/ParticleSystems/PSysThumbnail_OOD.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:397][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorLandscapeResources/DataLayer.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:397][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineFonts/Roboto.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:398][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/Widget3DPassThrough_Translucent.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:398][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/Widget3DPassThrough.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:398][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/Functions/Engine_MaterialFunctions02/Texturing/ScreenAlignedUVs.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:398][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineResources/WhiteSquareTexture.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:399][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/Functions/Engine_MaterialFunctions01/Shading/PowerToRoughness.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:399][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/Functions/Engine_MaterialFunctions01/Shading/ConvertFromDiffSpec.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:400][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/WorldGridMaterial.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:400][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/Functions/Engine_MaterialFunctions01/Opacity/CameraDepthFade.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:400][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/T_Default_Material_Grid_M.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:401][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/T_Default_Material_Grid_N.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:401][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/DefaultDeferredDecalMaterial.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:401][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/DefaultDiffuse.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:402][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/DefaultLightFunctionMaterial.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:402][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/DefaultPostProcessMaterial.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:402][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/Functions/Engine_MaterialFunctions02/Utility/BreakOutFloat2Components.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:403][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineResources/DefaultTexture.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:403][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/Widget3DPassThrough_Translucent_OneSided.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:403][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/Widget3DPassThrough_Opaque.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:403][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/Widget3DPassThrough_Opaque_OneSided.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:404][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/Widget3DPassThrough_Masked.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:404][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/Widget3DPassThrough_Masked_OneSided.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:404][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineDamageTypes/DmgTypeBP_Environmental.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:404][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMeshes/Sphere.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:405][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineFonts/RobotoDistanceField.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:405][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineMaterials/DefaultTextMaterialOpaque.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:405][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorResources/S_Trigger.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:405][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineResources/GradientTexture0.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:406][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EngineResources/Black.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:406][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Float.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:406][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Director.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:407][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Event.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:407][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Anim.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:407][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Fade.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:408][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Move.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:408][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Slomo.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:408][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_ColorTrack.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:409][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MAT_Groups_Toggle.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:409][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_AudioMaster.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:409][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Sound.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:410][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MatineeGroups/MAT_Groups_Vector.uasset
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.04:410][  0]LogInit:Display: LogSavePackage:Warning: Finished SavePackage D:/CustomProjects/TMTest/Engine/Content/EditorMaterials/MAT_Groups_Visibility.uasset

Those are assets that always gives warnings even if You open empty template. My plugin contains 2 classes, Blueprint Node Class and Custom Actor class without any meshes etc. After that I made blueprint based on this actor with single Sphere component and made 1 colour basic material. There is no possibility that I’m referencing this anywhere in my code or assets.

I will try to search for any of those and try to fix those warning tomorrow but I don’t think that’s the case.

Hi ,

I checked from pure c++ project and my project. In the link below I listed warnings that differs in both files. In addition, most of what you pasted here are warnings that indicates assets are successfully saved.

[Diff Log][1]

I think the problem lies here:

MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.03:721][  0]LogLinker:Warning: Can't find file '/Script/TMEditor'
MainFrameActions: Cooking (Windows): UE4Editor-Cmd: [2015.10.16-09.25.03:721][  0]LogUObjectGlobals:Warning: Failed to load '/Script/TMEditor': Can't find file '/Script/TMEditor'

Probably cooking process can’t handle plugins with Editor module inside if there are classes for custom nodes.

https://dl.dropboxusercontent.com/u/900840/TMTestLogDiff.txt

Hey,

You are right, it looks as though the Editor can’t find the file /Script/TMEditor while loading your TMTest.umap.

Here is some links to documentation on Plugins:

  • [Plugins Documentation][1]
  • [Plugins Wiki][2]

If you find that you’re not able to get around this plugin issue, I would suggest zipping up your project and providing the link to download it and providing that link through a private message on the forums.

Looking forward to hearing back from you. :slight_smile:

Plugins in Unreal Engine | Unreal Engine 5.1 Documentation
[2]: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

Hi ,

I will just add that I made another test. Putting the same classes from my plugin into the engine itself works perfectly fine. Everything is cooked and I can use my functionality in game.

EDIT: Private message was sent.

,

The missing “/Script/TMEditor” warning looks to be a native class that has been deleted, renamed or moved. It is being referenced somewhere within your project.

We believe that your problem is that your editor module is set to “EditorNoCommandlet” in the plugin file, but it is needed during the cooking process (which is a commandlet). So if you open up your plugin file within a program like Notepad++, you could change “EditorNoCommandlet” to “Editor” and it should fix that issue for you.

Please let me know if you happen to run into any additional complications, thanks!

This works perfectly fine for cooking. I’m almost sure that didn’t work earlier but it doesn’t matter :slight_smile:
There is little problem still. It seems that it doesn’t work in two cases: Mobile Preview and Standalone Game. Is there anything special that should be done to make this work? Should I post another question for this?