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:
playerPawns
-Array inside my TauriCharacterBP
:
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