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

**URL:** <https://forums.unrealengine.com/t/unreal-5-4-problem-with-a-packaged-game-server-spawns-the-character-and-client-disconnecting-with-failed-to-load-package-error/1841350>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, question\
**Created:** [May 5, 2024, 2:53pm UTC](https://forums.unrealengine.com/t/unreal-5-4-problem-with-a-packaged-game-server-spawns-the-character-and-client-disconnecting-with-failed-to-load-package-error/1841350 "2024-05-05T14:53:39Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![NV\_gnoowik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NV\_gnoowik](https://forums.unrealengine.com/u/NV_gnoowik)\
**Post date:** [June 3, 2024, 3:17am UTC](https://forums.unrealengine.com/t/unreal-5-4-problem-with-a-packaged-game-server-spawns-the-character-and-client-disconnecting-with-failed-to-load-package-error/1841350/10 "2024-06-03T03:17:23Z")

</div>

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

```auto
#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,

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

```

---

_[View the full topic](https://forums.unrealengine.com/t/unreal-5-4-problem-with-a-packaged-game-server-spawns-the-character-and-client-disconnecting-with-failed-to-load-package-error/1841350)._
