I’ve gone through the official documentation on generating the unreal dedicated server.exe and I cannot for the life of me get the server.exe to generate. Everytime I build the solution set to development server unreal engine builds a UE4 version of it (UE4Server.exe) in the source engine project but not in my game project. What am I doing wrong?
Try to use UnrealFrontend. Here is tutorial: piinecone — Building a dedicated server in Unreal Engine 4, point 6 - Cook content for Windows Server with UnrealFrontend.
Hey thanks for getting back to me MisterVento3. The problem Is that it’s not generating the server executable to run. For whatever reason even though the build target is in the correct spot in the project folder I don’t get any executable generated on project build like the A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums says is supposed to happen. Using UnrealFrontEnd throws an error about not being able to do something with said server so my assumption is, is that it’s still not being generated and it cant find it to package it. Am I incorrect with this assumption?
Hey KaoticS-
You will need to first download a source version of the engine from GitHub in order to setup a dedicated server if you haven’t done so yet. A detailed explanation can be found here along with a link to the original page you referenced: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
Cheers
,
I have a source built version of the engine. The issue I am having is that when I put it to Development Server (Server target is in the right spot and everything in the game project) and I build it, the server executable for the game isn’t being built but the one for the UE4 project is (It’s generating a UE4Server.exe). I have followed these instructions to the letter and have not been able to generate a server executable for my game, but rather every time it generates one for the UE4 engine rather than the game project.
When you set Development Server and then build, are you right clicking on the project name or on “UE4”? Also, is your project saved inside your engine folder? If so can you try moving it to another location and then build the server again? For reference, here are the steps I used:
- Create a new Code project from my source engine
- Create < MyGame >Server.Target.cs by copying the code from A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums and changing instances of “Game” to “ProjectName” & save
- Right Click on .uproject and select Generate Visual Studio Project Files
- Open project .sln and build UE4 for Development Editor
- Build UnrealFrontEnd for Development Editor
- Build project for Development Editor
- Open UnrealFrontEnd from /engine/binaries/win64/unrealfrontend.exe. and set up following directions in the link (step 8)
- Change solution configuration to Development Server
- Right click ProjectName and Build
With a project named “Dedicated”, after following these steps I had “DedicatedServer.exe” in the Project/Binaries/Win64 folder that launched the dedicated server. After building the .sln in Development Client configuration I could also launch a client of the project and connect to the dedicated server (steps 10, 11, & 12).
,
Yea the issue was somehow when I was right clicking on the project in visual studio and building it, it was actually building it with the configuration I had selected. After going in manually to the configuration editor and setting it to development server and doing build only and selecting the project did it finally generate the dedicated server executable. Thank you for your help, apparently I still have way more to learn about the Visual Studio editor.
I had this problem and eventually realized that Visual Studio wasn’t recognizing the file. This is because it’s a .txt file in windows explorer and must be a .vs file for visual studio to recognize it. Go into windows explorer and change the file type