Giter Club home page Giter Club logo

ue4masterserver's Introduction

Online Subsystem Python

Created by RyroNZ

Online 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.

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]

ue4masterserver's People

Contributors

colorbuffer avatar dids avatar ryronz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.