If you want to launch your server on a machine without a Steam client installed, you will have to set up authentication via the Steam Web API. This is the easiest and handiest method that does not require any setting up and works automatically when launched via Steam. Native authentication via the local Steam client on your machine. Instead, Steam is employed for this purpose, and the server has two mechanisms that work in parallel to achieve this: The server does not have any user authentication mechanism of its own. You can replace this module with your own one, if you wish to use another method of storing and handling data.Ĭommon is a shared code base with useful utilities. It executes game scripts and interacts with game world objects.ĭriver is a link between the environment-independent engine (that is shared for the official server, standalone server, and in-browser simulation) and the immediate environment that hosts the game engine. The rest of the processes connect to storage to exchange data.īackend contains an HTTP server accessed by clients and a CLI server for administration.Įngine is the game core. Storage contains a LokiJS-based database, a key-value storage, and a Pub/Sub mechanism. Launcher launches the rest of the processes, and it includes the server control GUI. Each module has its own code base and GitHub repository, while the engine module is shared between the official and standalone servers and other modules are developed specifically for the standalone server.Įach module is intended for its own strict purpose: They may be in the node_modules of any catalog according to the npm rules. The server consists of 6 separate modules: launcher, storage, backend, engine, driver, common. steam_api_key If you launch the server without running the local Steam client, then the Steam Web API key is required for authenticating users. Don't set this option greater than the number of your physical CPU cores. processors_cnt The number of parallel processor worker processes to launch. runners_cnt The number of parallel runner worker processes to launch. cli_host The hostname on which the CLI server should listen. cli_port The port number on which the CLI server should listen. password The server password which should be provided on user sign in. host The hostname on which the game server should listen. port The port number on which the game server should listen. assetdir The path to directory where static assets are located. modfile The path to JSON file with the list of custom mods to load. logdir The path to directory where logs will be created. Launch options can be configured from command line or using the. You can specify them directly when you launch the server using the console command start. screepsrc in the current catalog stores launch configuration options. If you use a stock launcher (either desktop or console), the file. Click "Change server" and enter your server credentials: You can connect to your private server using the Steam game client. See this step-by-step guide which explains how to install a standalone private server on Ubuntu using MongoDB and Redis as a storage. However, you can manually replace the storage engine with another community solution to improve performance. The default built-in storage is based on LokiJS library which allows to embed it in pure JavaScript environments like the Steam game client. Please refer to the file launcher/lib/start.js for the list of environment variables that each process needs. You can launch those processes your own way (for example, via upstart/systemd, for distributing them across different machines, or setting up an automated testing framework). The launchers are intended to launch other server's processes and give them correct environment variables. You will be prompted for your Steam Web API key, you can obtain it on this page. Build tools ( apt install build-essential for Ubuntu, Visual Studio for Windows, etc).Python 2 (for node-gyp, Python 3 is not supported).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |