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

User avatar
SAMIAMNOT
Member
Posts: 416
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie
Location: Desert

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

by SAMIAMNOT » Post

This mod is good though I haven't used any other mod.
I'd like to see a feature where it only eains or snows under clouds. Also I think gray raindrops would be better looking.
And I think it should rain or snow depending on the date and snow all day on Christmas.
What do you think of my ideas?
*EDIT* Does snow pile up?
I test mines.

User avatar
Nathan.S
Member
Posts: 1003
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

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

by Nathan.S » Post

Looks like the particle spawner needs an update.

Code: Select all

12:33:52: ACTION[ServerThread]: Deprecated add_particlespawner call with individual parameters instead of definition
12:33:52: ACTION[ServerThread]: stack traceback:
12:33:52: ACTION[ServerThread]: 	[C]: in function 'add_particlespawner'
12:33:52: ACTION[ServerThread]: 	...han/.minetest/mods/minetest-mod-weather/weather/snow.lua:19: in function <...han/.minetest/mods/minetest-mod-weather/weather/snow.lua:2>
12:33:52: ACTION[ServerThread]: 	/usr/share/minetest/builtin/game/register.lua:348: in function </usr/share/minetest/builtin/game/register.lua:336>
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
SAMIAMNOT
Member
Posts: 416
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie
Location: Desert

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

by SAMIAMNOT » Post

Also in this world I have there is always this little cloud that rains in a 30x30 space and never moves. That's not supposed to happen, is it?
I test mines.

Fredrick01
Member
Posts: 10
Joined: Tue Nov 11, 2014 05:12
IRC: Fredrick
In-game: Fredrick
Location: USA

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

by Fredrick01 » Post

I have been looking for a weather mod for awhile now, no clue one already existed!! Thanks for posting!

User avatar
dgm5555
Member
Posts: 245
Joined: Tue Apr 08, 2014 19:45

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

by dgm5555 » Post

Adding this code to Snow.lua under the -- Snow cover section means the snow will gradually melt rather than forming a permanant white square on the ground...

Code: Select all

minetest.register_abm({
	nodenames = {"weather:snow_cover"},
	interval = 10.0,
	chance = 20,
	action = function(pos, node, active_object_count, active_object_count_wider)
		minetest.env:set_node(pos, {name = "default:water_flowing"})
	end,
})

User avatar
dgm5555
Member
Posts: 245
Joined: Tue Apr 08, 2014 19:45

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

by dgm5555 » Post

Just a thought about the 30x30 cloud/square on the ground. If you randomly added snow to the ground further out without processing the falling snow. That way there wouldn't be any processor load, but it wouldn't look so artificial.
If you use voxel_manip then you force minetest to load the block which would be a bit safer than just hoping a distant block would be correctly set

Code: Select all

local manip = minetest.get_voxel_manip()
manip:read_from_map(p, p)
Actually on the processor load front. Would it be possible to have a non-particle weather option (using animated walkable nodes). Every computer I've tried it on (including multi-processor pcs) have ground to a halt when the rain or snow starts.

Finally, as it is particularly uncool when it rains inside buildings, what about a quick height check? Something like this would work, you probably only need to check within 5-10 nodes of a player, and if wanted to be really efficient and kept it in an array and only tested unknown columns the speed cost should be pretty negligible:

Code: Select all

-- This will fail if ground level is below -100 or an obsticle above 96 (but this doesn't happen very often)
--if more robust code is needed then could start at cloud level and keep going down til you hit non-air
local manip = minetest.get_voxel_manip()
for i = 96, -100, -1 do	
	p = {x=targetX, y=i, z=targetZ}
	manip:read_from_map(p, p)
	if minetest.get_node(p).name ~= "air" and minetest.get_node(p).name ~= "ignore" then
		groundLevel = i
		break
	end
end

User avatar
paramat
Developer
Posts: 3658
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

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

by paramat » Post

dgm5555 wrote:Actually on the processor load front. Would it be possible to have a non-particle weather option (using animated walkable nodes).
viewtopic.php?f=9&t=9915 this may have some issues, needs more work, and no snow, but uses animated nodes, a method that has many advantages.

User avatar
Samson1
Member
Posts: 94
Joined: Wed Apr 01, 2015 19:41
IRC: Samson1
In-game: Samson1

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

by Samson1 » Post

I think it needs a bit of work, but I like it.
Last edited by Samson1 on Tue Nov 06, 2018 15:56, edited 1 time in total.

User avatar
TenPlus1
Member
Posts: 2775
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

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

by TenPlus1 » Post

Samson1: that's easier said than done but we would need to see minecraft code to see how THEY do it... lol... mods here start off glitchy but over time get better...

User avatar
Silwncer
Member
Posts: 89
Joined: Tue Jun 23, 2015 14:45

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

by Silwncer » Post

That raining in houses issue is serious and it needs to be fixed

Konrad
New member
Posts: 1
Joined: Sat Aug 29, 2015 23:42
In-game: Konrad

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

by Konrad » Post

I like having weather in Minetest, but I have one suggestion for improvement. I don't know how easily it can be done, but it would be cool if the clouds and sky could turn grey during rain or snow.

User avatar
benrob0329
Member
Posts: 1321
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

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

by benrob0329 » Post

Could the rain or snow be controlled by the biom? E.g. if someone was in a snow biom there would ocationally be snowfall, and if they were in a rain forest there would be heavy rain every day, possibly even flash floods every blue moon.

Maybe even have seasons? Like every 180 days change the season?
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

User avatar
Samson1
Member
Posts: 94
Joined: Wed Apr 01, 2015 19:41
IRC: Samson1
In-game: Samson1

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

by Samson1 » Post

benrob0329 wrote:Could the rain or snow be controlled by the biom? E.g. if someone was in a snow biom there would ocationally be snowfall, and if they were in a rain forest there would be heavy rain every day, possibly even flash floods every blue moon.

Maybe even have seasons? Like every 180 days change the season?
Yes, it could, I am thinking of making a mod like this one thats more to Minecraft standards, like the rain falls into houses and it snows on the grass biom.
What would be good is to have a command so instead of it snowing/raining when I am making videos or when I don't want it to I can just type in "/downfall"

nm0i
New member
Posts: 3
Joined: Tue Oct 13, 2015 17:54
IRC: nm0i
In-game: nm0i

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

by nm0i » Post

(Not) the same mod mechanics with sound, skybox changes,storms and thunder added.

No weather transition code. Use /help weather

Download (1M)
+ Spoiler

User avatar
mahmutelmas06
Member
Posts: 367
Joined: Mon Mar 02, 2015 13:10
GitHub: mahmutelmas06
IRC: mahmutelmas06
In-game: masum

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

by mahmutelmas06 » Post

nm0i wrote:(Not) the same mod mechanics with sound, skybox changes,storms and thunder added.
+1 for thunder
My Mods:

Beverage

User avatar
swordpaint12
Member
Posts: 191
Joined: Sat Aug 22, 2015 00:50
In-game: [swordpaint12][Belching_Balladeer]
Location: Foobass, isle of Atlantis, castle of Bardvendelle

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

by swordpaint12 » Post

Don't particles slow down the game? Is there a build that just kind of stains the screen like when underwater? Would that make the game faster? Could anyone do that?
God's not dead; remember that!
Yay for MT! No MC here!
I am a human. I'm younger than 100 years old.
I've been playing Minetest since December 2014.

I'm amazed that I haven't been on here in so long! My latest minetest accomplishment was mining by hand (well, as close as you can get in a computer game) a circle 30 blocks in diameter. It took forever but it's pretty cool.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

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

by Don » Post

I have made a mod that adds months. The weather is dependent on the month. It is still under development so don't expect it to be perfect. I used parts of this mod to make the weather. If anyone is brave enough to give it a try then the link is below.

Also if you are interested in helping me develop the mod then please PM me. I still have to add the credit to Jeija for the weather. I will do that very soon. I also plan on adding thunder.

https://github.com/DonBatman/mymonths
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

nm0i
New member
Posts: 3
Joined: Tue Oct 13, 2015 17:54
IRC: nm0i
In-game: nm0i

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

by nm0i » Post

Another attempt to add more lag to the game.

This time I added rainbox for indoors weather. Idea is to draw additional particle spawners at 4,8,12 nodes if player is inside.
Download (800532)
+ Spoiler
License: Unilicense for code (WTFPL without swearing), CC0/CCA for sound (credits included), CC0 for textures.

User avatar
kaadmy
Member
Posts: 706
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

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

by kaadmy » Post

swordpaint12 wrote:Don't particles slow down the game? Is there a build that just kind of stains the screen like when underwater? Would that make the game faster? Could anyone do that?
That would be quite useful, and so would having a mod-changeable fog color/distance per client, like skyboxes.
Stains would be possible, but couldn't be animated.
Never paint white stripes on roads near Zebra crossings.

Pixture

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

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

by Don » Post

kaadmy wrote: Stains would be possible, but couldn't be animated.
How do you tint the screen?
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
kaadmy
Member
Posts: 706
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

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

by kaadmy » Post

Don wrote:
kaadmy wrote: Stains would be possible, but couldn't be animated.
How do you tint the screen?
You can apply HUD images; see playereffects in adventuretest, it makes the screen black while sleeping.
Never paint white stripes on roads near Zebra crossings.

Pixture

User avatar
swordpaint12
Member
Posts: 191
Joined: Sat Aug 22, 2015 00:50
In-game: [swordpaint12][Belching_Balladeer]
Location: Foobass, isle of Atlantis, castle of Bardvendelle

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

by swordpaint12 » Post

kaadmy wrote:see playereffects in adventuretest, it makes the screen black while sleeping.
Which I can't figure out how to get out of. Anyhoo, yes, how do you think they stain the screen when under water? I know it couldn't be animated, unless it switched between two or three "stains". A few weeks ago I was trying to puzzle out how to make an easy-use weather mod- or at least an idea for one- and I was talking with someone I know and he said that in some of the games he plays there is weather, but it is only on the player's screen instead of particles. So that's where I got that idea. There is also a mod somewhere in one of these forums and they have a big cluster of bubbles on the screen while doing something (that I forget) so that only reinforced my idea.

Ah yes, here it is. Survival mod. "Bubbles appear when underwater":
Image
God's not dead; remember that!
Yay for MT! No MC here!
I am a human. I'm younger than 100 years old.
I've been playing Minetest since December 2014.

I'm amazed that I haven't been on here in so long! My latest minetest accomplishment was mining by hand (well, as close as you can get in a computer game) a circle 30 blocks in diameter. It took forever but it's pretty cool.

User avatar
SAMIAMNOT
Member
Posts: 416
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie
Location: Desert

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

by SAMIAMNOT » Post

swordpaint12 wrote:
kaadmy wrote:see playereffects in adventuretest, it makes the screen black while sleeping.
Which I can't figure out how to get out of. Anyhoo, yes, how do you think they stain the screen when under water? I know it couldn't be animated, unless it switched between two or three "stains". A few weeks ago I was trying to puzzle out how to make an easy-use weather mod- or at least an idea for one- and I was talking with someone I know and he said that in some of the games he plays there is weather, but it is only on the player's screen instead of particles. So that's where I got that idea. There is also a mod somewhere in one of these forums and they have a big cluster of bubbles on the screen while doing something (that I forget) so that only reinforced my idea.

Ah yes, here it is. Survival mod. "Bubbles appear when underwater":
Image
That's a great idea.
I test mines.

nm0i
New member
Posts: 3
Joined: Tue Oct 13, 2015 17:54
IRC: nm0i
In-game: nm0i

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

by nm0i » Post

http://me0w.net/pit/1469394892 (.tar.gz) (611604b)

Clean-up of my previous and top-post version.
Requires serverstep < 0.2. Is not that laggy as before.

This version adds visual effects for toxic rain, blood rain, blood storm.
+ Spoiler

Cupcake_Kitty
Member
Posts: 13
Joined: Fri Jan 27, 2017 17:41
In-game: Cupcake_Kitty
Location: Stuck inside the Minetest engine.

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

by Cupcake_Kitty » Post

Last time I tried this was on my old Linux mac computer and my Minetest engine crashed when it began to snow. Now that I am on a Windows 8 HP will it not crash? Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests