# Variables reset after packaging \[DEMO PROJECT INCLUDED\]

**URL:** <https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423>\
**Category:** Editor Scripting\
**Tags:** reset, Variable, bug, Class, unreal-engine, question, Blueprint\
**Created:** [June 19, 2015, 11:43pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423 "2015-06-19T23:43:52Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [June 19, 2015, 11:43pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/1 "2015-06-19T23:43:52Z")

</div>

Name of player character resets (to default value specified in parent class) after packaging. Very simple demo project [HERE][1]

1. Play in Editor or Standalone Game = “Bob”, correct name.
2. Package project (tested with shipping 32 bit build), launch packaged game and now text says “(Unnamed)”, which is default value specified in “Unit” class.

 ![47133-bobissad.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/e/c1e09f0b535c07d7c6906dc2707a113d91ccfefc.jpeg)

3: bug is gone when you delete “skill” variable from “Unit” class or delete _GetPlayerCharacter-\>get name-\>print name_ logic from “Skill” class.

Please fix it 🙂

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [June 22, 2015, 6:06pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/2 "2015-06-22T18:06:32Z")

</div>

Hi Slavq,

Thank you for test project. I was able to reproduce issue and have created JIRA UE-17464 in our tracking software. We will post back here with updates as we have them.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![CodeSpartan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codespartan/32/1194561_2.png) [@CodeSpartan](https://forums.unrealengine.com/u/CodeSpartan)\
**Post date:** [June 25, 2015, 5:49am UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/3 "2015-06-25T05:49:08Z")

</div>

+1 would also like this to be solved.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [June 25, 2015, 1:01pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/4 "2015-06-25T13:01:32Z")

</div>

Hi CodeSpartan,

Thank you for showing your interest in this. I updated JIRA to show that multiple users are looking for this issue to be fixed.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [June 25, 2015, 5:39pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/5 "2015-06-25T17:39:41Z")

</div>

**Update/Additional info:** This bug resets many different variables from different classes, not only names. For example it resets one Texture2D type variable but also a few boolean variables of one of my blueprints, which is game breaking after packaging.

I really need this to be fixed ‘asap’, i hope that my little test project will be useful for fixing this bug. Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [June 26, 2015, 6:43pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/6 "2015-06-26T18:43:18Z")

</div>

Thanks Slavq,

I’ve added these notes to bug report TJ created. We’ll post here when we see an update on bug. Thanks!

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [June 29, 2015, 12:14pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/7 "2015-06-29T12:14:26Z")

</div>

Thanks, i have an another update: This bug is very similar to [THIS ONE](https://answers.unrealengine.com/questions/158355/no-animation-caused-by-a-simple-setup-demo-project.html), both resetting variables after packaging when blueprints are referencing each other in certain way. Probably it’s same bug, or it has same cause/origin.

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [July 23, 2015, 5:38pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/8 "2015-07-23T17:38:12Z")

</div>

Any update? Is it fixed in 4.9?

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 23, 2015, 6:44pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/9 "2015-07-23T18:44:17Z")

</div>

Hi John,

This is fixed. It is currently slated for 4.9 release. If you need it sooner you can get it [here](https://github.com/Crtriplett/UnrealEngine/commit/854326149bd2988b4e5b0af7d5b1c62129792bc7) on GitHub.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![John\_Alcatraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Alcatraz](https://forums.unrealengine.com/u/John_Alcatraz)\
**Post date:** [July 29, 2015, 6:28pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/10 "2015-07-29T18:28:03Z")

</div>

Hi TJ, I just tested it in 4.9P1 and it is not fixed.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 29, 2015, 8:32pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/11 "2015-07-29T20:32:07Z")

</div>

You are right, it isn’t working in 4.9 P1 but that isn’t final version of 4.9. Each preview will implement more and more features and bug fixes. If all goes well this fix should make it in.

Please keep in mind though, this fix is slated for 4.9 but it isn’t guaranteed… devs prioritize bug fixes based off of severity of bug and overall stability of engine.

---

<div class="post-metadata">

**Author:** ![intoxicat3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@intoxicat3](https://forums.unrealengine.com/u/intoxicat3)\
**Post date:** [October 13, 2015, 7:41pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/12 "2015-10-13T19:41:10Z")

</div>

Is this fixed in 4.9?

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [October 13, 2015, 7:50pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/13 "2015-10-13T19:50:34Z")

</div>

Yes, at least in my case 🙂 Variables do not longer reset after packaging.

---

<div class="post-metadata">

**Author:** ![Mewbits](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mewbits/32/1194714_2.png) [@Mewbits](https://forums.unrealengine.com/u/Mewbits)\
**Post date:** [January 13, 2017, 7:26pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/14 "2017-01-13T19:26:06Z")

</div>

Child Variables still reset to parent defaults at random in 4.14 (not when repackaging)

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [January 18, 2017, 9:30pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/15 "2017-01-18T21:30:51Z")

</div>

Hi Mewbits,

original bug that was reported here was fixed and I just confirmed that it is still fixed in 4.14.3. What you are seeing is likely something new/different than what was reported here. Could you create a new post in Bug Report section and include as much info as possible (exact repro steps, test project, screenshots of setup, etc)?

---

<div class="post-metadata">

**Author:** ![Paratus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Paratus](https://forums.unrealengine.com/u/Paratus)\
**Post date:** [January 7, 2020, 4:01pm UTC](https://forums.unrealengine.com/t/variables-reset-after-packaging-demo-project-included/322423/16 "2020-01-07T16:01:40Z")

</div>

It’s three years later, but I’ve encountered this in 4.22.1 as well. A BP character class had modified properties from a parent (also BP). It would reset when packaged, but not in editor. child class took properties of it’s parent. However, if there was an additional child, with “broken” one as parent, it would not be reset.

No clue how to reproduce it.
