Jump to content

1 Screenshot

  • 1,819
  • 64
  • 9.86 kB

About Dynamic Config

The plugin gives ability to admins to create several configs for other plugins, and update them automatically depending on time passed since last wipe.

Examples

Example 1

You have loot spawn plugin, and you want that after two days from last wipe, loot spawn rules to be changed (more loot, or less loot).

Example 2

You want no NPCs in your server at all in first 10 hours after wipe, and then part of NPC appear, and make after 2 more days, many more NPC should appear.

How It Works

Main Flow

  1. On load the plugin scans it's data directory, and detects last wipe.
  2. Checks if any of configs should already be applied (last ones that closer to current time).
  3. Once a minute it checks if some configs should be updated.

Update Process

  1. Target plugin is unloaded.
  2. Its config is replaced.
  3. Target plugin is loaded again.

Localization

The default messages are in the DynamicConfig file under the oxide/lang/en directory. 
To add support for another language, create a new language folder (e.g. de for German) 
if not already created, copy the default language file to the new folder and then customize the messages.

The default messages are in the DynamicConfig file under the oxide/lang/en directory. To add support for another language, create a new language folder (e.g. de for German) if not already created, copy the default language file to the new folder and then customize the messages.

Plugin uses only console messages to RCON. They could be localized. Out of the box the plugin supports EN localizations.

Usage

If you want to add any dynamic config, you should do these steps:

  1. Copy plugin config to oxide/config/DynamicConfig directory the DynamicConfig must be manually created.
  2. Edit the config name to meet naming syntax (below).
  3. Edit the config itself to meet your needs.
  4. Reload Dynamic Config if you're done.

You can edit dynamic configs contents without reloading Dynamic Config (if they are yet to be applied), the plugin only reads the filenames and schedules the update time.

Naming

[] - optional

[<number>d][<number>h][<number>m]<PluginName>.json

Examples

  • 2dMagicLoot.json - will be applied after 2 days from last wipe (exactly 48 hours)
  • 10h20mTestConfig.json - after 10 hours and 20 minutes
  • 10d10hBotSpawn.json - guess yourself
  • Like 1

User Feedback

318.3k

Downloads

Total number of downloads.

1.6k

Customers

Total customers served.

20.5k

Files Sold

Total number of files sold.

320.3k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.