Weather

$14.99

Sold by: tofurahie

Now you can control the weather using the handy GUI

Categories: , ,

Description

Weather

Open UI – /wsetup (permission for use – weather. Use)

FEATURES:

  • Customize the weather the way you want it
  • Setup your config with UI
  • Weather presets (defaults included)
  • Smooth transition between presets
  • Set day or night chat command [setday | setnight]
  • Automatically skip nights
  • Schedule using rust time

Screen-061.png.12007703cc0565eae1b72360457df545.png

Screenshot2023-09-23143334.thumb.png.9e0e98035683bbb2873bf65e18fa992d.png   Screenshot2023-09-23143508.thumb.png.a97893f1ea173de43b9516f9d5565141.png

Screenshot2023-09-23143546.thumb.png.3c70125cab78305eb0ddb30dacac9707.png   Screenshot2023-09-23143231.thumb.png.78bdf3e2b4cb71936567dc2576b9d251.png

Commands:

  • /wsetup – open setup UI
  • /setday – set day
  • /setnight – set night

Q&A:

Q: If i set schedule time for a preset at 3 but 4 – 9 is empty what happen?
A: The preset duration will lasts till new preset so you can set Rain at 4 and Dust at 9 so The rain will be from 4 to 9 and from 9 to 4 for Dust

Q: How can i now which one is active?
A: In the UI you can see all presets and when you open it you can see the current active preset (its name will be green) (if the preset is just selected, it will be white)

Q: What happens when the current preset is over?
A: New one will randomly start.

​​​​​​​API:
string API_GetCurrentWeatherPreset()

OnNewPresetStart(string presetName)

Default presets (Clear | Dust | Fog | Overcast | RainMild | RainHeavy | Storm)

Config:

{
"Use time control": true,
"Day length [minutes]": 30,
"Night length [minutes]": 30,
"Skip night": false,
"Use a custom schedule": false,
"IRL Weather presets": {
"Use IRL weather": false,
"API key [https://home.openweathermap.org/users/sign_up] (YOU DON'T NEED TO PAY FOR THIS)": "",
"Latitude [https://www.latlong.net]": 33.68906,
"Longitude [https://www.latlong.net]": -78.8866959,
"Preset names [site's weather name which the plugin get from API and preset that should be applied": {
"Clear": "Clear",
"Clouds": "Clear",
"Atmosphere": "Fog",
"Drizzle": "RainMild",
"Rain": "RainHeavy",
"Snow": "RainMild",
"Thunderstorm": "Storm"
}
},
"Custom schedule [1-24 - Preset Names | don't change the numbers]": {
"1": "Clear",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "Storm,Dust",
"10": "",
"11": "",
"12": "",
"13": "Clear",
"14": "",
"15": "",
"16": "",
"17": "",
"18": "RainMild,RainHeavy",
"19": "",
"20": "",
"21": "",
"22": "",
"23": "",
"24": ""
},
"Presets": [
{
"Name": "Clear",
"Duration [seconds]": 2700,
"Transition time [seconds]": 300,
"Chance [0 - 100%]": 75,
"Wind": 0.0,
"Rain": 0.0,
"Thunder": 0.0,
"Rainbow": 0.0,
"Ocean": 3.0,
"Atmosphere rayleigh": 1.0,
"Atmosphere mie": 1.0,
"Atmosphere contrast": 1.2,
"Atmosphere directionality": 0.9,
"Atmosphere fogginess": 0.0,
"Atmosphere brightness": 1.0,
"Clouds size": 2.0,
"Clouds opacity": 1.0,
"Clouds coverage": 0.0,
"Clouds sharpness": 1.0,
"Clouds coloring": 1.0,
"Clouds attenuation": 0.15,
"Clouds saturation": 1.0,
"Clouds scattering": 1.0,
"Clouds brightness": 1.0
},
{
"Name": "Dust",
"Duration [seconds]": 2700,
"Transition time [seconds]": 300,
"Chance [0 - 100%]": 15,
"Wind": 0.0,
"Rain": 0.0,
"Thunder": 0.0,
"Rainbow": 0.0,
"Ocean": 3.5,
"Atmosphere rayleigh": 2.0,
"Atmosphere mie": 4.0,
"Atmosphere contrast": 1.25,
"Atmosphere directionality": 0.75,
"Atmosphere fogginess": 0.3,
"Atmosphere brightness": 0.9,
"Clouds size": 2.0,
"Clouds opacity": 0.25,
"Clouds coverage": 0.0,
"Clouds sharpness": 0.0,
"Clouds coloring": 1.0,
"Clouds attenuation": 0.25,
"Clouds saturation": 1.0,
"Clouds scattering": 1.0,
"Clouds brightness": 1.0
},
{
"Name": "Fog",
"Duration [seconds]": 2700,
"Transition time [seconds]": 300,
"Chance [0 - 100%]": 15,
"Wind": 0.0,
"Rain": 0.0,
"Thunder": 0.0,
"Rainbow": 0.0,
"Ocean": 4.5,
"Atmosphere rayleigh": 1.0,
"Atmosphere mie": 1.0,
"Atmosphere contrast": 1.0,
"Atmosphere directionality": 0.2,
"Atmosphere fogginess": 0.9,
"Atmosphere brightness": 0.5,
"Clouds size": 2.0,
"Clouds opacity": 0.0,
"Clouds coverage": 0.0,
"Clouds sharpness": 0.1,
"Clouds coloring": 0.15,
"Clouds attenuation": 0.15,
"Clouds saturation": 0.8,
"Clouds scattering": 100.0,
"Clouds brightness": 0.8
},
{
"Name": "Overcast",
"Duration [seconds]": 2700,
"Transition time [seconds]": 300,
"Chance [0 - 100%]": 15,
"Wind": 0.0,
"Rain": 0.0,
"Thunder": 0.0,
"Rainbow": 0.0,
"Ocean": 3.5,
"Atmosphere rayleigh": 0.2,
"Atmosphere mie": 5.0,
"Atmosphere contrast": 1.5,
"Atmosphere directionality": 0.75,
"Atmosphere fogginess": 0.8,
"Atmosphere brightness": 0.9,
"Clouds size": 2.0,
"Clouds opacity": 1.0,
"Clouds coverage": 1.0,
"Clouds sharpness": 0.05,
"Clouds coloring": 0.15,
"Clouds attenuation": 0.15,
"Clouds saturation": 0.8,
"Clouds scattering": 20.0,
"Clouds brightness": 1.0
},
{
"Name": "RainMild",
"Duration [seconds]": 2700,
"Transition time [seconds]": 300,
"Chance [0 - 100%]": 15,
"Wind": 1.0,
"Rain": 0.2,
"Thunder": 0.0,
"Rainbow": 0.0,
"Ocean": 4.7,
"Atmosphere rayleigh": 1.0,
"Atmosphere mie": 1.0,
"Atmosphere contrast": 1.3,
"Atmosphere directionality": 0.9,
"Atmosphere fogginess": 0.2,
"Atmosphere brightness": 1.0,
"Clouds size": 1.0,
"Clouds opacity": 1.0,
"Clouds coverage": 0.4,
"Clouds sharpness": 0.0,
"Clouds coloring": 0.8,
"Clouds attenuation": 0.05,
"Clouds saturation": 0.8,
"Clouds scattering": 0.4,
"Clouds brightness": 1.0
},
{
"Name": "RainHeavy",
"Duration [seconds]": 2700,
"Transition time [seconds]": 300,
"Chance [0 - 100%]": 15,
"Wind": 1.0,
"Rain": 1.0,
"Thunder": 0.0,
"Rainbow": 0.0,
"Ocean": 7.4,
"Atmosphere rayleigh": 0.2,
"Atmosphere mie": 5.0,
"Atmosphere contrast": 1.5,
"Atmosphere directionality": 0.75,
"Atmosphere fogginess": 0.7,
"Atmosphere brightness": 0.8,
"Clouds size": 2.0,
"Clouds opacity": 1.0,
"Clouds coverage": 0.9,
"Clouds sharpness": 0.25,
"Clouds coloring": 0.15,
"Clouds attenuation": 0.15,
"Clouds saturation": 0.8,
"Clouds scattering": 5.0,
"Clouds brightness": 1.0
},
{
"Name": "Storm",
"Duration [seconds]": 2700,
"Transition time [seconds]": 300,
"Chance [0 - 100%]": 15,
"Wind": 1.0,
"Rain": 1.0,
"Thunder": 1.0,
"Rainbow": 0.0,
"Ocean": 8.0,
"Atmosphere rayleigh": 1.0,
"Atmosphere mie": 3.0,
"Atmosphere contrast": 1.3,
"Atmosphere directionality": 0.75,
"Atmosphere fogginess": 0.95,
"Atmosphere brightness": 0.8,
"Clouds size": 2.0,
"Clouds opacity": 1.0,
"Clouds coverage": 1.0,
"Clouds sharpness": 0.4,
"Clouds coloring": 0.15,
"Clouds attenuation": 0.15,
"Clouds saturation": 0.8,
"Clouds scattering": 5.0,
"Clouds brightness": 1.0
}
]
}

Reviews

There are no reviews yet.


Only logged in customers who have purchased this product may leave a review.

Version 2.4.0 | Updated January 31, 2025
  • Updated removed blur for UI, opacity was lowered so you can see better the weather behind the UI when you change it
  • Added sunrise and sunset time (for time control only in the config). You can disable the notify message about new weather preset in the config.
  • Fixed if time control was false the custom schedule doesn't work. When you use more than 1 weather name for custom schedule it doesn't worked like ("Storm,Clear") now the plugin choose a preset looking at their chances.
Version 2.3.2 | Updated October 19, 2024
  • Fixed night duration
Version 2.3.1 | Updated September 18, 2024
  • Added Description for weather parameters in the UI ["OceanScale"] = "Waves in the sea", ["ABrightness"] = "Atmosphere brightness", ["AContrast"] = "Atmosphere contrast", ["ADirectionality"] = "Sun glow size", ["AFogginess"] = "Fog density", ["AMieMultiplier"] = "Mie scattering intensity", ["ARayleighMultiplier"] = "Rayleigh scattering intensity", ["CAttenuation"] = "Skylight blocking", ["CBrightness"] = "Cloud brightness", ["CColoring"] = "Skylight blocking", ["CCoverage"] = "Cloud coverage", ["CScattering"] = "Cloud translucency glow", ["CSharpness"] = "Cloud transition sharpness", ["CSaturation"] = "Sunlight blocking", ["COpacity"] = "Cloud opacity", ["CSize"] = "Cloud size"
Version 2.3.0 | Updated September 16, 2024
  • Added IRL weather presets (Read the config you will get it)
  • Added API OnNewPresetStart(string presetName)
  • Added string API_GetCurrentWeatherPreset()
Version 2.2.1 | Updated August 23, 2024
  • Fixed NRE at 0:00
  • Fixed after plugin initizlie time was set to 17:55
Version 2.2.0 | Updated August 14, 2024
  • Added automatic skip night feature
  • Added custom schedule (uses rust time) (when you set more than 1 presets name it will pick one by their chance)
  • Fixed change day/night duration won't apply untill reload
Version 2.1.5 | Updated February 1, 2024
  • Updated The Close icon in the UI was moved to the top left corner (because the new rust update has a bug)

3 thoughts on "Weather"

Leave a reply

Your email address will not be published. Required fields are marked *

  1. did this break with the update? i can’t bring up the settings with /wsetup, and modifying the oxide/config json doesn’t seem to change the day/night cycle.

      • all i see is the top part – USE TIME, DAY LENGTH, NIGHT LENGTH. none of the weather patterns are listed, and no weather patterns appear to be working. any ideas?

        i’m getting this error:
        Failed to call hook ‘cmdChatwsetup’ on plugin ‘Weather v2.1.5’ (NullReferenceException: Object reference not set to an instance of an object)
        at Oxide.Plugins.Weather.ShowUISettings (BasePlayer player) [0x00250] in :0
        at Oxide.Plugins.Weather.ShowUIBG (BasePlayer player) [0x0008f] in :0
        at Oxide.Plugins.Weather.cmdChatwsetup (BasePlayer player, System.String command, System.String[] args) [0x00019] in :0
        at Oxide.Plugins.Weather.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x007c9] in :0
        at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0
        at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0
        at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

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)

Product Enquiry

Please Login to make enquiry about this product