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
- On load the plugin scans it's data directory, and detects last wipe.
- Checks if any of configs should already be applied (last ones that closer to current time).
- Once a minute it checks if some configs should be updated.
Update Process
- Target plugin is unloaded.
- Its config is replaced.
- 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:
- Copy plugin config to oxide/config/DynamicConfig directory the DynamicConfig must be manually created.
- Edit the config name to meet naming syntax (below).
- Edit the config itself to meet your needs.
- 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