Changes between Version 5 and Version 6 of Instance management


Ignore:
Timestamp:
14.11.2023 18:27:51 (6 months ago)
Author:
Alloc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Instance management

    v5 v6  
    21217dtd.sh instances create
    2222}}}
    23 This will first ask for a name for the new instance and afterwards ask you for all the config-parameters. Parameter queries look like this:
    24 {{{
    25 Server name:                   
     23This will first ask for a name for the new instance and afterwards opens the config.xml in your default text editor.
    2624
    27 Public server [false]:             
    28 
    29 Drop on Death, options:
    30    0: Everything
    31    1: Toolbelt only
    32    2: Backpack only
    33    3: Delete all
    34 Select option (0-3) [1]:           
    35 
    36 Night percentage (10-90) [15]:     
    37 }}}
    38  Server name::
    39    This example shows a parameter which has no default so you have to enter a name.
    40  Public server::
    41    Here a default value (false) is given. If you only press <ENTER> without typing anything the default will be used. Also this is a boolean value, so you can only enter yes/no/y/n/true/false.
    42  Drop on Death::
    43    This is a enumerated value, meaning you are shown the option values and then select one of them by the appropriate number.
    44  Night percentage::
    45    Here a valid range (10-90) is given, meaning you can not enter a value outside this range.
    46 
    47 '''NOTE:''' Currently there are three options that are automatically set:
     25'''NOTE:''' Currently there are three options that are forced when instances are launched so setting them in the config has no effect:
    4826* TelnetEnabled: This has to ''true'' so the management scripts can access the instance. '''Having this open to the public internet is a security risk. See [[Ports]]'''
    4927* AdminFileName: This is set to ''admins.xml'' so it automatically uses that file in the instance folder.
    50 * SaveGameFolder: This is set to the instance folder.
     28* UserDataFolder: This is set to the instance folder.
    5129
    52 When you are done with entering all parameters the config.xml will be saved and the instance is ready to be started.
     30When you are done with entering all parameters save the config.xml and the instance is ready to be started.
    5331
    5432
     
    5836{{{
    59377dtd.sh instances print_config <instancename>
     38}}}
     39
     40Alternatively print the actual XML as is, optionally with syntax highlighting if you have ''pygmentize'' installed:
     41{{{
     427dtd.sh instances print_xml <instancename>
    6043}}}
    6144
     
    6851}}}
    6952
    70 You will then be shown an interface to edit the options similar to the interface when creating a new instance.
     53This will open the config.xml in your default text editor.
    7154
    7255
     
    8265'''WARNING:''' This will delete every aspect of the instance:
    8366* Save games
     67* Created RWG world (if the instance used a custom one)
     68* Mods local to the instance
    8469* Configuration
    8570* Logs