Can't Package Game in 4.26 | Assertion failed (Critical Error)

Hey everybody. I recently found out that you should try to package your game as often as possible to ensure it works fine. I decided to attempt to package my game and I got alot of errors. I tried fixing it myself and failed. I went on Fiverr and hired a debugger and he and I were not able to figure it out. He said the line of the code that was causing the compiler error was very interesting and I should post my error on the forums, so here i am!

I will literally pay you if you can fix this. I’m heartbroken and am not sure what to do.

This was the line he was saying was the cause of the main issue:
" 1. UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Assertion failed: NumNewPins == InNewPins.Num() [File:D:/Build/++UE4/Sync/Engine/Source/Editor/BlueprintGraph/Private/K2Node.cpp] [Line: 1104] "

Warning: Failed to find object 'Class /Game/ThirdPersonBP/ThirdPersonOverview.ThirdPersonOverview_C'
Failed to load /Game/Widgets/MainMenu/OptionsMenu/Master Referenced by .....

Did you delete files and rename files and move files around a lot? Did you after that rightclick your folders and select FixUpRedirectors? Any special plugins? Migrated content? Does everything work in Editor?

C:\Users\****\Content\RetroParticles\Particles\Systems\NS_Snow.uasset: The 
**mesh distance field generation** 
is currently not enabled, please check the project settings.

The log suggests this:

The mesh distance field generation is currently not enabled, please check the project settings. Niagara cannot query the distance field otherwise. - Node: Query Mesh Distance Field GPU. Incorrect number of outputs. Can possibly be fixed with a graph refresh. - Node: Query Mesh Distance Field GPU -

I did delete files, and rename files and move files a decent amount. I didn’t, after consulting the Fiverr debugger we did that and those errors still popped up. No special plugins. No migrated content. Everything works perfectly fine in Editor with no errors at all.

Mesh distance field generation is enabled, so im not sure why that’s showing up and/or what I could do to fix that.

I am not familiar with your game so the question might be out of place…

Can you identify in your code the “NumNewPins == InNewPins.Num()” statements?

Could try commenting out sections of code related to this in an attempt to isolate what is causing this error.

Are you using a revision control program like Git? If not, I HIGHLY recommend this. Git has saved me more than once being able to rollback changes.

I would also consider removing NS_Snow.uasset from your game temporarily. Looks like you are getting alot of compilation errors given this. Maybe this is the source of the build failure???

Also, I don’t understand the Errors related to deleting and saving. Does this directory path exist? Are you running out of disk space when building?

I am using 4.26.2. I can build my game for windows.

Hm, okay. About this:

Did you split a node like a Vector2D? That could give an error but should already be fixed since 4.25.
Is this a big project? Can you recreate that project (if it is small) one by one and try to package it? Can you share the project ?

Claim it is not too big. Had 1996 packages attempting to be cooked…

1 Like

I’m not entirely sure what you mean by identify that statement. It’s a default piece of code in the engine that I haven’t modified. I’ve been primarily using BP and only touched my c++ to implement one or two things that weren’t related to that code.

I’ll try removing that.

I’m not using Git, but I am using Perforce for Source Control. I’ve tried my oldest saved build and I still get the same error. The directory path does exist, and I’m definitely not running out of disk space.

I think I did split a Vector2D node. Should i go unsplit it?

This is not a big project in file size. Total is about 5gb for the project. Ive been working on it since July 2022. I could recreate it, but I really would prefer not to.

I can share the project.

Here is an old version before I used source control (still doesn’t work for package): BL00Dexe.zip - Google Drive

Here is the CURRENT version: DesktopWorkspace.zip - Google Drive

Downloaded your current version. I get the same error. Prior to this I get the following error…

UATHelper: Packaging (Windows (64-bit)): LogPackageName: Error: DoesPackageExist: DoesPackageExist FAILED: ‘/Game/Weapons/Shotgun/Striker12_Idle_Striker 12 (Used by petrol sniffers)_Skeleton’ is not a standard unreal filename or a long path name. Reason: Name may not contain the following characters: ’ ’
PackagingResults: Error: DoesPackageExist: DoesPackageExist FAILED: ‘/Game/Weapons/Shotgun/Striker12_Idle_Striker 12 (Used by petrol sniffers)_Skeleton’ is not a standard unreal filename or a long path name. Reason: Name may not contain the following characters: ’ ’
UATHelper: Packaging (Windows (64-bit)): LogUObjectGlobals: Warning: [AssetLog] C:\Users\mjkni\Documents\Unreal Projects\DesktopWorkspace\Content\Weapons\Shotgun\Striker12RM.uasset: Failed to load ‘/Game/Weapons/Shotgun/Striker12_Idle_Striker 12 (Used by petrol sniffers)_Skeleton’: Can’t find file.
PackagingResults: Warning: [AssetLog] C:\Users\mjkni\Documents\Unreal Projects\DesktopWorkspace\Content\Weapons\Shotgun\Striker12RM.uasset: Failed to load ‘/Game/Weapons/Shotgun/Striker12_Idle_Striker 12 (Used by petrol sniffers)_Skeleton’: Can’t find file.
UATHelper: Packaging (Windows (64-bit)): LogPackageName: Error: DoesPackageExist: DoesPackageExist FAILED: ‘/Game/Weapons/Shotgun/Striker12_Idle_Striker 12 (Used by petrol sniffers)_PhysicsAsset’ is not a standard unreal filename or a long path name. Reason: Name may not contain the following characters: ’ ’
UATHelper: Packaging (Windows (64-bit)): LogUObjectGlobals: Warning: [AssetLog] C:\Users\mjkni\Documents\Unreal Projects\DesktopWorkspace\Content\Weapons\Shotgun\Striker12RM.uasset: Failed to load ‘/Game/Weapons/Shotgun/Striker12_Idle_Striker 12 (Used by petrol sniffers)_PhysicsAsset’: Can’t find file.
PackagingResults: Error: DoesPackageExist: DoesPackageExist FAILED: ‘/Game/Weapons/Shotgun/Striker12_Idle_Striker 12 (Used by petrol sniffers)_PhysicsAsset’ is not a standard unreal filename or a long path name. Reason: Name may not contain the following characters: ’ ’

Maybe fix this it will work???

what do you mean by download my current version?

Followed you link for DesktopWorkspace.zip. 7unzip’ed this and loaded this into UE4.26.2. Attempted to build and I get that error prior to the “Critical error:” issue…

So I try to open “Striker12RM” UE says…

I can confirm that PIE and “Standalone Game” “work” in that I can do stuff…

Assign “Striker12SK” as the Skeleton and it takes it; however, when I try to save Striker12RM I get…

that’s new. ever since i made that zip for you. the packaging error was happening before that appeared though.

I would suggest commenting out the Striker12 from the game and see if you can get a successful build.

If you can advise how I can comment the Striker12 out, that would be great. You know your game better than I do… :grin:

i mean do you just want to full on delete it on the version you have? it shouldnt break the game if it’s deleted.

Keep calm, I fixed it for you. Just have to upload

How did you fix it? What did you do?

I did:

  1. Restore missing/wrong references. Created empty files to match these references.
  2. Deleted not used files from explorer (did not show up in the content browser) like MI_LightFlickering and MI_LightOff (maybe broken)
  3. Went down the rabbit hole: ValidateAssets. Found a blueprint which broke everything:
    \Content\Weapons\DualWieldSMGS\DualWieldSMGS and removed it. It’s gone.
  4. Created Skeletons for Shotgun and GyroGun, were broken I think
  5. Checked all files again with FixUpredirectors and ValidateAssets
  6. Tried to package the game => success

Please try it.

2 Likes

OMG I love you I’m going to test it! How much money do you want for fixing it?