# Code a First-Person Adventure Game Documentation : bugs

**URL:** <https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366>\
**Category:** Getting Started & Setup\
**Tags:** documentation-bug, unreal-engine\
**Created:** [November 21, 2025, 6:46pm UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366 "2025-11-21T18:46:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![matrem84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matrem84](https://forums.unrealengine.com/u/matrem84)\
**Post date:** [November 21, 2025, 6:46pm UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366/1 "2025-11-21T18:46:43Z")

</div>

In the getting started documentation, Code a First-Person Adventure Game path I found some problems.

In **Add a First-Person Camera, Mesh, and Animation** section

- The positioning of skeletal meshes are wrong.
  - Comparing to BP\_FirstPersonCharacter Mesh transform is not set
  - SetupAttachment to head socket in constructor does not work. To fix it, I needed to unparent/reparent my blueprint to the c++, it seems there is a refresh bug here. It Should be mentioned in the documentation (because it seems like an old known refresh problem about c++/blueprint).

Here the result :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/b/e7b1e94cb80a4b608fa8b9f8bf8b145af630c2c4.jpeg)

- This need a if != nullptr to avoid a crash when anim has not been set in blueprint :  
`// Set the animations on the first person mesh. FirstPersonMeshComponent->SetAnimInstanceClass(FirstPersonDefaultAnim->GeneratedClass);`
- 

> This is wrong because it cast a shadow :  
> Because your third-person mesh is hidden when the game begins, you only need to set animations on the first-person mesh.

Also perhaps an explanation about how/when the constructor is called (for example when playing with property in editor) could be of interest.

In **Create a Respawning Pickup Item** section :

- Calling InitializePickup at each respawn will produce NewObject (is it not a leak?)
- ReferenceItem is never really used, what it’s for. It could be used to avoid newobject leak as a cache (as it’s seems to be implied in the doc).
- PickupDataTable should be tested with IsValid() to LoadSynchronous() if not, because of the softprtr
- ItemDataRow should be tested to be sure row has been found
- SetTimer must be called with -1 as last parameter, 0 will get an immediate respawn

_reference documentation_ :

> **[Code a First-Person Adventure Game in Unreal Engine | Unreal Engine 5.7...](https://dev.epicgames.com/documentation/en-us/unreal-engine/code-a-firstperson-adventure-game-in-unreal-engine)**
>
> Learn how to create C++ classes that implement the basic mechanics of a first-person game.

---

<div class="post-metadata">

**Author:** ![matrem84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matrem84](https://forums.unrealengine.com/u/matrem84)\
**Post date:** [November 22, 2025, 9:09am UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366/2 "2025-11-22T09:09:33Z")

</div>

To fix the socket problem, I need to unparent/reparent my blueprint to the c++, it seems there is a refresh bug here. Should mentioned in the documentation.

---

<div class="post-metadata">

**Author:** ![zoe\_wxq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zoe\_wxq](https://forums.unrealengine.com/u/zoe_wxq)\
**Post date:** [November 22, 2025, 9:19am UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366/3 "2025-11-22T09:19:07Z")

</div>

hi , you can take a reference from if you’r interested [here](https://github.com/tootzoe/AdventureGame)

---

<div class="post-metadata">

**Author:** ![matrem84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matrem84](https://forums.unrealengine.com/u/matrem84)\
**Post date:** [November 22, 2025, 9:24am UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366/4 "2025-11-22T09:24:27Z")

</div>

Other problems :

- This need a if != nullptr to avoid a crash when anim has not been set in blueprint :  
`// Set the animations on the first person mesh. FirstPersonMeshComponent->SetAnimInstanceClass(FirstPersonDefaultAnim->GeneratedClass);`
- 

> This is wrong because it cast a shadow :  
> Because your third-person mesh is hidden when the game begins, you only need to set animations on the first-person mesh.

---

<div class="post-metadata">

**Author:** ![matrem84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matrem84](https://forums.unrealengine.com/u/matrem84)\
**Post date:** [November 23, 2025, 2:11pm UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366/5 "2025-11-23T14:11:46Z")

</div>

It seems your code already fixed some of the problem of this tutorial, is there a way to fix this documentation so it’s better?

---

<div class="post-metadata">

**Author:** ![KuehDadar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kuehdadar/32/1127978_2.png) [@KuehDadar](https://forums.unrealengine.com/u/KuehDadar)\
**Post date:** [November 27, 2025, 3:42am UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366/6 "2025-11-27T03:42:39Z")

</div>

I tried loading your project in 5.7. I couldn’t seem to load the umap assets. Any idea why? this is the error message:

Failed to find the world in already loaded world package /Game/Maps/L\_AdventureGame! See log for more details.

---

<div class="post-metadata">

**Author:** ![NeoMurakami](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neomurakami/32/1138598_2.png) [@NeoMurakami](https://forums.unrealengine.com/u/NeoMurakami)\
**Post date:** [December 14, 2025, 11:38pm UTC](https://forums.unrealengine.com/t/code-a-first-person-adventure-game-documentation-bugs/2677366/7 "2025-12-14T23:38:31Z")

</div>

I am having issues with his project as well. Consulting AI suggested changing the **EditorStartupMap=/Game/FirstPerson/Lvl\_FirstPerson.Lvl\_FirstPerson**

and

**GameDefaultMap=/Game/FirstPerson/Lvl\_FirstPerson.Lvl\_FirstPerson**

in the DefaultEngine.ini file. While this allowed the Editor to finally load, opening both **Lvl\_ArenaShooter** and **Lvl\_FirstPerson** display a black screen level with nothing in it. AI alos mention the L\_Adventure appeared to be built with an earlier version then the 5.7.1 I am currently using? Maybe this guy has a beta version installed?
