Developer Notes

could not repro in 4.9

Description

Child character's Variable changes to the default value in a packaged project.

User Description:

Name of player character resets (to default value specified in parent class) after packaging.

3. Play in Editor or Standalone Game = "Bob", correct name.

2. Package the project (tested with shipping 32 bit build), launch packaged game and now the text says "(Unnamed)", which is default value specified in "Unit" class.

3. The bug is gone when you delete "skill" variable from "Unit" class or delete GetPlayerCharacter->get name->print name logic from "Skill" class.

Steps to Reproduce

1. Open the attached test project 'MyProject_Slav1'
2. PIE
3. You will see the text actor change to Human as well as print on screen
4. Press Stop
5. Press Launch or Package the project

Results: The text actor and what is printed to the screen will be the default value set in the Parent character bp.

Expected: For the blueprints to work the same regardless of playmode and if packaged.

Test Project breakdown:

  • [BP_Unit] Parent character blueprint that has a Name variable with a default value of (DEFAULT) & a var for the actor 'BP_Skill'
  • [BP_Human] Player blueprint that is a Child of BP_Unit that has the inherited Name variable set to 'Human'
  • [BP_Text] a bp with a Text actor that changes based off of the Player
  • [BP_Skill] a bp that prints the players name to the screen

NOTE: If the 'BP_Skill' logic is removed from that bp OR the 'BP_Skill' var is removed from the 'BP_Unit' bp, the project will work correctly if packaged.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

2
Login to Vote

Cannot Reproduce
ComponentUE - Gameplay - Blueprint
Affects Versions4.84.9
Target Fix4.9
Fix Commit2627755
CreatedJun 22, 2015
ResolvedJul 31, 2015
UpdatedApr 27, 2018
View Jira Issue