Garry's Mod

Garry's Mod

Simple Weather
699 Comments
V92  [author] 9 hours ago 
The work I did a while back was to begin the process of making the color settings and such less hardcoded. Right now they still use the fixed color settings for "no weather" and "weather", which is obviously a little too rigid. I also want to add more of a fade in/out to the weather instead of the snapping. I just don't have any time or motivation, you know?

That said, all the code is on github in the description, and if you find anyone who can help me out with it, ask them to make commit requests. I'm still active on my discord server, but generally I keep steam in offline mode and rarely check my messages.
V92  [author] 9 hours ago 
@amx40

Not currently. The mod itself didn't even have toggles when I took it over. One of the things I want to do someday when I get the time is to make it cache all the map's default settings so that would be possible. Right now it overrides all the map stuff to make the fading & color stuff work.

The entire DNC stuff is a mess. I did some work on it a few months back, but I work a full time blue collar job 8 hours a day M-F with a 1 hour commute each way. When I get home all I wanna do is veg out and relax. I barely turn my PC on maybe once or twice a week.
An AMX-40 Duck 9 Dec @ 4:17pm 
Is there any way to simple disable the day-night cycle and have it return to the map's default lighting without just pausing it?
Instinkt 6 Dec @ 11:51am 
[Simple Weather] lua/simpleweather/sv_daynight.lua:445: bad argument #1 to 'byte' (string expected, got nil)
1. byte - [C]:-1
2. DayNightThink - lua/simpleweather/sv_daynight.lua:445
3. fn - lua/simpleweather/sv_init.lua:265

on gm_boreas, can you tell me how to fix this?
What's the map name used in you're photo thingy?
Alright and thanks
V92  [author] 28 Nov @ 5:39pm 
Try disabling the weather sound and reenable it.
this is a great mod but only down side to this mod is sometimes the rain sound cuts off even when it's thunder I can still hear it but the rain sounds just cuts off I don't know others though but still great mod.
V92  [author] 22 Nov @ 1:30pm 
You already can and always have been able to disable that.
Krioma 22 Nov @ 10:19am 
I hope they add an option to disable and enable day/night cycle it would make the mod 10000x times better
ericcarros2 21 Nov @ 10:08pm 
This addon is not simple, IT IS PERFECT
Apollon ☦ 15 Nov @ 5:26pm 
I unfortunately have no knowledge on how to fix these issues. I doubt we can find someone from the mod's playerbase to look into it either, sadly
V92  [author] 15 Nov @ 5:22pm 
It's a known quirk with the function disabling stuff. If you or someone else gets the time I don't have to look into it, please don't hesitate to submit changes or pull requests to the github. I keep the github in parity if not newer with the Workshop version, so it shouldn't be out of date.
Apollon ☦ 15 Nov @ 5:17pm 
Alright! Good to know it wasn't just on my side. Best of luck with work and all, hope you can resolve the issue when you're free.
V92  [author] 15 Nov @ 3:46pm 
Let me take a look. Been busy with work the last few months, so I basically only turn my PC on 1 day a week at most.
Snowball_Eclipse 15 Nov @ 12:58pm 
Apollon I'm getting the same error on rp_unioncity
Apollon ☦ 30 Oct @ 11:47am 
[Simple Weather] lua/simpleweather/sv_daynight.lua:445: bad argument #1 to 'byte' (string expected, got nil)
1. byte - [C]:-1
2. DayNightThink - lua/simpleweather/sv_daynight.lua:445
3. v - lua/simpleweather/sv_init.lua:265
4. unknown - lua/includes/modules/hook.lua:102 (x351)

On gm_fork_better. Got any ideas?
V92  [author] 5 Sep @ 10:40pm 
Fixed some things, updated a few things. Got some stuff planned for the next update, stay tuned.
https://steamproxy.net/sharedfiles/filedetails/changelog/531458635
resonance 2 Sep @ 2:55pm 
stormfox is too complicated, i just want rain ♥♥♥♥♥♥♥♥♥
V92  [author] 1 Sep @ 9:12am 
StormFox has better visuals but almost universally runs like crap and crashes too much.
ShyGuy 1229 31 Aug @ 3:12pm 
This is perfect for people who don't want to use stormfox!
Amazing Addon!
カリフォルニアEAS 28 Aug @ 6:17pm 
go to workshop go to search and Type Lambda Players Reborn
V92  [author] 28 Aug @ 6:14pm 
I would need to know what it is or where to find it before I could do anything.
カリフォルニアEAS 28 Aug @ 4:55pm 
I hope you will make an Update for Simple Weather for Lambda Players
V92  [author] 28 Aug @ 10:43am 
@californiaeas

I have literally no idea what Lambda Players are, as I have never heard of it. I can maybe make a compatibility patch, but that's as much as I'd be willing to guess.
V92  [author] 28 Aug @ 10:43am 
As for area lighting, not in the current system. One of the other quirks with the current system is it has an all-or-nothing approach to the weather. You're either outside, or you're under something that a line trace hits. The other issue is being able to tell where the skybox actually is would require some way to either detect a sky_camera entity and just guess the boundaries of the skybox based on the location, or to make an arbitrary and frankly pain in the ass table of values, similar to the map blacklist that exists in the code currently.
V92  [author] 28 Aug @ 10:43am 
The lighting system is a nightmare that is for the most part the only code left untouched from the original mod I took over. It uses some super janky and arbitrary math I never had the time or the energy to understand/fix. The entire thing needs to be gutted & remade.

The fog is directly tied to the weather types due to the way the mod works. Ideally, fog & sky colors would fade transition instead of popping, but that would require a level of code skill I simply do no possess.
KlutchxKay 27 Aug @ 12:19pm 
Hey, just curious, I have no idea how gmod works really, but some questions:
1: How come sometimes the mod completely blows out the lighting on maps?
2: Sometimes the atmospheric/render distance fog is awful looking, and the only way i've found around it is to spawn some kinda Fog Editor cube that just overrides it and makes it all go away.
3: Any way to make the lighting apply properly to certain maps' "skybox" areas? (the miniscale models outside the map)
カリフォルニアEAS 24 Aug @ 10:49am 
imma explain it to you so Lambda Players Reborn: YerMash Edition is a chaotic and unpredictable Garry’s Mod experience where the infamous Lambda Players return in an upgraded, “reborn” state. In this edition, they come with new abilities, behaviors, and interactions that make every sandbox session unpredictable. Players can experiment with their powers, spawn strange events, and watch as the world reacts to their chaotic influence. It’s designed for fans of sandbox mayhem who love testing limits and creating crazy scenarios with AI and custom entities.
V92  [author] 23 Aug @ 11:37pm 
@californiaeas

I don't know what that means.
カリフォルニアEAS 23 Aug @ 8:20pm 
I hope it works for Lambda Players when they get struck by a Lightning.
V92  [author] 18 Aug @ 7:53pm 
Stargazer slows down the night progression and makes the days shorter. Is that not what it's doing?
🗲🗲 Quakk 17 Aug @ 7:00am 
Why is stargazer not working?
Tyrian 15 Aug @ 2:29pm 
Whenever I enable weathers -
[Simple Weather] lua/simpleweather/sv_daynight.lua:385: bad argument #1 to 'byte' (string expected, got nil)
1. byte - [C]:-1
2. DayNightThink - lua/simpleweather/sv_daynight.lua:385
3. unknown - lua/simpleweather/sv_init.lua:265
4. unknown - lua/includes/modules/hook.lua:313
Tyrian 14 Aug @ 2:28pm 
Spams this on server join -

[Simple Weather] lua/autorun/sh_simpleweather.lua:515: attempt to call method 'IsAdmin' (a nil value)
1. OnChecked - lua/autorun/sh_simpleweather.lua:515
2. SetChecked - lua/vgui/dmenuoption.lua:128
3. unknown - lua/autorun/sh_simpleweather.lua:510
V92  [author] 12 Aug @ 6:01pm 
Probably needs more tweaks, but it's passable for a first try.
Plague 11 Aug @ 1:13pm 
Woah! Sick! I'll try it out :)
V92  [author] 10 Aug @ 11:00am 
Foggy rain is now included.
V92  [author] 10 Aug @ 10:27am 
So foggy rain? I can do that. I'll see what I can do.

I have still been unable to replicate a lot of the reported bugs about the errors that have been posted. I'm starting to think it might be an issue on dedicated servers, so I'll see if I can find a way to confirm them.
Plague 9 Aug @ 5:51am 
would you be willing to add a super heavy rain style with a lot of fog? I love comfy scenic stuff like that, and would love to see that kind of level of weather.
V92  [author] 7 Aug @ 1:06pm 
I really want to get back to adding new features and bug fixes, I'm just so swamped with real life and my burn out. I'm gonna try to get a new weather type called Haze implemented soon along with the multiple bug fixes you guys have reported. I have been reading them all, so thank you for the feedback and the patience while I sort my life out.
british virus 7 Aug @ 12:42pm 
i just want to say thanks as this is a great addon [:
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