# Using make literal enum in BTTask\_BlueprintBase causes problems

**URL:** <https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216>\
**Category:** Blueprint\
**Tags:** Behavior-Tree, enumeration, bttask, unreal-engine, Blueprint, question\
**Created:** [August 28, 2014, 12:38am UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216 "2014-08-28T00:38:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmyH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmyH](https://forums.unrealengine.com/u/AmyH)\
**Post date:** [August 28, 2014, 12:38am UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216/1 "2014-08-28T00:38:52Z")

</div>

I created an enum and used make literal enum to use it in my BTTask\_BlueprintBase. This caused blueprint to have to be recompiled everytime editor was opened and also caused cooking to fail in 4.4. Removing this entire and just setting value fixed both problems. Based on error message I would maybe guess it’s related to an earlier bug report I filed.

> **[Behavior tree decorator not using correct enum names](https://forums.unrealengine.com/questions/86723/behavior-tree-decorator-not-using-correct-enum-nam.html)**
>
> When I add a blackboard decorator and set it to check if an enumerator is equal to a value - the correct name is shown in the dropdown list of key values but it does not display the name in the behavior tree, only the default name. e.g....

![13919-works+fine.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/0/0c02e443fb9f2f07fa170ba24e94b410ab393df7.png)

---

<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:** [August 28, 2014, 6:20pm UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216/2 "2014-08-28T18:20:00Z")

</div>

Hey ,

I’m not getting this behavior when I feed a Literal enum into a Set Blackboard Value as Enum. Can you attach output log after cooking fails? Are you in 4.4.0 or 4.4.1? Thanks!

---

<div class="post-metadata">

**Author:** ![AmyH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmyH](https://forums.unrealengine.com/u/AmyH)\
**Post date:** [August 28, 2014, 9:47pm UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216/3 "2014-08-28T21:47:20Z")

</div>

Hi after an update from a team member it appears to be something else that was causing cooking to fail. We’re using 4.4.1. Yeah I tried making a new project and it seemed to work so I’m not sure what I’ve done wrong in our current project.

---

<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:** [August 28, 2014, 9:49pm UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216/4 "2014-08-28T21:49:08Z")

</div>

Does it recompile after that error appears, and does recompiling remove error?

---

<div class="post-metadata">

**Author:** ![AmyH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmyH](https://forums.unrealengine.com/u/AmyH)\
**Post date:** [August 28, 2014, 9:51pm UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216/5 "2014-08-28T21:51:56Z")

</div>

Yeah it recompiles and works fine for rest of time project is open. It’s just every time after first opening editor and playing, it says blueprint has an error and needs to be recompiled.

---

<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:** [October 9, 2014, 12:02am UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216/6 "2014-10-09T00:02:22Z")

</div>

Hi ,

Sorry for delay in response. We’re still not able to reproduce issue you described, but I have seen another user with a similar issue recently. Does this only occur with custom enums? If you delete that enum asset and create a new one, replacing reference to it in your blueprints, does error recur? Let me know if you have time to test this for me. 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:** [October 13, 2014, 11:11pm UTC](https://forums.unrealengine.com/t/using-make-literal-enum-in-bttask-blueprintbase-causes-problems/292216/7 "2014-10-13T23:11:36Z")

</div>

Hey ,

We haven’t heard back from you in awhile, so I am marking this post as resolved for tracking purposes. If you are still experiencing this issue after opening a copy of project in 4.5, please feel free to reopen post and we’ll continue investigating. Thanks!
