UE-Module-RelatedWorld icon indicating copy to clipboard operation
UE-Module-RelatedWorld copied to clipboard

Module for support separated server maps with replication to the persistent client map

Unreal Engine 4 - Related World module

About

This module will allow you to load several maps on server side of you game and replicate its to a one persistent level on a client side, or use it as a offscreen worlds in a standalone game (you need spawn actor with scene capture component for get render from this world)

Installation

  • Clone latest sources into Source/RelatedWorld directory of you project
  • Edit {ProjectName}{TargetType}.Target.cs file in Source directory and add next code into {ProjectName}{TargetType}Target function
ExtraModuleNames.AddRange(new string[] { "RelatedWorld" });
  • Into {ProjectName}.uproject add next code into Modules section
{
  "Name": "RelatedWorld",
  "Type": "Runtime",
  "LoadingPhase": "Default"
}
  • Into Config/DefaultEngine.ini add next code into [/Script/Engine.Engine] section
!NetDriverDefinitions=
NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/RelatedWorld.RwIpNetDriver",DriverClassNameFallback="/Script/RelatedWorld.RwIpNetDriver")
+NetDriverDefinitions=(DefName="DemoNetDriver",DriverClassName="/Script/Engine.DemoNetDriver",DriverClassNameFallback="/Script/Engine.DemoNetDriver")

[/Script/RelatedWorld.RwIpNetDriver]
ReplicationDriverClassName="/Script/RelatedWorld.RwReplicationGraphBase"
  • Make sure plugin OnlineSubsystemUtils is on
  • Make sure plugin ReplicationGraph is on
  • Make sure option EnableMultiplayerWorldOriginRebasing is on
  • Recompile you project

Notes

  • I strongly not recommend use built in replication graph, due it was added only for experimental purpose.

Simple Usage

https://cdn.discordapp.com/attachments/644401603088089119/727580647643807855/2020-06-30_20-44-15.png

Demo Project

https://github.com/Delta-Proxima-Team/UE4-Sample-RelatedWorld

Demo Video

Youtube