This repository contains the UE5 plugin for Network Next.
It's tested working with Unreal Engine 5.3.2
The plugin supports Win64, Linux, Mac, PS4, PS5 and GDK (XBoxOne, SeriesX and PC)
-
Copy the entire NetworkNext folder into your Plugins directory.
-
Add the following to the bottom of DefaultEngine.ini
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/NetworkNext.NetworkNextNetDriver",DriverClassNameFallback="/Script/NetworkNext.NetworkNextNetDriver")
[/Script/NetworkNext.NetworkNextNetDriver]
NetConnectionClassName="/Script/NetworkNext.NetworkNextConnection"
[NetworkNext]
Datacenter="local"
BuyerPublicKey="zkaPRGcAuThG6poXMJ8di/yKzgZEbqyQ6Ky951reRq4sgCm83lV24g=="
BuyerPrivateKey="zkaPRGcAuTiYwqkwWEmWSrsxpcJzErC1mkBz3W0PlWdSynr/uuS4jUbqmhcwnx2L/IrOBkRurJDorL3nWt5GriyAKbzeVXbi"
-
Scan all ini files in your game project in case somewhere else is clobbering the NetDriver setting. If this is the case the Network Next plugin will not work. This is a common failure point during integration for our Unreal Engine customers.
-
Replace the keypair values in DefaultEngine.ini with your own keys.
-
Edit your game mode blueprint to exec UpgradePlayer in response to the OnPostLogin
-
Set environment variables on the server, so Network Next knows where your server is running.
export NEXT_SERVER_ADDRESS=10.2.100.23:7777 # change to the public IP:port of your server
export NEXT_DATACENTER=cloud # autodetects datacenter in GCP or AWS
- If setting environment variables is not possible, you can pass the values in using command line parameters
-serverAddress=10.2.100.23:7777
-datacenter=cloud
- Secure yourself in production. Be absolutely sure not to ship the BuyerPrivateKey value to players with your game. It is a private value, and should only be accessible to your game server. The BuyerPublicKey value is OK to ship with your game.