Garry's Mod

Garry's Mod

Simple Weather
 Ez a téma ki van emelve, tehát valószínűleg fontos.
V92  [Fejlesztő] 2020. jan. 14., 8:54
The Feedback Loop
Want to complain? Want to suggest a change? Want to request a feature? You've got the right place, pal. Hit me with your best shot.

Preferably report on GitHub
https://github.com/ReverendV92/SimpleWeather
Legutóbb szerkesztette: V92; 2024. jan. 2., 11:46
< >
115/121 megjegyzés mutatása
I forget the map entity which controls the sun direction's name, but while this addon controls the skypaint sun flawlessly, it does not account for the map entity which controls the actual lighting direction, resulting in awkward phong reflections in the lighting like in these two images linked below, showing the light reflecting off a viewmodel from where the sun's default position is in the map, vs where it is with the addon and should be cast from.

https://i.imgur.com/kf3nuTV.jpg

https://i.imgur.com/egMJQ0u.jpg
Tried to look up command sw_enabletime as if it were a variable.

That line is spammed in my console..
I really wish for a way to just remove the entire system of messing with the sun. When running Stranded for example, there's already a day/night cycle that controls the sun, which means that even with Simple Weather's passage of time disabled, Simple Weather still causes major flickering in the sky as it forcibly teleports the sun around once per second. The only way I can seem to stop it is, oddly, by adding other weather mods on top of it - although other servers appear to prevent it somehow...

Really, I just want to have the weather features and let the gamemode handle the day/night cycle (which has gameplay effects, so disabling it is impractical).
Loving it so far!
I̶s̶ ̶t̶h̶e̶r̶e̶ ̶a̶ ̶s̶p̶e̶c̶i̶f̶i̶c̶ ̶f̶o̶l̶d̶e̶r̶ ̶I̶ ̶w̶o̶u̶l̶d̶ ̶p̶u̶t̶ ̶t̶h̶e̶ ̶c̶o̶n̶f̶i̶g̶ ̶i̶n̶s̶i̶d̶e̶ ̶o̶f̶,̶ ̶o̶n̶ ̶a̶ ̶d̶e̶d̶i̶c̶a̶t̶e̶d̶ ̶s̶e̶r̶v̶e̶r̶?̶ ̶I̶'̶v̶e̶ ̶t̶r̶i̶e̶d̶:̶ ̶l̶u̶a̶/̶,̶ ̶l̶u̶a̶/̶a̶u̶t̶o̶r̶u̶n̶,̶ ̶l̶u̶a̶/̶a̶u̶t̶o̶r̶u̶n̶/̶s̶e̶r̶v̶e̶r̶ ̶

Okay I think I got it, if you're running a dedicated server; it goes in: "/home/gmodserver-username/serverfiles/garrysmod/lua/autorun/client". For example setting "SW.ShouldDrawClock" to false now hides the clock! <3

But using the config in the description, the weather still hasn't auto-changed... Setting "SW.DayTimeMul" to 10.01 or higher doesn't seem to make time go by any faster, either ;~; Is there a variable I'm missing to make the weather change by itself? The day and night cycles work great too, and I can force weather with ulx; just no auto-weather for some reason?
Legutóbb szerkesztette: Pandela⚞⚝; 2020. ápr. 25., 11:17
V92  [Fejlesztő] 2020. ápr. 25., 14:33 
Pandela❦ eredeti hozzászólása:
Okay I think I got it, if you're running a dedicated server; it goes in: "/home/gmodserver-username/serverfiles/garrysmod/lua/autorun/client". For example setting "SW.ShouldDrawClock" to false now hides the clock!

The file path is included on the PasteBin. That's not the right path, and everything before the "garrysmod" folder is irrelevant, as those are unique local directories.

The auto weather is a server-side variable, and you incorrectly put the config inside of the client-side directory. Fix your file path, and it should work.
Little thing I just noticed this morning while working on some guns:
the AM/PM for noon and mignight are flipped. It displays "AM" at noon, and "PM" at midnight. It should be the other way around.
V92  [Fejlesztő] 2020. ápr. 27., 0:27 
Vuthakral eredeti hozzászólása:
the AM/PM for noon and mignight are flipped. It displays "AM" at noon, and "PM" at midnight. It should be the other way around.

I'll take a look.
V92 eredeti hozzászólása:
Pandela❦ eredeti hozzászólása:
Okay I think I got it, if you're running a dedicated server; it goes in: "/home/gmodserver-username/serverfiles/garrysmod/lua/autorun/client". For example setting "SW.ShouldDrawClock" to false now hides the clock!

The file path is included on the PasteBin. That's not the right path, and everything before the "garrysmod" folder is irrelevant, as those are unique local directories.

The auto weather is a server-side variable, and you incorrectly put the config inside of the client-side directory. Fix your file path, and it should work.

I have it inside the folder you said, but it's still not working regardless. https://i.imgur.com/fL7t5E1.png

I tested by setting SW.ShouldDrawClock = false, as well as all the other clock related flags to false. Waited 3 hours too, still clear skies. They only seem to change (turn clock off or set it to the bottom of the screen) if I have the config in the "/garrysmod/lua/autorun/client" folder.
Legutóbb szerkesztette: Pandela⚞⚝; 2020. ápr. 27., 14:33
V92  [Fejlesztő] 2020. ápr. 28., 1:57 
Pandela❦ eredeti hozzászólása:

I have it inside the folder you said, but it's still not working regardless. https://i.imgur.com/fL7t5E1.png

I tested by setting SW.ShouldDrawClock = false, as well as all the other clock related flags to false. Waited 3 hours too, still clear skies. They only seem to change (turn clock off or set it to the bottom of the screen) if I have the config in the "/garrysmod/lua/autorun/client" folder.

Well, that's weird.
V92 eredeti hozzászólása:
Pandela❦ eredeti hozzászólása:

I have it inside the folder you said, but it's still not working regardless. https://i.imgur.com/fL7t5E1.png

I tested by setting SW.ShouldDrawClock = false, as well as all the other clock related flags to false. Waited 3 hours too, still clear skies. They only seem to change (turn clock off or set it to the bottom of the screen) if I have the config in the "/garrysmod/lua/autorun/client" folder.

Well, that's weird.
Indeed it is o: Any further help would be mucho appreciate!
Have you tried it on your own dedicated server? I'm using linuxGSM to host mine.

Here's the only "workaround" I've came up with so far, it forces server to always be in a thunderstorm: https://pastebin.com/wJ1ckp9U
Really love the mod, but sometimes I wish I could turn off the day/night cycle while I'm in sandbox, and just keep the weather. I looked at the code and noticed you had an enable/disable option for that, but I couldn't seem to get it working after tweaking with it.
so i ran into a problem where when its raining the ground is normal but when i walk on it the ground turns dark gray in a short area and it makes no sense so can you try to fix that unless a have to do something specific cause its really annoying and it sometimes happens when i noclip too
Some surfaces are way too bright in daytime
all maps including gm_construct and gm_flatgrass have lighting issues for the day night cycles. when it is night time on a map that is usually day. it keeps the maps default lighting so they have day lighting textures while the sky is dark. great mod just one problem with it.
here is an example https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2200986263
Legutóbb szerkesztette: ZachNohKap; 2020. aug. 17., 18:51
V92  [Fejlesztő] 2020. aug. 17., 20:51 
The lighting is baked into the map, so it can't change the baked lighting itself; merely fake it.
< >
115/121 megjegyzés mutatása
Laponként: 1530 50