Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RyroNZ/UE4MasterServer
This is a plugin for Unreal Engine 4 that adds server registration, deregistration etc with a master server.
https://github.com/RyroNZ/UE4MasterServer
Last synced: 2 months ago
JSON representation
This is a plugin for Unreal Engine 4 that adds server registration, deregistration etc with a master server.
- Host: GitHub
- URL: https://github.com/RyroNZ/UE4MasterServer
- Owner: RyroNZ
- License: zlib
- Created: 2015-06-20T11:55:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T15:35:40.000Z (about 2 years ago)
- Last Synced: 2024-08-02T16:31:06.305Z (6 months ago)
- Language: C++
- Homepage: http://ryanpost.me
- Size: 22.1 MB
- Stars: 223
- Watchers: 30
- Forks: 73
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unreal - UE4MasterServer - This is a plugin for Unreal Engine 4 that adds server registration, deregistration etc with a master server. (Networking)
README
# Online Subsystem Python
Created by RyroNZOnline Subsystem Python is a self-hosted online subsystem for Creating, Finding and Joining Sessions over the internet using the standard session nodes.
It is based off the Null subsystem.![](https://puu.sh/El2ZS/e3abeb7e11.png)
Example Video: https://puu.sh/EkmSl/d85c851ec2.mp4
## Installing the Plugin
Copy the Online Subsystem Python folder containing the .uplugin into the Plugins folder in your Project Directory.
If the Plugins folder does not exist you can create it.
Open your .uproject and add the following add “OnlineSubsystemPython” to the plugins list and set it to Enabled.
```
{
"FileVersion": 3,
"EngineAssociation": "4.22",
"Category": "",
"Description": "",
"Modules": [
{
"Name": "MyProjectName",
"Type": "Runtime",
"LoadingPhase": "Default",
"AdditionalDependencies": [
"FunctionalTesting"
]
}
],
"Plugins": [
{
"Name": "OnlineSubsystemPython",
"Enabled": true
}
]
}
```
In your DefaultEngine.ini under [OnlineSubsystem] change the DefaultPlatformService so it reads
‘DefaultPlatformService=Python’
```
[OnlineSubsystem]
DefaultPlatformService=Python
bUseBuildIdOverride=true
BuildIdOverride=262494
PollingIntervalInMs=20
bHasVoiceEnabled=true
```## Running the Server
Find the Server folder in the Plugin directory, copy that to the machine you want to run the server on
(We use Digital Ocean to host our servers, YMMV)Install Python 3
```
$ python -m pip install --upgrade -r requirements.txt
$ python3 OnlineSubsystemPythonServer.py
```
Your server should be up and running, if you wish to configure the port the server is running on you’ll find it
specified in cherrypy.config.update() on line 125.
```
cherrypy.config.update({ 'server.socket_port': 8081,
'server.socket_host': '0.0.0.0',
"server.ssl_module": "pyopenssl",
'server.thread_pool' : 100
})
```## Configuring Client
Open OnlineSubsystemPythonConfig.cpp in the Source/Private directory
Change the SeverAddress to the IP/Domain you are using for your server.
```
UOnlineSubsystemPythonConfig::UOnlineSubsystemPythonConfig()
: ServerAddress("127.0.0.1:8081")
, AuthorizationTicket("")
{}
```Please note, the plugin only has support for the following session settings key/value pairs.
```
SERVERNAME
MAPNAME
GAMEMODE
PASSWORDPROTECTED
PLAYERCOUNT
```Everything should be working now and you should be able to host and join using the standard session nodes!
If there are things not working, please email me at [email protected]