Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    Running C:/Program Files (x86)/Epic Games/4.14/Engine/Binaries/DotNET/UnrealBuildTool.exe SurvivalGame Development Win64 -project=”C:/Users/Kavan/Documents/Unreal Projects/SurvivalGame 4.14/SurvivalGame.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE
    @progress push 5%
    Parsing headers for SurvivalGameEditor
    Running UnrealHeaderTool “C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\SurvivalGame.uproject” “C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Intermediate\Build\Win64\SurvivalGameEditor\Development\SurvivalGameEditor.uhtmanifest” -LogCmds=”loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
    Reflection code generated for SurvivalGameEditor in 4.9968581 seconds
    @progress pop
    Performing 6 actions (4 in parallel)
    [2/6] Resource ModuleVersionResource.rc.inl
    [3/6] Resource SurvivalGame.rc
    PCH.SurvivalGame.h.cpp
    Module.SurvivalGame.cpp
    SurvivalGame.generated.cpp
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\Player\SBaseCharacter.cpp(101): error C2039: ‘GetMatchState’: is not a member of ‘AGameModeBase’
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\GameFramework/GameStateBase.h(10): note: see declaration of ‘AGameModeBase’
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\Player\SPlayerController.cpp(31): error C2248: ‘UWorld::GameState’: cannot access private member declared in class ‘UWorld’
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\Engine/World.h(780): note: see declaration of ‘UWorld::GameState’
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime/Engine/Classes/Animation/AnimInstance.h(24): note: see declaration of ‘UWorld’
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\Player\SPlayerState.cpp(41): error C2248: ‘UWorld::GameState’: cannot access private member declared in class ‘UWorld’
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\Engine/World.h(780): note: see declaration of ‘UWorld::GameState’
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime/Engine/Classes/Animation/AnimInstance.h(24): note: see declaration of ‘UWorld’
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\World\SCoopGameMode.cpp(9): error C2011: ‘FLogCategoryLogGameMode’: ‘struct’ type redefinition
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\GameFramework/GameModeBase.h(20): note: see declaration of ‘FLogCategoryLogGameMode’
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\World\SCoopGameMode.cpp(69): error C2027: use of undefined type ‘FLogCategoryLogGameMode’
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime\Engine\Classes\GameFramework/GameModeBase.h(20): note: see declaration of ‘FLogCategoryLogGameMode’
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\World\SCoopGameMode.cpp(69): error C2065: ‘CompileTimeVerbosity’: undeclared identifier
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\World\SCoopGameMode.cpp(69): error C2228: left of ‘.IsSuppressed’ must have class/struct/union
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\World\SCoopGameMode.cpp(69): error C2228: left of ‘.GetCategoryName’ must have class/struct/union
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\World\SCoopGameMode.cpp(69): error C2665: ‘FMsg::Logf_Internal’: none of the 2 overloads could convert all the argument types
    C:\Program Files (x86)\Epic Games\4.14\Engine\Source\Runtime\Core\Public\Logging\LogMacros.h(37): note: could be ‘void FMsg::Logf_Internal(const ANSICHAR *,int32,const FName &,ELogVerbosity::Type,const TCHAR *,T1)’
    with
    [
    T1=FVector *
    ]
    C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Source\SurvivalGame\Private\World\SCoopGameMode.cpp(69): note: while trying to match the argument list ‘(const char [111], int, ELogVerbosity::Type, const wchar_t [37], const TCHAR *, FVector *)’
    ERROR: UBT ERROR: Failed to produce item: C:\Users\Kavan\Documents\Unreal Projects\SurvivalGame 4.14\Binaries\Win64\UE4Editor-SurvivalGame.dll
    Total build time: 47.08 seconds
    That's what happens on 4.14? Can someone help me get this right? I know C++ but kinda new to the engine. I assume it has got something to do with not using getters to access private members?

    Leave a comment:


  • replied
    Hey question? is this gonna get updated to 4.14? I tried it myself but I am not that much of a code wizard ^^

    Leave a comment:


  • replied
    Originally posted by Luc4m4rio View Post
    Hey thumbs up man! But i really cant seem to know whats causing infinite jumping glitch , tried donwloading the project 2 times (using 4.13 version) , could you please please update it with the fix on GitHub? I would love to <3
    Just uploaded a fix for this infinite jumping glitch to GitHub.

    Originally posted by LanceJZ View Post
    I just got 4.13.2 downloaded and installed, and I opened your project in it, and I get this error.

    Is a file missing? Where can I find it?
    I get the same error, not quite sure why it's failing to import. Afaik everything still works though.

    Leave a comment:


  • replied
    Hey thumbs up man! But i really cant seem to know whats causing infinite jumping glitch , tried donwloading the project 2 times (using 4.13 version) , could you please please update it with the fix on GitHub? I would love to <3

    Leave a comment:


  • replied
    I just got 4.13.2 downloaded and installed, and I opened your project in it, and I get this error.

    Is a file missing? Where can I find it?

    Leave a comment:


  • replied
    This project is SUPER INSPIRING and I'm soo excited to try it out!! My question is though, what is the license and could the license please be included in the git? Thank you so much for all of your hard work on this!
    Last edited by SuperheroHill; 11-11-2016, 03:17 PM.

    Leave a comment:


  • replied
    Originally posted by davidgutjar View Post
    when hit more than one spacebar key player flying to the sky
    how fix that ?
    4.13.2.

    I don't know if this is the best way, but it works for me at the moment.


    In your SCharacter.cpp (or whatever you named yours)

    void ASCharacter::OnStopJump()
    {
    bPressedJump = false;
    StopJumping();
    }

    Leave a comment:


  • replied
    when hit more than one spacebar key player flying to the sky
    how fix that ?

    Leave a comment:


  • replied
    why other blueprint or c++ class dont compile like blueprint?

    Leave a comment:


  • replied
    hi tom and thanks for every thing.
    when i convert your project with 4.13 event graph not loaded in blue print and no showing any thing.why?

    Leave a comment:


  • replied
    i have unreal 4.12 and i have not older version of engine.how to use this project ? beacuse when run it,he say surrvival game.dll bult with another version .and rebuild from source.how to rebuild or use it?????please help

    Leave a comment:


  • replied
    Hi,
    First, thanks a lot for this example, that makes me learn so much more about UE4 C++.

    I'm trying to understand how can I put different "holding weapons animations" for each weapon type, but I'm not a programmer, I'm a Designer lol.

    Can you point me in the right direction for doing this thing?
    I've tryed to put some bool on OnPrimaryEquip..., but it can't work at all.

    Very sorry for my english, I wish you understand what I want to say.

    Leave a comment:


  • replied
    open up the class you inherit from ->cameraboom.h or whatever and look around for a setter function, use that instead of accessing the variables directly

    Leave a comment:


  • replied
    Member is inaccessable error.

    Hello,
    I'm getting this error in visual studio.
    For these three lines it says 'member is inaccessable.'
    I decompiled the USpringArmComponent and those variables are now private.
    What can I do to fix or replace it.

    Code:
    CameraBoomComp->SocketOffset = FVector(0, 35, 0);
    CameraBoomComp->TargetOffset = FVector(0, 0, 55);
    CameraBoomComp->bUsePawnControlRotation = true;
    Any help is appreciated as I'm trying to learn unreal.

    Thanks
    Max

    Leave a comment:


  • replied
    Would i be able to implement a Blueprint chat system into this?

    Leave a comment:

Working...
X