x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

CharacterMovementComponent has inconsistent owners in the packaged shipping build

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 and this report seem very similar

Product Version: UE 4.12
Tags:
more ▼

asked Jun 17 '16 at 07:23 PM in Bug Reports

avatar image

Grogger
785 49 59 93

avatar image Sean L ♦♦ STAFF Jun 20 '16 at 06:00 PM

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!

avatar image Grogger Jun 20 '16 at 08:04 PM

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.

avatar image Sean L ♦♦ STAFF Jun 21 '16 at 06:50 PM

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

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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

more ▼

answered Jun 27 '16 at 12:07 PM

avatar image

Sean L ♦♦ STAFF
43.8k 485 152 440

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question