Startup Config File: Difference between revisions

From Resonite Wiki
Zandario (talk | contribs)
mNo edit summary
 
GH Issue 1127
Line 1: Line 1:
<!--T:1-->When provided a valid JSON file from the [[Command Line Arguments]]'s <code>-Config</code>, Resonite will read this file and alter itself based on the configuration parameters.
<!--T:1-->When provided a valid JSON file from the [[Command Line Arguments]]'s <code>-EngineConfig</code>, Resonite will read this file and alter itself based on the configuration parameters.


== Usage == <!--T:2-->
== Usage == <!--T:2-->
Start Resonite with the <code>-Config</code> command line argument. Following the argument enter a space and then the file path to your config file. Example: <code>-Config "C:\Cheese\cheese.json"</code>
Start Resonite with the <code>-EngineConfig</code> command line argument. Following the argument enter a space and then the file path to your config file. Example: <code>-EngineConfig "C:\Cheese\cheese.json"</code>


== Configuration Properties == <!--T:3-->
== Configuration Properties == <!--T:3-->
Line 43: Line 43:
       "tags": ["cheese", "dimension"],
       "tags": ["cheese", "dimension"],
       "mobileFriendly": false,
       "mobileFriendly": false,
       "loadWorldUrl": "neosrec:///U-Cheese/R-c59ca2b2-2239-492d-98ee-b37cefbb6ba7",
       "loadWorldUrl": "resrec:///U-Cheese/R-c59ca2b2-2239-492d-98ee-b37cefbb6ba7",
       "loadWorldPresetName": "GridSpace",
       "loadWorldPresetName": "GridSpace",
       "forcePort": 4020,
       "forcePort": 4020,

Revision as of 20:45, 12 January 2024

When provided a valid JSON file from the Command Line Arguments's -EngineConfig, Resonite will read this file and alter itself based on the configuration parameters.

Usage

Start Resonite with the -EngineConfig command line argument. Following the argument enter a space and then the file path to your config file. Example: -EngineConfig "C:\Cheese\cheese.json"

Configuration Properties

Property Description
noUI Identical to the -NoUI command line flag, hides any user space UI.
inputs allows you to tweak trigger dead zones and axis dead zones
universeId Specifies the UniverseId for this session
disableDesktop completely disabling the Desktop functionality in Resonite
unsafeModeWhiteList TODO
autoStartWorlds Identical to the "startWorlds" parameter of a headless session configuration

Sample File

This is a sample file:

{
  "noUI": true,
  "disableDesktop": false,
  "inputs": {
    "triggerDeadZone": 0,
    "axisDeadZone": 0
  },
  "universeId": "cheese",
  "unsafeModeWhiteList":["a","b"],
  "autoStartWorlds": [
    {
      "sessionName": "The Cheese Dimension",
      "customSessionId": "cheese-dimension",
      "description": "Cheese for all!",
      "maxUsers": 32,
      "accessLevel": "Anyone",
      "hideFromPublicListing": false,
      "tags": ["cheese", "dimension"],
      "mobileFriendly": false,
      "loadWorldUrl": "resrec:///U-Cheese/R-c59ca2b2-2239-492d-98ee-b37cefbb6ba7",
      "loadWorldPresetName": "GridSpace",
      "forcePort": 4020,
      "keepOriginalRoles": true,
      "defaultUserRoles": {
        "CheeseLord": "Admin"
      },
      "awayKickMinutes": 5
    }
  ]
}

</translate>