Elastic Population
FREE
Sold by: PapaDynamically adjusts the server max population to always be the current player count plus a configurable offset, with a cooldown feature to enhance performance.
- Description
- Reviews (0)
- Version History
- Discussions (1)
- Setup
- Product Enquiry
Description
Description
Features
Dynamic Population Control: Automatically updates the server’s maximum player limit based on the current number of players, ensuring the max players setting is always one step ahead of the current population.
Configurable Maximum and Minimum Population: Allows setting absolute maximum and minimum population limits that the server will not exceed or fall below, regardless of other calculations.
Configurable Cooldown: Includes a cooldown mechanism to prevent the server settings from being updated too frequently, helping to maintain server performance.
Console Message Toggle: Allows server administrators to enable or disable console messages when the max population is adjusted to reduce log clutter.
Efficient Timer Management: Implements a smarter timer mechanism that avoids unnecessary recalculations when multiple players connect or disconnect in quick succession.
Configuration
The plugin uses a JSON configuration file which is automatically generated if it does not exist. Here are the default settings and descriptions for each configurable option:
{ "MaxPlayersOffset": 1, "CooldownPeriod": 10.0, "MaximumPopulation": 200, "MinimumPopulation": 1, "ConsoleMessagesEnabled": true }
- MaxPlayersOffset: The number of player slots to add to the current player count when setting the maximum players (default is 1).
- CooldownPeriod: The cooldown period in seconds between adjustments to prevent performance degradation (default is 10 seconds).
- MaximumPopulation: The highest number of players that the server can support at any time (default is 200).
- MinimumPopulation: The lowest number of players that the server will not fall below (default is 1).
- ConsoleMessagesEnabled: Whether to log changes to the server’s max players in the console (default is true).
Commands
This plugin operates in the background automatically and does not require any commands to be used by players or administrators.
Permissions
No permissions are required for this plugin as it is designed for server-side configuration and operation.
Installation
Download the ElasticPopulation.cs file from the ElasticPopulation page on uMod.
Place the file in your RustServer/oxide/plugins directory.
Restart your server or use the command oxide.reload ElasticPopulation to load the plugin.
The plugin will automatically create a default configuration file if one doesn’t already exist.
Usage
After installation, the plugin will function automatically. Server administrators can modify the MaxPlayersOffset, CooldownPeriod, MaximumPopulation, MinimumPopulation, and ConsoleMessagesEnabled in the configuration file to tailor the plugin to their server’s needs.
Troubleshooting
If you encounter issues, check the server console for any error messages related to the ElasticPopulation plugin. Ensure that the configuration file is formatted correctly and that you have the latest version of the plugin.
Reviews (0)
Reviews
There are no reviews yet.
Only logged in customers who have purchased this product may leave a review.
Version History
- Fixed Fixed issue with name attribute "Elastic Population" instead of the former "ElasticPopulation".
- Added Plugin now considers the current player count in order to catch edge cases (skip queues, etc).
- Added Plugin now has a configurable minimum population.
- Fixed Plugin no longer has nested code in the StartCooldownTimer function.
- Added Config for console messages
- Added Config for maximum population limit
- Updated Cooldown timer logic
Discussions (1)
One thought on "Elastic Population"
Leave a Reply to shadow_070231 Cancel reply
Setup
Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?
• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.
Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA
• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.
Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.
Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)
Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)
Yop Papa, Juste merci !
0 problems reported, easy config!