Running Your Game

Online games can be run in multiple ways. Read on to find our more.

Client Build

To run an AnyMMO client, just ensure that when you create a build profile, you choose one of the non server build types.

Server Build

There are three ways to run an AnyMMO server.

  1. Running a server through the GUI with a normal build.

  2. Running a server through the command line with a normal build.

  3. Running a server with a server build.

Server Options

The following options are available at run time and can be configured through the command line or GUI.

Name
Description
Command Line Switch
Example
Default Value

Server Mode

Lobby Players can host their own matches and other players can join. This mode is meant for Arena PVP/PVE type of play. MMO Players create characters and login to a persistent online world.

--servermode

--servermode Lobby --servermode MMO

MMO

Port

The network port the server will listen on and clients will connect to.

--serverport

--serverport 1234

7770

Run A Server Through the GUI With A Normal Build

When making a normal (non server) build, you can choose to run the client or server using the same executable. To run the server, choose Play Online from the main menu and then click Host Server.

Choose the server mode and port and click Start Server

Run A Server Through The Command Line With A Normal Build

To run a normal (non server) build in server mode through the command line, open a command prompt (terminal) and find the folder with the game executable, then run it with the following flags -batchmode -nographics.

Run A Server With A Server Build

Ensure that the type of server build you want is installed.

Click Add Build Profile.

Name your game build and click Add Build Profile.

Click Add Settings and then Scene List

Add all the scenes to the scene list that are in the non server build and ensure the profile is active.

With the profile active, click Build, or Build And Run.

To run the server, just run the executable. Since this is a server build, no extra command line switches are needed.

Last updated