Unreal 5.4 problem with a packaged game! Server spawns the character and client disconnecting with 'Failed to load package' error.

You need to fix engine codes:

  • In Character.h, FRepRootMotionMontage struct.
  • (If you use gameplayability) In GameplayAbilityRepAnimMontage.h, FGameplayAbilityRepAnimMontage struct.

Try to mark NotReplicated on UPROPERTY or delete variable AnimMontage_DEPRECATED

In Character.h

#if WITH_EDITORONLY_DATA
    /** AnimMontage providing Root Motion */
    UPROPERTY(NotReplicated, meta = (DeprecatedProperty, DeprecationMessage = "Use the GetAnimMontage function instead"))
    TObjectPtr<UAnimMontage> AnimMontage_DEPRECATED = nullptr;
#endif

In GameplayAbilityRepAnimMontage.h,

#if WITH_EDITORONLY_DATA
	/** AnimMontage ref */
	UPROPERTY(NotReplicated, meta = (DeprecatedProperty, DeprecationMessage = "Use the GetAnimMontage function instead"))
	TObjectPtr<UAnimMontage> AnimMontage_DEPRECATED;
#endif
5 Likes