[UE4]如何部署UE的独立专用服务端(Standalone Dedicated Server)

这是论坛上对UE服务端功能的回答,意思是UE4提供了主流MMO网游服务端所具备的特性,包括位移修正、物理碰撞检测。(这些特性不是UE4才加入,早期UE版本就有了)

https://answers.unrealengine.com/questions/14311/what-online-multiplayer-features-are-available-and.html

Answers

"Does UE4 have features built in to built a (dedicated) authoritative server?"

yes, absolutely, you can run a dedicated server and have as many client machines connect to it as you want

"If yes, does it handle/support player movement interpolation and physics synchronization?"

Player movement is always interpolated for you (thank you Epic!_

Physics Sync

You must specify during content creation which static mesh actors you want to have replication, in the Blueprints for these static mesh actors.

just do a filter for "rep" after making a blueprint of a static mesh actor.

There are several replication related properties that you should activate.

"Are there features to run multiple games (like 10 player instances) on a single server without spawning multiple processes of the dedicated server?"

You only have the server run one instance of the game, and client machines connect to it and are fed data from the server via replication variables.

To my knowledge the server does not create any extra processes the more clients are connected.

You should just make a dedicated server and have clients connect and enjoy, it works!

More Info

If you are serious about networking stuff you should definitely be coding in the C++ and creating the networked gameplay you want.

My Own Real Multiplayer Game

It is not that complicated at all to get started, I've already hosted real multiplayer games for my own game project with multiple participants many times just using IP address.

My game is an in-game editor and has very unusual game logic, all of which I have been able to convert into networked environment.

I assure you it is really not that complicated, it is just a few extra layers of syntax in the C++ and then you can be making your own custom networked game logic.

The Unreal Engine is a leader in the industry regarding multiplayer games, you are good to go

 

 

官方文档v4.4.3:Dedicated Server Guide (Windows & Linux)

https://wiki.unrealengine.com/Dedicated_Server_Guide_(Windows_%26_Linux)

 

Networking and Multiplayer

https://docs.unrealengine.com/latest/INT/Gameplay/Networking/index.html

 

Build Standalone Dedicated Server - Unreal Engine 4.7.2

https://www.youtube.com/watch?v=3j72KCPUdog

 

Unreal Engine 4 - Setting up a dedicated server on Windows x64 platform (tutorial)

https://www.youtube.com/watch?v=zSA8zUo8oCg

 

Unreal Engine 4 Dedicated Server Multiplayer Tutorial Unreal Engine Pt1 UE4

https://www.youtube.com/watch?v=BvurHyjI_sY

 

Unreal Engine 4 Dedicated Server Multiplayer Tutorial Unreal Engine Pt2 UE4

https://www.youtube.com/watch?v=c2Ao4esX4UY

你可能感兴趣的:(UE4)