# Variable not found when starting game in Standalone Game

**URL:** <https://forums.unrealengine.com/t/variable-not-found-when-starting-game-in-standalone-game/339316>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, editor, UE4, CPP, Blueprint, question\
**Created:** [November 22, 2015, 1:19pm UTC](https://forums.unrealengine.com/t/variable-not-found-when-starting-game-in-standalone-game/339316 "2015-11-22T13:19:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PT\_Max](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PT\_Max](https://forums.unrealengine.com/u/PT_Max)\
**Post date:** [November 22, 2015, 1:19pm UTC](https://forums.unrealengine.com/t/variable-not-found-when-starting-game-in-standalone-game/339316/1 "2015-11-22T13:19:48Z")

</div>

Hi guys,

I’ve got a little problem when trying to start my game via Standalone Game shortcuts. First of all these are my created shortcuts

Server:

```
"[...]/UE4Editor.exe" "[...]/Tauri.uproject" ThirdPersonExampleMap?listen -game -log

```

Client:

```
"[...]/UE4Editor.exe" "[...]/Tauri.uproject" 127.0.0.1 -game -log

```

I’ve got these settings from the YouTube videos about “Networking” uploaded by “UnrealEngine”.

Source: `https://youtu.be/TbaOyvWfJE0?list=PLazd85aC7SEduq626JeZIuUjAjVb6qRNt&t=526`

Inside my game I’ve added variables to some of my C+±Classes.  
For one I added a `FRotator`-variable to my `TauiCharacter.h`:

```
UPROPERTY(Replicated, BlueprintReadWrite)
FRotator ViewportRotator;

```

and a `TArray`-variable to my `TauriGameState.h`:

```
UPROPERTY(Replicated, EditAnywhere, BlueprintReadWrite, Category = Multiplayer)
TArray<ACharacter*> playerPawns;

```

These variables are then used by Blueprints like this:

`ViewportRotator` inside my `ThirdPerson_AnimBP`-Blueprint:

 ![67648-viewport_rotator.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/f/ccf7834bb569153518679b10e8ecb27f28ba973e.png)

`playerPawns`-Array inside my `TauriCharacterBP`:

 ![67649-pawn_inside_tauricharacter.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/0/3a06eaa2a58cf550da0bd88554e362260615e748.png)

When starting the game from within the editor as “New Editor Windoe (PIE)” it starts fine and no errors occur whatsoever. However when starting the game from the shortcuts mentioned above I get multiple errors such as:

```
[2015.11.22-01.15.34:122][0]LogBlueprint:Warning: [compiler ThirdPerson_AnimBP] Warning Could not find a variable named "ViewportRotator" in 'TauriCharacter'.
Make sure 'TauriCharacter' has been compiled for Get ViewportRotator

```

All warnings and errors inside the log can be found here: `https://www.refheap.com/111962`

What I’ve tried so far:

- Re-Compile C+±Classes (from within the Editor)
- Re-Compile Blueprints
- Re-Adding Variables to the Classes
- Re-Building C+±Classes (from within VisualStudio)
- Restarting Editor
- Restarting VisualStudio
- Restarting Windows

I can’t figure out what my problem happens to be. Does anybody know how to fix this issue?

Thanks Max

---

<div class="post-metadata">

**Author:** ![PT\_Max](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PT\_Max](https://forums.unrealengine.com/u/PT_Max)\
**Post date:** [November 22, 2015, 1:34pm UTC](https://forums.unrealengine.com/t/variable-not-found-when-starting-game-in-standalone-game/339316/2 "2015-11-22T13:34:23Z")

</div>

I tried figuring this out for literally two days and then posted this question. Two minutes I’ve submitted the quesion I found the solution. VisualStudio was debugging in `UnrealGame Editor` instead of `Development Editor`. Changed it to the latter and the errors are gone.
