Page 6 of 6

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Fri May 12, 2017 15:24
by theFox
If you set collision detection of the rain to true, you can remove the checking for houses and it will only rain outside. With snow it looks quite ugly but with rain it's OK, but like this the rain gets stuck in trees. Think about it.

And you should check whether a player is above y = 200 or something so the rain is not above the clouds.

Nice mod btw. ; )

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Sun Nov 19, 2017 16:05
by Scarecrowman
Hey I installed this Mod, but for some reason the command "/setweather snow" doesn't work. Have I missed something?

I see something saying that I have to set privileges to weather, is that what I missed? I tried setting my privilege to setweather on singleplayer but its telling me no such privilege exists. Help.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Mon Nov 20, 2017 17:03
by Lone_Wolf
Scarecrowman wrote:Hey I installed this Mod, but for some reason the command "/setweather snow" doesn't work. Have I missed something?

I see something saying that I have to set privileges to weather, is that what I missed? I tried setting my privilege to setweather on singleplayer but its telling me no such privilege exists. Help.
Run the command: /grantme all Then try

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Tue Nov 21, 2017 01:54
by Scarecrowman
Lone_Wolf wrote:
Scarecrowman wrote:Hey I installed this Mod, but for some reason the command "/setweather snow" doesn't work. Have I missed something?

I see something saying that I have to set privileges to weather, is that what I missed? I tried setting my privilege to setweather on singleplayer but its telling me no such privilege exists. Help.
Run the command: /grantme all Then try
That worked. :3 Thanks wolf!

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Fri Feb 09, 2018 18:42
by AndroBuilder
+1

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Sun Apr 29, 2018 16:46
by theFox
the weather mod now supports wind:
  • blows around the downfall
  • feel the wrath of winter when the snow is blown into your face
  • new command for even more control over the weather
there now is an api for downfall registration
  • easily add your own types of wind,storm,etc.
  • you can add whatever your heart desires in your mod using 'weather_mod.register_downfall'
  • have fun implementing cat rain, poop rain or anything else

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Sun May 13, 2018 20:10
by Linuxdirk
Great and very advanced mod. But maybe you like this: https://github.com/theFox6/minetest_mod_weather/pull/7



Oh, and …
Scarecrowman wrote:Hey I installed this Mod, but for some reason the command "/setweather snow" doesn't work. Have I missed something?
You need to use /setweather weather:snow (it actually crashed the game for me when just using snow as parameter)

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Tue May 15, 2018 14:32
by theFox
Linuxdirk wrote:it actually crashed the game for me when just using snow as parameter
That shouldn't happen, could you show me the log? (preferably in a GitHub issue)

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Tue May 15, 2018 14:58
by Linuxdirk
theFox wrote:
Linuxdirk wrote:it actually crashed the game for me when just using snow as parameter
That shouldn't happen, could you show me the log? (preferably in a GitHub issue)
Here you go: https://github.com/theFox6/minetest_mod ... r/issues/8

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Thu May 17, 2018 14:51
by theFox
fixed ^^

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Fri May 18, 2018 23:33
by Stix
theFox wrote:the weather mod now supports wind:
  • blows around the downfall
  • feel the wrath of winter when the snow is blown into your face
  • new command for even more control over the weather
there now is an api for downfall registration
  • easily add your own types of wind,storm,etc.
  • you can add whatever your heart desires in your mod using 'weather_mod.register_downfall'
  • have fun implementing cat rain, poop rain or anything else
can you provide a link to your fork please?

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Sat May 19, 2018 15:13
by theFox
Stix wrote:can you provide a link to your fork please?
https://github.com/theFox6/minetest_mod_weather
You could also use the link in the first post.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Sat May 19, 2018 15:21
by Linuxdirk
theFox wrote:fixed ^^
Confirmed :)

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Fri Jun 15, 2018 19:18
by BillyS
I wanna put this on my server, but I know it will explode if I do.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Sat Jun 23, 2018 08:13
by theFox
BillyS wrote:I wanna put this on my server, but I know it will explode if I do.
Are you sure? This mod just uses client side particles.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Wed Aug 07, 2019 19:51
by coolsammyo
When I try to use the "setweather" command, it says "Invalid command: setweather"

I have granted myself all privileges.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Mon Aug 12, 2019 12:00
by theFox
coolsammyo wrote:When I try to use the "setweather" command, it says "Invalid command: setweather"

I have granted myself all privileges.
Even without granting yourself all privileges it shouldn't have said invalid command...
Could clear out your log.txt, retry to run the command and send the contents of log.txt after that?
You find log.txt directly in the folder of your minetest or in the "bin" folder there.

api.lua:205: bad argument #2 to 'random' (interval is empty)

Posted: Mon Oct 05, 2020 19:29
by InkStone
Running into an error, not sure if it's me (likely) or a minor bug.
I'll keep digging but I'll put this here just in case it's the latter.

Server Setup:
  • Minetest 5.3.0 from git release
  • Latest version of "weather" from content.minetest.net (as of this posting)
Adding weather generates the following error;

Code: Select all

2020-10-05 15:33:29: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'weather' in callback environment_Step(): ...s/minetest_5.3.0/bin/../mods/weather/weather/api.lua:205: bad argument #2 to 'random' (interval is empty)
2020-10-05 15:33:29: ERROR[Main]: stack traceback:
2020-10-05 15:33:29: ERROR[Main]:       [C]: in function 'random'
2020-10-05 15:33:29: ERROR[Main]:       ...s/minetest_5.3.0/bin/../mods/weather/weather/api.lua:205: in function '?'
2020-10-05 15:33:29: ERROR[Main]:       ...ilds/minetest_5.3.0/bin/../builtin/game/register.lua:429: in function <...ilds/minetest_5.3.0/bin/../builtin/game/register.lua:413>
2020-10-05 15:33:29: ERROR[Main]: stack traceback:
I ran a test on a fresh world with only weather mod enabled, and still got the error (hopefully ruling out conflicts and load order if that's an issue)

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Tue Oct 06, 2020 08:18
by theFox
Interesting bug, I think it occurs when there is no weather registered. I will fix this as soon as my computer is fixed.
However if no weather is registered, that would suggest that there is another bug.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Tue Oct 06, 2020 17:02
by InkStone
theFox wrote:
Tue Oct 06, 2020 08:18
Interesting bug, I think it occurs when there is no weather registered. I will fix this as soon as my computer is fixed.
However if no weather is registered, that would suggest that there is another bug.

Just to poke around (and I dislike not trying to help), I looked inside the world folder "weather" file and this was the entry:

Code: Select all

return {["type"] = "none", ["wind"] = {["y"] = 0, ["x"] = 0, ["z"] = 0}}


I changed "none" to "rain' based on the mcl_weather file in another world using MineClone2.
Still got the error message from above.



I went to reset the file and it had changed to:

Code: Select all

return {["wind"] = {["y"] = 0, ["x"] = 0, ["z"] = 0}, ["type"] = "rain"}
No rush on the fix, but I'm happy to post up any info you might be curious about.

Thank you for your mod and your time.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Wed Oct 07, 2020 05:45
by theFox
Edit: In fact I have just realized that this was caused by a fault I made. I think I have it fixed now. Try the latest release.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Wed Oct 07, 2020 18:11
by InkStone
That did the trick! Thank you.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Thu Oct 08, 2020 07:58
by Merak
I had snow and freezing in a temperate biome and snow was falling inside a building. Those would be some meaningful things to improve.

Re: [Mod] Weather (Snow, Rain) [weather]

Posted: Fri Oct 16, 2020 09:12
by theFox
Merak wrote:
Thu Oct 08, 2020 07:58
I had snow and freezing in a temperate biome and snow was falling inside a building. Those would be some meaningful things to improve.
I should add heat checks, that's a good idea.