How To Make A Multiplayer Game With Unreal Engine and Amazon GameLift (Part 2 - GameLift Server SDK)

Ғылым және технология

Watch Part 1 here: • How To Make A Multipla...
This video is the second part of an extensive and informative tutorial on how to integrate Amazon GameLift with Unreal Engine, going over concepts such as building the GameLift Server SDK library files, adding the GameLift Server SDK plugin to a UE4 project, and packaging a Unreal Engine dedicated server build. In the process, we also write some basic server code to get our Unreal Engine project working with GameLift.
Watch Part 3 here: • How To Make A Multipla...
How to support the channel:
Get a shirt or sweatshirt with free shipping (Use code "SHIP" at checkout): teespring.com/stores/flopperam
Become a member: / @flopperam
Support us on Patreon: / flopperam
Donate to our PayPal: www.paypal.me/flopperam
Sponsor us on Github: github.com/sponsors/chris-gong
Social media links:
Discord: / discord
Twitter: / flopperam
Instagram: / flopperam
Facebook: / flopperam
********IMPORTANT LINKS*********
Cmake Download: cmake.org/download/
Amazon GameLift Getting Started Page/GameLift Server SDK Download: aws.amazon.com/gamelift/getti...
7zip: www.7-zip.org/
DLL and Lib Library files: github.com/chris-gong/gamelif...
GameLiftTutorialGameMode.h: gist.github.com/chris-gong/22...
GameLiftTutorialGameMode.cpp: gist.github.com/chris-gong/46...
********ENVIRONMENT VARIABLES*********
VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\
In the path variable, add the MSBuild directory path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
*********IMPORTANT COMMANDS*********
Cmake with Visual Studio 2019: cmake -G "Visual Studio 16 2019" -A x64 -DBUILD_FOR_UNREAL=1 ..
Cmake with Visual Studio 2017: cmake -G "Visual Studio 15 2017 Win64" -DBUILD_FOR_UNREAL=1 ..
Msbuild: msbuild ALL_BUILD.vcxproj /p:Configuration=Release
*********IMPORTANT TIP*********
If either cmake or msbuild are not working, then try repairing your Visual Studio installation through the Visual Studio installer. Also, if you have multiple versions of the build tool installed, then you may
have to add an environment variabled called VCTargetsPath that points to the directory where your Visual Studio's common Microsoft.Cpp files are located.
Music Creds:
Song: LAKEY INSPIRED - Chill Day (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Video Link: • LAKEY INSPIRED - Chill...
Song: Wonder - LAKEY INSPIRED
Music promoted by BreakingCopyright: • Video
#unrealengine #ue4 #gamelift

Пікірлер: 198

  • @prayergardens7001
    @prayergardens70014 жыл бұрын

    Throwing some $$$ to your Patreon. Saving me hundreds of hours of tinkering. Thank You! Look forward to upcoming videos!

  • @TonOfHam
    @TonOfHam3 жыл бұрын

    I appreciate pacing, thoroughness, and ovrall mood of these videos.

  • @cesarserradorcuevas5897
    @cesarserradorcuevas58974 жыл бұрын

    You are a genius!! I have ran cmake and msbuild with Visual Studio 2019 Community. I had spaces in the path to the GameliftSDK and it didn't work, but I get rid of the spaces in the path and it worked perfect. Thanks!!!

  • @VisibleMRJ
    @VisibleMRJ2 жыл бұрын

    I also have a problem generating DLL and Lib Library files so it is a life saver that you also provided them in the tutorial👍👍

  • @espada9973
    @espada99734 жыл бұрын

    Dude, you're going so fast and this is one of the shorter videos! This is good tho, thankful for this tutorial series.

  • @capsizegames4331
    @capsizegames43314 жыл бұрын

    Good tutorials -- anxiously awaiting part 3

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Coming out tonight!

  • @yaris684
    @yaris6843 жыл бұрын

    THIS IS THE HOTTEST UE4 TUTORIAL CHANNEL RIGHT NOW

  • @kanoeyes
    @kanoeyes4 жыл бұрын

    You are the man!!! Many thanks!!!

  • @timbiegel6545
    @timbiegel65453 жыл бұрын

    on 16:45 to 16:53 you asked the students (us) to correct you when we make a cpp or header class that the folder private and public is automatic made or not. in mine the folder was not made so i just had to follow along with you making the private and public folder. Thank you for your help.

  • @unrealdevop
    @unrealdevop2 жыл бұрын

    Thanks, great guide. I don't know what I did wrong when I was following your older tutorial on this but I had no trouble with this one. Granted I didn't need to recompile my AWS SDK. I did go back and grab/compile the 4.26 source rather then the 4.27 I was using. You said it should work on 4.27 so I don't think that was the issue.

  • @adamcyf

    @adamcyf

    2 жыл бұрын

    the plugin is not compatible with 4.27 yet. If you want do deal with this, you'll have to build the plugin from source, and it'll work!

  • @unrealdevop

    @unrealdevop

    2 жыл бұрын

    @@adamcyf Thanks for that.

  • @chrisvensand9640
    @chrisvensand96403 жыл бұрын

    Great stuff thank you!

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Thank you for becoming a member, much appreciated!!

  • @DavidBulczak
    @DavidBulczak4 жыл бұрын

    Hey. This is an awesome tutorial. This helped me a lot. Just some note from my side. I am using UE 4.25 and Visual Studio 2017. I experienced some weird errors. When I build the server build in Visual Studio 2017 everything worked fine. As soon as I tried to package the Server build I've received the errors. I haven't noted them but there were some "Unknown error" things for the "Development" build and some clxx.dll related errors for a "Shipping" build. In some forums I've found that people experience this clxx.dll error too in Unreal unrelated projects. The solution for it was to start Unreal Engine in Admin mode. Thus in case someone experiences a similar issue, this might be the "solution". Actually this might be a problem of my specific setup and I couldn't find the source of the problem yet. But at least I can now continue with you tutorial :D

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Hey, glad you got it working!

  • @pslindskog
    @pslindskog3 жыл бұрын

    Great stuff!! Would be near impossible to grasp from just reading on AWS... Nit-picky suggestions: All these State structs should probably be inherited from a simple struct (since they all have the Status bool etc). Also, in constructors you can use initializer lists instead of assigning the Status bool inside the squiggly brackets (dunno if better, but I think it's a bit nicer).

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Thank you for the suggestions sir, I will take note of this for when we update the tutorial

  • @twinsassink8745
    @twinsassink87454 жыл бұрын

    Note: Since I selected install for all users on cmake I had to add the path to my system env variables not user

  • @c4GameDev
    @c4GameDev4 жыл бұрын

    Hi! I want to point out an error in your video description: Even though in the video you stated the correct path for MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin In the description it says: C:\Program Files (x86)\Microsoft Visual Studio\2019\MSBuild\Current\Bin (The 'Community' folder is missing) This may cause some confusion to a lot of people, even if inside the video is correct one may simply copy the path without noticing the missing folder. Great tutorial nonetheless! I'm really enjoying your videos!

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Thank you for pointing out that correction!

  • @hsracanelli
    @hsracanelli4 жыл бұрын

    Hey man, you are amazing, best videos i ever see about server in youtube, maybe you can make some tutorial about stand alone dadicated server in 4.24, its really hard to find informations about how to make one even in Unreal Documentation, all is very consfuse, I`m beggining in gamming make, and i have almost nothing of experience in c++ programing, and u are helping me a lot, Thank you man !

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Thank you so much for your kind words! And yes, that topic is on our to-do-list, so we will get to it!

  • @majingari
    @majingari4 жыл бұрын

    I got error when running msbuild ALL_BUILD.vcxproj it says "error msb8020: The build tools for v142" do u think it's because I havent set "VCTargetsPath" in the environment?

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Good catch, I forgot that this can happen when you have multiple versions of the build tools installed. But yes, you may have to set the VCTargetsPath environment variable. For me, it was C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160. It should be the link to where your target and properties files are for Visual Studio. At the end of the path, you'll see v160, which corresponds with Visual Studio 2019. With Visual Studio 2017, it would be v150 instead. The paths may be a little different so here's a link with the possible directory path values, docs.microsoft.com/en-us/cpp/build/reference/msbuild-visual-cpp-overview?view=vs-2019. Please let me know if that works for you!

  • @majingari

    @majingari

    4 жыл бұрын

    @@Flopperam That's unfortunate, I already messed up my VS. and Jump into next step by using your .dll & .lib Great file! Thanks!

  • @NewEnglandModz
    @NewEnglandModz3 жыл бұрын

    If I follow along with this tutorial using the 4.24 build and after I’m done want to update to a newer build, will I have to change anything code-wise? Am I locked into the 4.24 build for this game?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Hey, according to people in the KZread comments and in the discord, Unreal Engine version 4.25.x works as well with this tutorial series.

  • @alecsimpson5566
    @alecsimpson55664 жыл бұрын

    The steps have all worked for me besides the one question I had in the last video that you answered, but my build time every time I need to build the project is 2+ hours, (@17:30ish in this video). Is this going to happen every time I need to do anything? I'm not sure if I'm doing something wrong. The first time I built the engine it had 3000 modules which I thought, okay its the whole engine. For this one its another 2000 modules (not even sure modules is the right word, but most of them are named Module.Something) even though I am just building the game itself.

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Hey, that's definitely strange. Normally it's only the first time building in a specific solution configuration that it takes a while for the reasons you just mentioned. I would say keep an eye on it and see if it keeps happening. If it does, then something else may be wrong.

  • @Flopperam
    @Flopperam4 жыл бұрын

    Hey guys, someone brought up to my attention that if cmake or msbuild isn't working, then please try repairing your Visual Studio through the Visual Studio Installer! Also, if you are using a version of Unreal Engine older than 4.24, then the build target option at 47:32 may not be there for you. If that is the case, then make sure to copy the plugins folder from your project to your server build directory just in case the gamelift server sdk plugin doesn't get included in the server build!

  • @pslindskog

    @pslindskog

    3 жыл бұрын

    Btw, msbuild didn't work for me but I just opened the sln file that cmake spit out and built it from Visual Studio.

  • @arunkarthik5820
    @arunkarthik5820 Жыл бұрын

    Hey really great tutorial..........but can we use this command line on macOS too ?

  • @Flopperam

    @Flopperam

    Жыл бұрын

    Yes I believe so

  • @felixpettersson2286
    @felixpettersson22863 жыл бұрын

    If you get an error when running "msbuild ALL_BUILD.vcxproj /p:Configuration=Release" saying something about Boost_ROOT not being the correct spelling, uninstall cmake and install another version. 3.19.0-rc2 didn't work for me, but 3.17.5 did.

  • @felixpettersson2286

    @felixpettersson2286

    3 жыл бұрын

    I had further issues when building the game project itself. Eventually got it working simply by attempting to build the project over and over. VS2019 16.7.7

  • @NewEnglandModz
    @NewEnglandModz3 жыл бұрын

    I’m used to unity. Is the “auto” essentially the same as a “var” in c#?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Hey, that's a great comparison. So I would say the answer is pretty much yes.

  • @toysinjammies1613
    @toysinjammies16133 жыл бұрын

    trying to build the .dll files and at 10:50: error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Hey, sorry for the late response. It seems that you may need to create a new environment variable called VCTargetsPath, and the value for that variable will be the location of the directory where your Visual Studio's common Microsoft.Cpp files are located. That value is usually C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160 if you are using Visual Studio Community version 2019. I would suggest checking that directory in File Explorer to make sure that you see the Microsoft.Cpp.Default.props file there. If the file is not in that directory, the directory doesn't exist, you are using an older version of Visual Studio Community (2017, 2015, etc.), you are using the Visual Studio build tools installed separately, or you are using a Professional or Enterprise version of Visual Studio, then this file will be located somewhere else. Let me know if that is case. Worst case, if you believe that you have spent too much time on this issue, then you can always skip this step and use the library files from the link to the project's Github repository in the description below.

  • @eddysouth2023
    @eddysouth20233 жыл бұрын

    Hey man. First of all, awesome tutorials! I'm starting to pick it up even though alot of stuff you're teaching is abstract to me. I'll get it in time! I'm running into snags though. I got a bunch of errors when I tried this with a later version of UE4, so then I switched back to the same software versions of everything you're using in the tutorial and got some other errors when following the tutorial and typing by hand. Then I copied and pasted your GameMode code into my own respective GameMode files and changed the classes to have the right names for my project but I'm getting errors like: "cannot open source file "QQGameMode.h" and "name followed by '::' must be a class or namespace name. Any ideas?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Do you have screenshots? Those errors are usually associated with specific line numbers.

  • @eddysouth2023

    @eddysouth2023

    3 жыл бұрын

    I'm an idiot. I fixed it.

  • @thelifeofrhythm
    @thelifeofrhythm2 жыл бұрын

    I've gone over part one and the first 15 of this video like 12 times, when I get to reopening at 17:43 I get an error that says it can't compile while the engine is running and to try building from the ide, any suggestions? yes i've tried rebuilding from vs, build succeeds exit code 0

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    I could be wrong but maybe you have to do live coding? Meaning either compile while the engine is closed or press ctrl alt f11 in the editor to compile. Let me know if neither of those options work.

  • @jayblankenship1553
    @jayblankenship15533 жыл бұрын

    i come for that slappen beat ,

  • @cpldaxn
    @cpldaxn9 ай бұрын

    The code has changed a lot by amazon. Do you think the default documentation does the same as yours? Here UE5.2.1

  • @Flopperam

    @Flopperam

    9 ай бұрын

    It's definitely not exactly the same and there will be some tinkering involved but it could still be worth trying to follow along.

  • @gpzigi632
    @gpzigi6324 жыл бұрын

    Hi, I just tried to follow what you did exactly, but I have no option which is the build target when I do packaging. In the project file, there are \Binaries\server.exe and server.target though cuz I build, I have no idea.

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Hey, did you regenerate your project files?

  • @gpzigi632

    @gpzigi632

    4 жыл бұрын

    @@Flopperam Yes, I did I sure. I tried to follow your tutorial twice, but there is no option. So, I built editor and server then gamelifttoturial.exe and gamelifttoturialserver.exe in the Binaries folder. cuz I wanted to make another target. but I still have no build target option. Do you have any idea?

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    @@gpzigi632if possible, could you send a screenshot?

  • @gpzigi632

    @gpzigi632

    4 жыл бұрын

    @@Flopperam Okay I'll contact with u in discord

  • @ikhwanmz
    @ikhwanmz3 жыл бұрын

    hey, my msbuild is isnt working. i already reapair my visual studio 2017 but still not working 'msbuild' is not recognized as an internal or external command, operable program or batch file.

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Hey, you may have to directly add the path of the directory containing the MSBuild executable to the PATH environment variable. Then, restart command prompt before running the msbuild command.

  • @jak6jak
    @jak6jak2 жыл бұрын

    When building project files the GameLiftTutorialServer.Target.cs is not being added to the solution. I tried adding it manually in visual Studio but the Development Server option does not show. Any suggestions for debugging this?

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    You may have a typo in your server target file or you forgot to generate visual studio project files.

  • @spinx9865
    @spinx98653 жыл бұрын

    Hey! I use UE 4.24.3 with Viusal Stuido 2019 and if I want to build the code in Development Server it says: "Server targets are not currently supported from this engine distribution." What can I do?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Are you using Unreal Engine built from the source code on Github?

  • @spinx9865

    @spinx9865

    3 жыл бұрын

    @@Flopperam I re-downloaded and build everything and now it works so everything is fine now :)

  • @tioalison
    @tioalison3 ай бұрын

    Hi, I found your video very helpful - as all your videos hehe Just a quick question, do you know the exact cost of using an AWS server for testing purposes? I only want to test my game and won't be opening it for gaming at this stage. Thanks!

  • @Flopperam

    @Flopperam

    3 ай бұрын

    Hey sorry for the late response, pricing is tricky but most of the details are here, aws.amazon.com/gamelift/pricing/. We do cover it in the last part of the tutorial series but the main cost is hosting the ec2 instances that gamelift runs the server processes on, which will depend on which type of instance you use. The less powerful instances fall under the free tier, which applies to AWS accounts younger than 12 months and that gets you 125 hours of free usage for that instance type for gamelift per month. I don't explicitly mention it in the tutorial but always remember to shut down ec2 instances in your gamelift fleet when you're not using them. Otherwise, you'll be charged since unused hours for "hanging" instances will cost you. If you do get charged for something, feel free to contact AWS support, they're typically very understanding and willing to give refunds, especially to beginners.

  • @tioalison

    @tioalison

    3 ай бұрын

    ​@@Flopperam No worries about the late response! Really appreciate your help and videos. Good job, man! If I can ask another small question: I'm not being able to put my fleet online due to a Timeout on the InitSDK() call - do you have any idea? I will keep searching, but any insight would be helpful. Thanks again, bro!

  • @Flopperam

    @Flopperam

    3 ай бұрын

    @@tioalison Hmmm, do you have the exact error? My guess is that the server is either crashing very early at startup or it's not calling the GameLiftServerSDK InitSDK() method right away at startup. My guess is the former.

  • @tioalison

    @tioalison

    3 ай бұрын

    ​@@Flopperam I just deleted the fleet again while experimenting with something else, sorry =( However, the issue was 'fleet initialization timeout due to not calling InitSDK on time.' It's quite strange. I've tried three different versions of OpenSSL as some people suggested it might be the cause, but so far, no solution =(

  • @Flopperam

    @Flopperam

    3 ай бұрын

    @@tioalison Have you looked into integration testing, docs.aws.amazon.com/gamelift/latest/developerguide/integration-testing.html This doc I believe shows you how to make a fleet in which your own computer is the compute resource so you should be able to directly debug what's happening on your PC.

  • @skilatgamedev3353
    @skilatgamedev33533 жыл бұрын

    Hello, so, is it "easy" to make a multiplayer game on Android with gamelift? Is it possible to save the player data on this server ?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    I'm not sure what you mean by easy, but the tutorial should still work since the server is hosted on AWS regardless of what device the client is on, whether it's PC, Mac, Android, iOS, console, etc.

  • @aykageneration
    @aykageneration3 жыл бұрын

    for do the same thing but for packaging Linux server with gameLift server i need to type : cmake -G "Visual Studio 15 2017 Linux" -DBUILD_FOR_UNREAL=1 ?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Yes

  • @WerewolvenGames
    @WerewolvenGames2 жыл бұрын

    it seems like the gamelift plugin doesn't work with UE5, do you know of a solution for this? thanks for the awesome tutorials!

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    Hey, as far as I know, the GmaeLift Server SDK should work for Unreal 5. What error are you facing?

  • @WerewolvenGames

    @WerewolvenGames

    2 жыл бұрын

    @@Flopperam thanks for the reply man, i hopped onto your discord and one of your fine community solved my issue, i pathed a little bit wrong

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    @@WerewolvenGames Ah that was me, glad we could help.

  • @WerewolvenGames

    @WerewolvenGames

    2 жыл бұрын

    @@Flopperam oh! the man the myth the legend himself. my thanks! your tutorials are amazing brotha, i'm just slowing working though them here, learning a lot!

  • @derekmordarski5209
    @derekmordarski5209 Жыл бұрын

    One quick question - instead of having everyone install CMake and set paths for MSBuild, why not just have them open a VS Developer Command Prompt? The path is already set and there's no need to dload CMake... just curious.

  • @Flopperam

    @Flopperam

    Жыл бұрын

    Hey sorry for the late response but this would be better. Looking back, I do agree with you.

  • @derekmordarski5209

    @derekmordarski5209

    Жыл бұрын

    @@Flopperam BTW Awesome detailed tutorial! That must have taken a lot of time to put together. It's basically a class on MultiPlayer :). I'm only on part 5. Have you done the same thing on mobile - specifically iOS?

  • @Flopperam

    @Flopperam

    Жыл бұрын

    I haven't but it should work on mobile since the server is still neither windows or Linux.

  • @user-pn8yl2ml1k
    @user-pn8yl2ml1k4 жыл бұрын

    Is it a bug that you must use VS150COMNTOOLS instead of VS160COMNTOOLS? When I tried to build with Visual Studio 16 2019 generator (in vs developer command prompt terminal without the environment variable setting) , it got stuck in boost build: I got the following errors. error: msvc initialization: parameter 'version' inconsistent error: no value was specified in earlier initialization error: an explicit value is specified now I tried to switch the boost version to 1.73, but unfortunately found it was not compatible with socket io toolkit. So I'm glad that you could build successfully with VS2019.

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Hey, do you have both visual studio 2019 and 2017 installed or just visual studio 2019?

  • @user-pn8yl2ml1k

    @user-pn8yl2ml1k

    4 жыл бұрын

    ​@@Flopperam At first, I only installed vs2019 without adding VS150COMNTOOLS, but I got those errors. Then I turned to vs2017 like the document said (without uninstalling vs2019) , and build successfully. Now I added the environment variable and built successfully again.

  • @SnappierSoap

    @SnappierSoap

    3 жыл бұрын

    @@Flopperam I have the same issue, i have 2019 installed, what can i do to fix this? 2

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    @@SnappierSoap Do you have any other version of Visual Studio also installed?

  • @SnappierSoap

    @SnappierSoap

    3 жыл бұрын

    @@Flopperam no I don't

  • @arjunc5896
    @arjunc5896 Жыл бұрын

    Hi, how can I convert AwsStringOutcome to FSTRING? Aws::GameLift::Server::GetGameSessionId() returns AwsStringOutcome . How can I convert it to FString so that I can use it in the game.

  • @Flopperam

    @Flopperam

    11 ай бұрын

    Hey, sorry for the late reply, but assuming you have a variable of type "Aws::GameLift::Server::Model::GameSession" called gameSession, you can convert the game session id to FString by doing "FString id = FString(gameSession.GetGameSessionId());"

  • @shotgun1995hot
    @shotgun1995hot2 жыл бұрын

    Can use same logic with the setup of playfab dedicated server

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    I'm not too sure but I hope to be able to give a better answer soon as I continue my research into playfab.

  • @shotgun1995hot

    @shotgun1995hot

    2 жыл бұрын

    The playfab thing got crapped back to gamelift 😂 And secondly do I have to make my client app in C++ also ? Example (my game play and ui ) or can use blueprint ? Ps:- the client app is a apk package

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    You can use blueprints for most of the stuff covered, for e.g. the ui.

  • @shotgun1995hot

    @shotgun1995hot

    2 жыл бұрын

    @@Flopperam but the actual gameplay has to written in C++ For the client right ?

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    Afaik, C++ is technically only needed for calling certain parts of the GameLift Server SDK, and making HTTP requests, which can be called by the client or the server. However, both of these things can be wrapped in C++ code that converts it to blueprints. And of course you need the server target cs file as well as slightly modify the project's build cs file if that counts as code.

  • @aryanpatel1354
    @aryanpatel1354 Жыл бұрын

    I am using visual studi0 2022. and unreal engine 5. i am facing issues with camke to generate ms build can anyone help with it. Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045

  • @Flopperam

    @Flopperam

    Жыл бұрын

    Hey, what are the issues?

  • @Marius-vw9hp
    @Marius-vw9hp3 жыл бұрын

    Is it OK to use GameModeBase instead of regular GameMode?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    I'm not too sure but just to be safe, I suggest using GameMode since it is a subclass of GameModeBase so it will contain everything in GameModeBase plus some more methods.

  • @Marius-vw9hp

    @Marius-vw9hp

    3 жыл бұрын

    @@Flopperam I will :) thanks

  • @Marius-vw9hp

    @Marius-vw9hp

    3 жыл бұрын

    looking at the API, it seems theres definitely lots of method I would want access to yes. docs.unrealengine.com/en-US/API/Runtime/Engine/GameFramework/AGameMode/index.html

  • @Marius-vw9hp

    @Marius-vw9hp

    3 жыл бұрын

    @@Flopperam Seems you used the GameModeBase in your tutorial. It says public AGameModeBase

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    @@Marius-vw9hp My mistake then, in that case, it shouldn't matter.

  • @dotBAIT
    @dotBAIT2 жыл бұрын

    Whenever I try to build I get a bunch of errors like incomplete type is not allowed..

  • @dotBAIT

    @dotBAIT

    2 жыл бұрын

    It says "AGameLiftTutorialGameMode" is not a class or namespace but the spelling and everything is correct.. I even tried to copy the code from github in case I missed something. The file names are all correct.

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    @@dotBAIT Hey, could you send a screenshot of the errors? Preferably after restarting Visual Studio and building again.

  • @dotBAIT

    @dotBAIT

    2 жыл бұрын

    @@Flopperam i really appreciate the prompt respawns, I managed to fixed it. For some reason my .dll file was corrupted. I created it again and it worked.

  • @deep3574
    @deep35744 жыл бұрын

    I am getting this error when I launch the server : Default Property warnings and errors: Error : CDO constructer(CarGameHud):Failed to find /Engine/EngineFonts/RobotoDistanceField what is the reason of this?

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Hey, what version of Unreal Engine are you using?

  • @deep3574

    @deep3574

    4 жыл бұрын

    @@Flopperam 4.24.3

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    @@deep3574 Are you using a source build version of Unreal Engine? Also, did you start a new project for this tutorial or are you adding to an existing project?

  • @deep3574

    @deep3574

    4 жыл бұрын

    ​@@Flopperam yes , am using 4.24 source version And I created new project for this tutorial.(Advanced Car Template)

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    @@deep3574 That's very odd then, would it be possible to create a new project without that template just to see if the template specifically is causing that issue?

  • @toysinjammies1613
    @toysinjammies16133 жыл бұрын

    when i try to build as Development Sever i get the error: 1>------ Build started: Project: GameLiftTutorial, Configuration: Invalid Win32 ------ 1>The selected platform/configuration is not valid for this target.

  • @toysinjammies1613

    @toysinjammies1613

    3 жыл бұрын

    got thru that but I'm stuck on Makefile Failure: 3>C:\[path]VC\v160\Microsoft.MakeFile.Targets(54,5): error MSB3073: The command "C:\WINDOWS\System32\chcp.com 65001 >NUL 3>C:\[path]VC\v160\Microsoft.MakeFile.Targets(54,5): error MSB3073: C:\DEVTOOLS\UE_4.24\Engine\Build\BatchFiles\Rebuild.bat GameLiftTutorialServer Win64 Development -Project="C:\[path].uproject" -WaitMutex -FromMsBuild" exited with code -1.

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    @@toysinjammies1613 try repairing your visual studio through the visual studio installer and then try building the project again

  • @toysinjammies1613

    @toysinjammies1613

    3 жыл бұрын

    @@Flopperam ill do that and run thru the code again. Could be a dumb thing I did in the header/cpp files throwing off the targets

  • @aiden6343
    @aiden63433 жыл бұрын

    Dont have an option for Development Server in configuration settings

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Which version of Unreal Engine are you using? And are you using Unreal Engine source or the Epic Games launcher version?

  • @aiden6343

    @aiden6343

    3 жыл бұрын

    @@Flopperam oooh i guess i need to go get the github version of ur engine

  • @aiden6343

    @aiden6343

    3 жыл бұрын

    thx

  • @WalidtheNoematicsguy
    @WalidtheNoematicsguy4 жыл бұрын

    can this be used for andriod?

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Yes!

  • @WalidtheNoematicsguy

    @WalidtheNoematicsguy

    4 жыл бұрын

    @@Flopperam Thank you :) I have followed your initial tutorial on gamelift, it worked so smooth for windows. Really excited to see how it works for andriod :) You are doing great job...thanks :)

  • @hsfbdhfvgd
    @hsfbdhfvgd3 жыл бұрын

    hey im getting this error : Error C2039 'DefualtPort': is not a member of 'FUrlConfig' GameLiftEnterprise D:\GithubUE4\Projects\GameLiftEnterprise\Source\GameLiftEnterprise\Private\GameLiftEnterpriseGameMode.cpp 63 for this line in the GameMode Code: int Port = FURL::UrlConfig.DefualtPort; Any help would mean alot Thanks

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Hey, what version of Unreal Engine are you using?

  • @hsfbdhfvgd

    @hsfbdhfvgd

    3 жыл бұрын

    @@Flopperam im using 4.25.3 also im getting one other error that is in the visual studio MakeFile.targets script: Error MSB3073 The command "C:\Windows\System32\chcp.com 65001 >NUL D:\GithubUE4\Engine\Build\BatchFiles\Build.bat GameLiftEnterpriseServer Win64 Development -Project="D:\GithubUE4\Projects\GameLiftEnterprise\GameLiftEnterprise.uproject" -WaitMutex -FromMsBuild" exited with code 6. GameLiftEnterprise C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 46 for the line thanks for the fast response! Also im starting the tutorial again with the 4.34 version that you are using to see if it will fix it!

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    @@hsfbdhfvgd hmmm, can you try restarting your visual studio as well as cleaning/repairing your visual studio through the visual studio installer?

  • @hsfbdhfvgd

    @hsfbdhfvgd

    3 жыл бұрын

    @@Flopperam I tried that and unfortunately it didnt work, i also triend using the same ue4 version as you and vs 2017 it still didnt work.

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    If you comment out that line of code, and then reinitialize an int variable called Port but hardcode the value to something like 7777 for example, will the project compile successfully? This is just for testing purposes.

  • @cryenginetutorialsitaeng7354
    @cryenginetutorialsitaeng73543 жыл бұрын

    Hi , i'm gettin those errors from compiler at the end when compiling DevelopmentServer >UnrealBuildTool : error : Server targets are not currently supported from this engine distribution. 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(54,5): error MSB3073: The command "E:\giochi_epic\UE_4.24\Engine\Build\BatchFiles\Rebuild.bat GameLiftMPServer Win64 Development -Project="E:\Unreal_Projects\GameLiftMP\GameLiftMP.uproject" -WaitMutex -FromMsBuild" exited with code -1.

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    Hey, are you using a version of Unreal Engine built from source?

  • @cryenginetutorialsitaeng7354

    @cryenginetutorialsitaeng7354

    3 жыл бұрын

    @@Flopperam Hi there, yep i'm using 4.24.3

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    @@cryenginetutorialsitaeng7354 Can you try right-clicking your uproject file in File Explorer and select "Switch Unreal Engine version" and make sure you select a source build version. It's possible that the project was made with a non-source build version and Visual Studio is defaulting to that version.

  • @cryenginetutorialsitaeng7354

    @cryenginetutorialsitaeng7354

    3 жыл бұрын

    @@Flopperam Hey, you were right, the engine source wasn't selected, the other issue are solvedn ow but popped up those two, i have disabled intellisense but giving error on UPROPERTY the second one i don't know actually what is . Severity Code Description Project File Line Suppression State Error Unrecognized type 'FHealthCheckState' - type must be a UCLASS, USTRUCT or UENUM GameLiftMP E:\Unreal_Projects\GameLiftMP\Source\GameLiftMP\Public\GameLiftMPGameMode.h 84 Severity Code Description Project File Line Suppression State Error MSB3073 The command "E:\git_repo_ue\UnrealEngine_4.24\Engine\Build\BatchFiles\Build.bat GameLiftMPServer Win64 Development -Project="E:\Unreal_Projects\GameLiftMP\GameLiftMP.uproject" -WaitMutex -FromMsBuild" exited with code 6. GameLiftMP C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 46

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    @@cryenginetutorialsitaeng7354 Make sure that right above the definition for "FHealthCheckState" in the GameLiftMPGameMode.h file that you have "USTRUCT()"

  • @endixexpo7680
    @endixexpo76803 жыл бұрын

    Do you work for hire?

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    I do not unfortunately

  • @endixexpo7680

    @endixexpo7680

    3 жыл бұрын

    @@Flopperam what if I pitch you the idea and you like it ahaha. It is about creating an inclussive event for gamers worldwide

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    @@endixexpo7680 Haha, I'm honored but it's more of a time issue for me. I tried doing freelance work in conjunction with my full-time job before and it just didn't work out.

  • @noha163
    @noha1633 жыл бұрын

    dude this isnt working for 4.25.3 i used you downloaded git files too still not working

  • @Flopperam

    @Flopperam

    3 жыл бұрын

    What's the error you are experiencing?

  • @noha163

    @noha163

    3 жыл бұрын

    @@Flopperam i found that it basically did not compile with cmake when i tried to package it in the start... although i just downloaded your git project built it and now everythings fine ....... so i guess its probably my stupidity somewhere that messed it up. anyways thx for uploading the projrct your a legend

  • @abhiv2995
    @abhiv29954 жыл бұрын

    Free hai sir

  • @beastboioioi

    @beastboioioi

    4 жыл бұрын

    Abhi V ?

  • @beastboioioi
    @beastboioioi4 жыл бұрын

    Daily uploads?

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    Beast, you know we're not good enough for that ;)

  • @beastboioioi

    @beastboioioi

    4 жыл бұрын

    Flopperam, you sure?

  • @Flopperam

    @Flopperam

    4 жыл бұрын

    @@beastboioioi yes

  • @beastboioioi

    @beastboioioi

    4 жыл бұрын

    Flopperam smh

  • @carlosreyes8443
    @carlosreyes8443 Жыл бұрын

    Min 10:20, i have this error: Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped

  • @giacomofumagalli8532
    @giacomofumagalli85322 жыл бұрын

    Hi Flopperam, I post another comment because Im not able to answer to your reply. Anyway I tried restarting the project and compile but without success. In the package log it throws me this error "UATHelper: Packaging (Windows (64-bit)): D:/UnrealProjects/MultiplayerAWSGmLift/Source/MultiplayerAWSGmLift/Public/MultiplayerAWSGmLiftGameMode.h(83) : Error: Expected a GENERATED_BODY() at the start of class PackagingResults: Error: Expected a GENERATED_BODY() at the start of class" Do you have any ideas? I also emailed you. Thank you again

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    Hey, could you join our Discord server so that we can better discuss this? The link to it is in the description.

  • @giacomofumagalli8532

    @giacomofumagalli8532

    2 жыл бұрын

    @@Flopperam Ok thank you

  • @giacomofumagalli8532
    @giacomofumagalli85322 жыл бұрын

    Hi again, I have 6 errors when I compile, I'm sorry to bother but I cant debug myself so I kindly ask you if you have ideas on these issues 1 to 4) 'E0077 This declaration has no storage class or type specifier' and it is referred to GENERATED_BODY(); 5) No code error it simply says 'Expected GENERATED_BODY();' at the start of class 6) Error MSB3073 The command "D:\UE_4.26.2\Engine\Build\BatchFiles\Build.bat MultiplayerAWSGmLiftServer Win64 Development -Project="D:\UnrealProjects\MultiplayerAWSGmLift\MultiplayerAWSGmLift.uproject" -WaitMutex -FromMsBuild" exited with code 6. Have you got any ideas?

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    Hey, try restarting the project and compiling again. It does sound like maybe a missing squiggly bracket somewhere though.

  • @giacomofumagalli8532
    @giacomofumagalli85322 жыл бұрын

    Hi, the tutorial is amazig but I'm stuck at the point when you build the project at 17.53 I have this errors: 1) Unable to find plugin 'GameLiftServerSDK' (referenced via MultiplayerAWSGmLift.uproject). Install it and try again, or remove it from the required plugin list. MultiplayerAWSGmLift 2) Errore MSB3073 uscita dal comando "D:\UE_4.26.2\Engine\Build\BatchFiles\Build.bat -Target="MultiplayerAWSGmLiftEditor Win64 Development -Project=\"D:\UnrealProjects\MultiplayerAWSGmLift\MultiplayerAWSGmLift.uproject\"" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild" con codice 6. Do you have any ideas about the issue? Thank you

  • @Flopperam

    @Flopperam

    2 жыл бұрын

    Hey, a couple of questions. did you add the GameLiftServerSDK to the Plugins directory within your project? Also, did you regenerate your project's Visual Studio project files?

  • @giacomofumagalli8532

    @giacomofumagalli8532

    2 жыл бұрын

    @@Flopperam Hi! Yes, I did both of things, maybe I'll try again to regenerate the project. The strange thing is that the GameLift-UnrealPlugin 3.4 didnt have inside the different versions of UE, maybe could be that?

  • @giacomofumagalli8532

    @giacomofumagalli8532

    2 жыл бұрын

    @@Flopperam Hi, I found the error, you were right, I didnt correctly add the plugin to the directory. This content is awesome and help a lot of people understand and develop projects. Thank you.

  • @carlosreyes8443
    @carlosreyes8443 Жыл бұрын

    Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped

  • @BUGMAKER-mu9fo
    @BUGMAKER-mu9fo Жыл бұрын

    please help me to resolve this i got stuck for last 2 days (CustomBuild target) -> CUSTOMBUILD : error : msvc initialization: parameter 'version' inconsistent [C:\Users\lvpc010\Downloads\GameLift_06_0 3_2021\GameLift-Cpp-ServerSDK-3.4.2\out\thirdparty\boost.vcxproj] CUSTOMBUILD : error : no value was specified in earlier initialization [C:\Users\lvpc010\Downloads\GameLift_06_03_202 1\GameLift-Cpp-ServerSDK-3.4.2\out\thirdparty\boost.vcxproj] CUSTOMBUILD : error : an explicit value is specified now [C:\Users\lvpc010\Downloads\GameLift_06_03_2021\GameLift-Cpp -ServerSDK-3.4.2\out\thirdparty\boost.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(2 41,5): error MSB8066: Custom build for 'C:\Users\lvpc010\Downloads\GameLift_06_03_2021\GameLift-Cpp-ServerSDK-3.4.2\out \CMakeFiles\9207ccdb6bb26dc26fe33a67c05596cf\boost-build.rule;C:\Users\lvpc010\Downloads\GameLift_06_03_2021\GameLift-C pp-ServerSDK-3.4.2\out\CMakeFiles\9207ccdb6bb26dc26fe33a67c05596cf\boost-install.rule;C:\Users\lvpc010\Downloads\GameLi ft_06_03_2021\GameLift-Cpp-ServerSDK-3.4.2\out\CMakeFiles\67a7e211e76473f327d15b0377fae8d6\boost-complete.rule;C:\Users \lvpc010\Downloads\GameLift_06_03_2021\GameLift-Cpp-ServerSDK-3.4.2\out\CMakeFiles\9d41960a6ff65fd4fdc186b4db5d5e16\boo st.rule' exited with code 1. [C:\Users\lvpc010\Downloads\GameLift_06_03_2021\GameLift-Cpp-ServerSDK-3.4.2\out\thirdpart y\boost.vcxproj]

Келесі