# Ongoing C++ Gameplay Example Series: Making a Survival Game

**URL:** <https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878>\
**Category:** Announcements\
**Tags:** unreal-engine\
**Created:** [March 20, 2015, 3:38pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878 "2015-03-20T15:38:03Z")\
**Posts on this page:** 1\
**Showing post:** 341

<div class="post-metadata">

**Author:** ![anonymous\_user\_b4443b8e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b4443b8e](https://forums.unrealengine.com/u/anonymous_user_b4443b8e)\
**Post date:** [August 5, 2018, 7:06pm UTC](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878/341 "2018-08-05T19:06:23Z")

</div>

> [@MachineX](#):
>
> Hello,
> 
> I’m having trouble opening the SurvivalGame project in 14.19.2, I get an error about the UE4Editor-SurvivalGame.dll file and am too inexperienced to resolve this, I’ve tried a few things after a couple of days extensively Googling, installed Windows SDK & Visual Studio 2017 (OS: Windows 7 Ultimate 64-bit) as some mentioned that resolved compiling issues but I’ve had the same error since the start.
> 
> …  
> If there’s a magic thing I can do to make this work please let me know, it’s frustrating as I’m at a loss ☹

I’m having exactly the same problem on 4.20 (downloaded and compiled yesterday), but I’m on Linux. The error is the same though. Any way to solve this without having to go back to 4.18? (the download and setup time is pretty big and I’d like to avoid it at all cost)

Thank you

UPDATE:  
There was a “bug” in the last commit:

There shouldn’t be any problems, since the && has lower precedence than the ||, and everything should just compile, but it didn’t work for me and I have to explicitly set the () around the first group of &&.  
is the code that compiles:

```auto

            if (
                (
                    !Actor->IsA(ALevelScriptActor::StaticClass())
                    && !Actor->IsA(ASMutator::StaticClass())
                    && Actor->GetRootComponent() != nullptr
                    && Actor->GetRootComponent()->Mobility != EComponentMobility::Static
                )
               ||
                (
                    !Actor->IsA(AStaticMeshActor::StaticClass())
                    && !Actor->IsA(ALight::StaticClass())
                )
               )

```

Notice that I only added extra () around the first 4 && conditions. Either add the () yourself, or copy/paste that code.

How did I debug it?

I manually compiled the client:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Then I checked the logs in the output, and _\<home\>/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt_

---

_[View the full topic](https://forums.unrealengine.com/t/ongoing-c-gameplay-example-series-making-a-survival-game/24878)._
