Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Follow the steps to set up the multiplayer server:

Step 1. Navigate to Source folder

image-20241202-174248.pngImage Removedimage-20241218-152439.pngImage Added

Step 2. Create a new file and name it as YourProjectNameServer.Target.cs

Info

Make sure to replace YourProjectName with the actual name of your project.

image-20241202-174356.pngImage Removedimage-20241218-152527.pngImage Added

Step 3. Open the YourProjectNameServer.Target.cs file in any text editor, add the following code, and save it

Info

Make sure to replace YourProjectName with the actual name of your project.

...

Warning

Don't forget to save the file from your editor after making the changes.

Step 4. Right-click the .uproject file of your Unreal Engine project and select Generate Visual Studio project files.

...

Step 5. Double-click the .sln file to open the project in Visual Studio.

image-20241202-174932.pngImage Removedimage-20241218-153335.pngImage Added

Step 6. Set the configuration to Development Server and build the project by pressing Ctrl + B

image-20241202-175126.png

Step 7. Once the build is successful, switch the configuration to Development Editor and build the project by pressing Ctrl + B. Then press F5 to open the project automatically.

image-20241202-175217.png

image-20241129-045530.png

Step 8. Navigate to project settings

...

Step 9. Select Maps and Modes

image-20241203-124107.pngImage Removedimage-20241218-154242.pngImage Added

Step 10. Configure Maps and Modes

  • Global Default Server Game Mode: Set as YourProjectNameGameMode (eg., MultiPlayerDemoGameMode)

  • Global Default Server Game Mode: YourProjectNameGameMode (eg., MultiPlayerDemoGameMode)

  • Editor Startup the same game mode as the Default Game Mode.

  • Server Default Map: Set as ThirdPersonMap

  • Game Default Map: Set as ThirdPersonMap

Info

If you are using VRTemplateMap, then set Server Default Map

...

as

...

VRTemplateMap.

image-20241203-124221.pngImage Removedimage-20241218-154130.pngImage Added

...

💬 Ask questions and help your peers Community Forum

...