[Mod] weather_pack

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] weather_pack

by Fixerol » Sat Jun 18, 2016 22:15

Lua error, possibly related to weather_pack. Was in etherial biome at the time.
http://pastebin.com/raw/9PS5k8Km

BTW, about snow/raining, if I understand it correctly, you can make things much simpler... follow my though:
as in MC make rain and snow event basically the same thing... it is single precipitation event, and type of precipitation depends on what node you are standing, if snow (node or block, or dirt with snow) below your feet - it snows, if you step away from it... it rains.
 

Fixerol
Member
 
Posts: 633
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer

Re: [Mod] weather_pack

by Fixerol » Sat Jun 25, 2016 15:01

BTW, with rain I get about 18% fps drop :}
 

User avatar
Dopium
Member
 
Posts: 233
Joined: Sat Jun 09, 2012 15:43

Re: [Mod] weather_pack

by Dopium » Sun Jul 10, 2016 00:48

Xeranus's i really enjoy this mod along with sofar's lightening mod however i seem to be getting a bug when lightening strikes. I have reported the bug on sofar's lightening mod however it may have to do with rain. The bug arised after updating to the latest dev build, stable worked fine.

When its raining there is no issues however as soon as lightening strikes it will crash minetest to the desktop. I cannot find any errors in the debug besides this warning.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2016-07-08 12:19:45: WARNING[Server]: Undeclared global variable "dtime" accessed at ...160707\bin\..\games\minetest_2.0\mods\weather\rain\init.lua:143

Not sure if it has anything to do with the way particles behave on the new build.


On a separate matter there is a small bug i noticed for awhile that was the same on stable. After playing for a few hours the set_weather <whatever> command becomes unresponsive, as in it accepts the command but no change in weather conditions. This is no major concern to me as i just exit the world then join again then everythings fine.
 

User avatar
xeranas
Member
 
Posts: 99
Joined: Fri Feb 05, 2016 11:06
GitHub: xeranas

Re: [Mod] weather_pack

by xeranas » Sun Jul 10, 2016 21:04

Master was merged into dev branch (general recommendation would be to stick with master branch as dev is more like for experimenting). Warning messages related to dtime should be gone now. Please update lightning mod also since similar issue was fixed. If issue still reproduces after updating both mods then fill bug on weather_pack github and I will take a look.

Second issue is not clear to me, seems that some Lua table data was lost in middle of game. I will check.
 

User avatar
Dopium
Member
 
Posts: 233
Joined: Sat Jun 09, 2012 15:43

Re: [Mod] weather_pack

by Dopium » Mon Jul 11, 2016 12:35

Resolved, thanks for looking into that, dtime warning gone and lightening strikes without crashing.
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

Re: [Mod] weather_pack

by BrunoMine » Wed Oct 26, 2016 21:35

This mod can be used on a server?
 

User avatar
xeranas
Member
 
Posts: 99
Joined: Fri Feb 05, 2016 11:06
GitHub: xeranas

Re: [Mod] weather_pack

by xeranas » Thu Oct 27, 2016 04:52

I'm not sure how minetest works. That server-client architecture quite confusing for me. I guess particle creation should be client responsibility however there are a lot of positions calculations and while they are purely for cosmetic/visual purpose I think they will be done on server side for each player (I do not have control over it or do I?). That being said this mod is not recommended for server.
Last edited by xeranas on Thu Oct 27, 2016 08:51, edited 1 time in total.
 

ManElevation
Member
 
Posts: 213
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

Re: [Mod] weather_pack

by ManElevation » Thu Oct 27, 2016 08:20

wo this is awesome
Hey there im going to be off minetest for a while because my company has been deleloping a game called Ground Conflict, if you wish to see some screenshots or have some info, than please join our discord server https://discord.gg/C9ygXJn
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: [Mod] weather_pack

by sofar » Sun Oct 30, 2016 02:25

Now that the engine has changed, this mod should incorporate several of the following improvements:

- rain particles remove on collision (collision_remove = true) with the gruond
- weather particle spawners can be attached to the player entity now, which should make them far more efficient

FYI particles are "added" by the server, but the server does nothing with them except tell clients. Clients do all the graphical work for particles.
 

User avatar
ErrorNull
Member
 
Posts: 94
Joined: Thu Mar 03, 2016 00:43

Re: [Mod] weather_pack

by ErrorNull » Sun Oct 30, 2016 10:41

yes, i am greatly anticipating an update to this mod to take advantage of these recent minetest engine improvements!
 

User avatar
xeranas
Member
 
Posts: 99
Joined: Fri Feb 05, 2016 11:06
GitHub: xeranas

Re: [Mod] weather_pack

by xeranas » Sat Nov 12, 2016 22:13

sofar wrote:Now that the engine has changed, this mod should incorporate several of the following improvements:

- rain particles remove on collision (collision_remove = true) with the gruond
- weather particle spawners can be attached to the player entity now, which should make them far more efficient


Collision check was added some time ago, thought effect is visible for users only 14-dev+ versions.

Simple profiling suggest me that most expensive operation is particle creation by minetest itself, which is unavoidable. For this reason I try to calculate location based on player look dir to "win" few particles. Relative position won't help in this case, build-in particle spawner isn't fit for it either as it uses simple range around logic which does not let verify particle position (e.g. is it in-door).
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.add_particle time: 0.02ms
weather.get_random_pos_by_player_look_dir time: 0.00ms
weather.get_random_pos_by_player_look_dir time: 0.00ms
weather.get_random_pos_by_player_look_dir time: 0.00ms
minetest.add_particle time: 0.02ms
weather.get_random_pos_by_player_look_dir time: 0.00ms
minetest.add_particle time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
minetest.add_particle time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
minetest.add_particle time: 0.02ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.00ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
minetest.add_particle time: 0.04ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.02ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
minetest.add_particle time: 0.04ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
weather.get_random_pos_by_player_look_dir time: 0.01ms
minetest.add_particle time: 0.02ms
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] weather_pack

by Wuzzy » Mon Feb 20, 2017 17:36

It's a good mod which adds nicely to atmosphere. I think I will include it into MineClone 2.

Some comments:

- /help set_weather should say ALL allowed parameters, not just “none”. E.g. “/set_weather none | snow | rain | thunder”
- There's no error message when the user gives no or an invalid parameter to /set_weather.
- The sky is flashing like in a thunder storm even if I just activate the normal rain with /set_weather rain. :-(
- The thunder storm seems to be identical to rain, there only difference is that there are only lightning strikes and additional sounds. I would suggest: More rain drops, louder rain or different rain/storm sound, darker sky.
- It would be great if the weather had some effects, such as snow piling up when it snows or fires being extinguished
- Alternatively, an API function to query the current weather would be extremely useful, so that other mods can add custom events
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
Chibi ghost
Member
 
Posts: 161
Joined: Fri Jan 08, 2016 21:17
In-game: Ghost

Re: [Mod] weather_pack

by Chibi ghost » Mon Feb 20, 2017 20:28

I would love this mod but I'm afraid with my already over modded game it would melt my computer
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] weather_pack

by Wuzzy » Mon Feb 20, 2017 21:11

OK, I just figured out the weather_pack already puts out fire when it rains. Good!

But I found something different: skycolor.lua. This appears to be a real API or something. Do you have any explanation on how to use it properly? What is it about with all those layers?

What do I do when I want to change the sky color based on depth (e.g. if the player is at Y<100, the sky turns black regardless of weather)?
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
xeranas
Member
 
Posts: 99
Joined: Fri Feb 05, 2016 11:06
GitHub: xeranas

Re: [Mod] weather_pack

by xeranas » Wed Feb 22, 2017 16:57

Wuzzy wrote:- /help set_weather should say ALL allowed parameters, not just “none”. E.g. “/set_weather none | snow | rain | thunder”
- There's no error message when the user gives no or an invalid parameter to /set_weather.
- The sky is flashing like in a thunder storm even if I just activate the normal rain with /set_weather rain. :-(
- The thunder storm seems to be identical to rain, there only difference is that there are only lightning strikes and additional sounds. I would suggest: More rain drops, louder rain or different rain/storm sound, darker sky.
- It would be great if the weather had some effects, such as snow piling up when it snows or fires being extinguished
- Alternatively, an API function to query the current weather would be extremely useful, so that other mods can add custom events

Thanks, I will review comments. Probably exposing api and letting everyone define weather in more flexible way would solve some issues.

Wuzzy wrote:But I found something different: skycolor.lua. This appears to be a real API or something.

Weather mod have embedded skycolor api. Here link to mod post: viewtopic.php?t=15733

Skycolor basically do 2 things:
1) allows register your color layer which is basically color gradient definition in RGB format like: Night Color -> Middle Day -> Night Color (could have more than 3 gradient points).
2) sometimes you do not want to lose previous sky color, that's why here is layers. Active sky is based on last layer. If you done with sky effect just remove_layer(your_layer).
 

Previous

Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 39 guests

cron