Changes between Version 5 and Version 6 of Instance management
- Timestamp:
- Nov 14, 2023, 6:27:51 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Instance management
v5 v6 21 21 7dtd.sh instances create 22 22 }}} 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: 23 This will first ask for a name for the new instance and afterwards opens the config.xml in your default text editor. 26 24 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: 48 26 * 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]]''' 49 27 * 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. 51 29 52 When you are done with entering all parameters the config.xml will be savedand the instance is ready to be started.30 When you are done with entering all parameters save the config.xml and the instance is ready to be started. 53 31 54 32 … … 58 36 {{{ 59 37 7dtd.sh instances print_config <instancename> 38 }}} 39 40 Alternatively print the actual XML as is, optionally with syntax highlighting if you have ''pygmentize'' installed: 41 {{{ 42 7dtd.sh instances print_xml <instancename> 60 43 }}} 61 44 … … 68 51 }}} 69 52 70 You will then be shown an interface to edit the options similar to the interface when creating a new instance.53 This will open the config.xml in your default text editor. 71 54 72 55 … … 82 65 '''WARNING:''' This will delete every aspect of the instance: 83 66 * Save games 67 * Created RWG world (if the instance used a custom one) 68 * Mods local to the instance 84 69 * Configuration 85 70 * Logs