# CharacterMovementComponent has inconsistent owners in the packaged shipping build

**URL:** <https://forums.unrealengine.com/t/charactermovementcomponent-has-inconsistent-owners-in-the-packaged-shipping-build/361133>\
**Category:** Character & Animation\
**Tags:** charactermovementcom, owner, packaged-build, shipping-build, unreal-engine, question\
**Created:** [June 17, 2016, 7:23pm UTC](https://forums.unrealengine.com/t/charactermovementcomponent-has-inconsistent-owners-in-the-packaged-shipping-build/361133 "2016-06-17T19:23:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [June 17, 2016, 7:23pm UTC](https://forums.unrealengine.com/t/charactermovementcomponent-has-inconsistent-owners-in-the-packaged-shipping-build/361133/1 "2016-06-17T19:23:47Z")

</div>

We’re experiencing some issues with our character pawns not moving correctly in the shipping build as in the editor build in 4.12.

After some debugging, it seems that the culprit lies within the **GetCharacterOwner()** function of the CharacterMovementComponent:

In the shipping build, _GetCharacterOwner()_ and _GetPawnOwner()_ of the _CharacterMovementComponent_ are returning the default class object of the pawn we’re expecting, but **GetOwner()** is returning the proper owning actor.

In the development editor build, each of these functions return the proper instance of the owning actor.

From our testing, this issue is not present in the 4.10 shipping build.

EDIT:  
[This report](https://answers.unrealengine.com/questions/437055/characters-wont-move-in-packaged-game-in-412-upgra.html) and [this report](https://answers.unrealengine.com/questions/437691/packaging-problem-with-controlls.html) seem very similar

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 20, 2016, 6:00pm UTC](https://forums.unrealengine.com/t/charactermovementcomponent-has-inconsistent-owners-in-the-packaged-shipping-build/361133/2 "2016-06-20T18:00:22Z")

</div>

Hello,

Could you provide some more information regarding your setup? Are you using blueprints or C++?

Are you able to reproduce this issue in a clean project? If so, could you provide steps we can follow to reproduce it on our end?

Thanks!

---

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [June 20, 2016, 8:04pm UTC](https://forums.unrealengine.com/t/charactermovementcomponent-has-inconsistent-owners-in-the-packaged-shipping-build/361133/3 "2016-06-20T20:04:03Z")

</div>

Hi Sean,

We have a custom C++ movement component class inheriting from UCharacterMovementComponent.

The movement component is set in the character’s C++ constructor:  
Super(ObjectInitializer.SetDefaultSubobjectClass(ACharacter::CharacterMovementComponentName))

Back in **4.10** , the functions **UPawnMovementComponent::GetPawnOwner()** and **UCharacterMovementComponent::GetCharacterOwner()** would return the proper owner (the character the movement component spawned for).

In 4.12, those same two functions return, instead, the default class version of my character (at any time after spawning the character).

I have tried to recreate it in a fresh C++ project, but a 4.10 to 4.12 fps project doesn’t carry the problem.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 21, 2016, 6:50pm UTC](https://forums.unrealengine.com/t/charactermovementcomponent-has-inconsistent-owners-in-the-packaged-shipping-build/361133/4 "2016-06-21T18:50:29Z")

</div>

Would you be able to provide the project that you are experiencing the issue with, as I have also been unable to reproduce this in a clean project. If you could, please zip up the project, upload it to dropbox, and provide a link through a PM to me on the forums so we can take a closer look at the issue: [https://forums.unrealengine.com/member.php?160394-Sean-Flint](https://forums.unrealengine.com/member.php?160394-Sean-Flint)

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [June 27, 2016, 12:07pm UTC](https://forums.unrealengine.com/t/charactermovementcomponent-has-inconsistent-owners-in-the-packaged-shipping-build/361133/5 "2016-06-27T12:07:42Z")

</div>

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day
