Garry's Mod

Garry's Mod

Simple Weather
657 Comments
Kronos 17 Jul @ 8:28pm 
Hello, I just want to say that I love this mod so much, it adds so much immersion to the game. butttttttt. It suddenly stopped working on my end.. kinda. After a few hard crashes on a map titled gm_boreas the mod simply stopped doing the effects when the weather changed. The only exceptions to this is are rain particles and meteors. aside from that everything else doesn't work. The messages won't pop up when heavy weather approaches. The radio does work. uninstalling and reinstalling doesn't do anyhting, same goes for enabling and disabling the mod. or even chaning maps. I get no errors or problems on the console. The screen rain effects also don't work. There is no fog, only in the very far distance which does get slightly closer to me when messing with the dials. Day/night still works, but the little weather icon just stays as a sun even after changing the weather. Oh and the skybox changing and lighting still work.
_MajorFracture_ 16 Jun @ 12:09pm 
[Simple Weather] lua/simpleweather/sv_daynight.lua:703: attempt to index field 'SkyPaint' (a nil value)
1. DNCUpdate - lua/simpleweather/sv_daynight.lua:703
2. DayNightThink - lua/simpleweather/sv_daynight.lua:442
3. v - lua/simpleweather/sv_init.lua:265
4. unknown - lua/includes/modules/hook.lua:102
V92  [author] 28 May @ 3:46pm 
Yeah the original mod before I took over was running a constant check on every map load. I cleaned it up and tied it to those functions just to make it easier.

If I can ever find the time I plan on adding a few more arguments to the function for 0000 and 1200 as well.

I keep the github updated every time I make a change, so if you want to contribute any fixes or improvements, just let me know. I work a full time job and barely turn on my PC these days.

I might not be super active with development but I'm usually available in my discord or in my comments sections. I don't mind if people make changes or such, as long as they tell me & help contribute it to the official mod so everyone can benefit.

If there's anything else I can do for you or help out, don't hesitate to let me know. I might not be active but I am approachable and easy to talk to.
Impulse 27 May @ 9:42pm 
Thanks, didn't know about that part, that will be helpful
V92  [author] 27 May @ 6:44pm 
There's a function dedicated to map logic for that exact thing.

If you name an entity such as a logic_relay day_events or night_events it'll have a Fire Trigger input run at 0600 and 1800.

If you just want to get the time and make your own custom function, call SW.Time

https://github.com/ReverendV92/SimpleWeather/blob/main/.content/SimpleWeather/lua/simpleweather/sv_daynight.lua#L736
Impulse 27 May @ 3:22pm 
Working on an interaction for something, just a quick question. how do you get the time for SimpleWeather?
I need an entity to check what time it is to trigger a functionality of it when it's night time for simple weather
Mr Beko 24 May @ 4:46am 
i need version from 2020 pls!
Valkyries733 15 May @ 6:53am 
Hey, I get an error whenever I disable map lighting updates, I just want the weather I don’t want the time of day and map lighting updates.

I’m not home, but the error mentions sky paint
The_realTv (; 22 Apr @ 2:42pm 
Pov: Me trying to find good mods of rain but all trash. This guy that saved me a lot of time:
V92  [author] 7 Apr @ 7:12am 
@kehmicle

I need more info because that tells me nothing. It's currently working for me outside of the error you already reported. I was completely unable to replicate it.
| Kehmicle | 6 Apr @ 7:40pm 
NEW UPDATE BROKE THIS, PLEASE FIX I NEED IT <3 <3 you are my favorite!
V92  [author] 9 Mar @ 11:50am 
Might explain why I couldn't replicate it.
Tposs 2 Mar @ 4:15am 
I'm getting the same error. Seems to only happen on dedicated servers?
V92  [author] 16 Feb @ 7:53pm 
Thanks for the report. Let me work on this.
| Kehmicle | 16 Feb @ 6:00pm 
changed the time once in-server, now on every server restart I cant load in and console spammed with:

[Simple Weather] lua/simpleweather/sv_daynight.lua:381: bad argument #1 to 'byte' (string expected, got nil)
1. byte - [C]:-1
2. DayNightThink - lua/simpleweather/sv_daynight.lua:381
3. fn - lua/simpleweather/sv_init.lua:265
4. unknown - lua/ulib/shared/hook.lua:109
V92  [author] 14 Feb @ 7:22am 
Christsakes, thought I fixed that. Let me take another look.
_MajorFracture_ 13 Feb @ 12:04pm 
@V92 im getting the following error: [Simple Weather] lua/simpleweather/sv_daynight.lua:703: attempt to index field 'SkyPaint' (a nil value)
1. DNCUpdate - lua/simpleweather/sv_daynight.lua:703
2. DayNightThink - lua/simpleweather/sv_daynight.lua:442
3. v - lua/simpleweather/sv_init.lua:265
4. unknown - lua/includes/modules/hook.lua:96 (x28)
V92  [author] 9 Feb @ 7:58am 
@majorfracture

Not sure. Are you using any other weather mods? Are you using the skybox editor? Could be a few different things.
_MajorFracture_ 6 Feb @ 1:32pm 
The skybox doesn't change no matter the time of day or weather effect. Any ideas on how to fix this?
V92  [author] 23 Jan @ 12:38pm 
@kahmicle

All the commands start with sw_ so try typing find sw_ into the console. Be warned there will be a lot of them. They're all archive flagged so it would be easier to use the options panel in-game.

I can't fix that error unless you provide the line number, as there are several dozen files with a combined several thousand lines of code.
| Kehmicle | 22 Jan @ 10:14pm 
still works great even today, i do have the recurring
attempt to call method 'IsAdmin' (a nil value)

but it works good. My only question is where can i find a list of cvars and commands to use in the operator console, since it "cant change replicated convar from console of client, only server operator can change its value" ?

do I have to change that admin status check depending on what admin mod im using??
V92  [author] 22 Jan @ 5:44pm 
It does not.
Spac3knightfire 22 Jan @ 4:57pm 
does this support gweather and xtwisters?
AnFektor 21 Jan @ 10:14am 
this addon + rtx remix = ultra atmosphere:steamhappy:
JMJGλMING971™ 26 Dec, 2024 @ 6:31pm 
It had randomly started making this error out of nowhere. I am unsure why.
JMJGλMING971™ 26 Dec, 2024 @ 6:30pm 
I am unsure what you mean by functions.
Skeletorso 26 Dec, 2024 @ 2:54pm 
Still easily one of the best gmod addons.
V92  [author] 25 Dec, 2024 @ 9:11pm 
I'll take a look. Did you disable any of the functions? If so, which ones?
JMJGλMING971™ 24 Dec, 2024 @ 6:58pm 
I have been facing the error of lua/simple weather/sv_daynight.lua:381: bad argument #1 to 'byte' (string expected, got nil)
1. Byte - [C]:-1
2. Daylight think - lua/simple weather/sv_daynight.lua:381
3. V - lua/simple weather/sv_init.lua:265
4. Unknown - lua/includes/modules/hook.lua:96

Is there any way to potentially fix this?
V92  [author] 15 Dec, 2024 @ 8:28pm 
@daedalus

Make sure you have admin permissions on the server. Sounds like somewhere between the two the game isn't saving the values. All else fails, go into the autoexec.cfg for the server and set them manually until you figure it out.

If it ends up being an issue with the mod itself, let me know. There's no reason it *shouldn't* be saving values as the cvars are all archive flagged.
Daedalus Anaheim 14 Dec, 2024 @ 8:15am 
One more thing, I'm using this on my DarkRP server and everytime it restarts the settings reset with it. Any way around this? I disable fog and meteors etc and they always reenable.
Daedalus Anaheim 14 Dec, 2024 @ 6:25am 
I can't switch the clock from 24hr to 12hr, it doesn't let me uncheck or check any boxes in that tab.
V92  [author] 12 Dec, 2024 @ 10:27am 
What's SAM?
XaZ 9 Dec, 2024 @ 10:35pm 
I bought simple weather years ago. Remembered that it shut down and was subscribed to this version. Kept getting lua error, until I saw I was subscribed to an toher outdated weather addon.... I feel dumb!

But I would like to know if there is a possibility to make it work with SAM aswell? would be really nice to have compatibility with it :) Thanks
V92  [author] 4 Dec, 2024 @ 5:57pm 
It's pretty much the only one I still go out of my way to actively maintain. I spend most of my time outdoors these days so my motivation to sit in front of a computer is limited.
TASbot 4 Dec, 2024 @ 5:32pm 
You're a beast. It's been awhile since i used this mod. glad to know you are still working on it.
V92  [author] 4 Dec, 2024 @ 5:24pm 
You can now set sw_time_start to -1 for a random start time. Continue time will take some more effort, didn't want to make you wait forever.
V92  [author] 4 Dec, 2024 @ 12:51pm 
Good idea. I'll see what I can do.
TASbot 4 Dec, 2024 @ 11:25am 
Any time you gonna add a start on random time option? Instead of loading the server on a set time it loads it on a random time? Or a continuation of a previous time from a previous level transition?
V92  [author] 30 Nov, 2024 @ 12:31pm 
Yeah it worked for me too. After playing the map I just suggest turning off the skybox function, as the default blue isn't good for it.

Originally the mod had no toggles, I added all of them myself for this exact reason. I took over the mod after the original author abandoned it and released their source files. It's my pet project.

One of the only bits of remaining legacy code I haven't touched yet is the skypaint settings. They're hard-set to be certain colors at certain times, and the whole thing relies on some super janky math that I just haven't had the time or knowledge to fix.

Eventually I want to make it so it will have colors based on the map itself using a table of values or tags of some kind. It's gonna take some work that frankly goes a bit over my pay grade. That's why I haven't gotten it done.
Mschulmeister 30 Nov, 2024 @ 10:07am 
@V92 Well i just ran the mod on the map on my end and it works :lunar2019deadpanpig: I'll return a message to this given user suggesting it may be a local issue of his end..
Awesome by the way, i didn't knew this mod before :steamthis:
V92  [author] 29 Nov, 2024 @ 7:49pm 
@mschulmeister

I'll see what I can do. SW supports map logic functions, so I'll work it into that. Feel free to add me on Discord if you want to discuss it in detail, as I use that far more regularly. My @ handle is just V92.
Mschulmeister 29 Nov, 2024 @ 12:30pm 
@V92 Thanks for the reply, the map in question is "rp_sorelane"
V92  [author] 29 Nov, 2024 @ 11:58am 
@mschulmeister

Entirely possible. The user should just turn the fog off in the SW mod. Every facet of the mod can be individually turned off or changed. I added as much control over it as I could since there's always cases where it being on all the time causes issues.

Which particular map were they complaining about? I can add a map logic function compatibility for it.
Mschulmeister 29 Nov, 2024 @ 11:36am 
Hi, a user posted on my map that this addon does not work, but my map has nothing in special... Do you have any idea wich issues are common or what may cause the incompatibility? The thing that came to my mind is that my map has the fog_controller set as a master entity since i have fog changes going on...
k.o kirbe 27 Nov, 2024 @ 5:30am 
godamn still updating? i appreciate u man
V92  [author] 26 Nov, 2024 @ 8:06pm 
@crosshair

You can disable pretty much every single function of the mod individually.
YourFinalRites 26 Nov, 2024 @ 7:05am 
Can we disable the day/night cycle?
V92  [author] 20 Nov, 2024 @ 1:22pm 
@bloomingchaos

Change the options panel to disable skybox textures.
Vena The Psycho 19 Nov, 2024 @ 9:47am 
Does anyone know how to stop it from changing the skybox?
Because gm_atomic is kinda broken.