[Mod] ClimaZ [climaz]
[Mod] ClimaZ [climaz]
Tired of other weather mods that just don't work? Tired of it always being sunny in your game? Do you find the evil chinese guy horrifying? Then use CLIMAZ!
Yes, another climate mod. :-D
Features
- Intelligent Weather Engine (IWE).
- Effects: Rain, snow and sand.
- Storms, with lightning effect and thunder sound.
- The weather is always related on biomes (temperature and humidity). So this mod does not work with mapgen v6.0.
- This mod create areas of weather (spheres of 80 radius by default), so many players can share the same climate.
- Simple and efective. Fast!
- Wind Feature. "get_player_wind(player_name)" function.
- Subtle and nice rain sound.
- Configurable via "climaz.conf".
Climate max Height
climate_max_height is set with the first occurrence in the following list:
1) "climate_max_height" setting in climaz.conf (delete this line to the following option to occur).
2) "cloud_height" setting in minetest.conf.
3) 120
Commands
climaz start
-- A new climate will be forced.
-- If a previous climated was active, will be disabled. This change probably won't be noticeable, maybe the wind.
-- Note that the type of the climate forced will be the suitable for that kind of biome.
climaz stop [player_name]
-- 'player_name' is optional.
-- If not 'player_name' defined: The climate is stopped for all the players inside that climate.
-- If 'player_name' defined: The effects of the climate are disabled only for that particular player. The other players are not afected. The climate is not stopped.
Depends
- None
License
- Source code: GPLv3.
- Textures: CC BY-SA 4.0
- Sounds: See the 'LICENSE.md' file.
Downloads
Download Mod
Source Code
- Attachments
-
- climatez.png (606.78 KiB) Viewed 2084 times
Last edited by runs on Sun Jan 15, 2023 12:29, edited 51 times in total.
Re: Climatez [climatez] (beta2)
beta 2
- Added a check for the altitude of the clouds.
- Added a "climate_min_height" settings.
- Added a check for the altitude of the clouds.
- Added a "climate_min_height" settings.
Re: Climatez [climatez] (beta2)
beta 3
-rename 'climatez.conf' to 'settingtypes.txt'
-rename 'climatez.conf' to 'settingtypes.txt'
Re: Climatez [climatez] (beta 4)
beta 4
- Disable weather when on water.
- Disable weather when on water.
Re: Climatez [climatez] (beta 4)
Runsy your modsy is not working, the settingtypes.txt file is giving issues. Also, I tested it on a local world in Minetest 5.3.0 and I couldn't see any effects, I even changed climate_change_ratio to 60 and waited a few minutes but I saw nothing.
This is the output of debug.txt:
This is the output of debug.txt:
Code: Select all
2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_min_height = -10"
2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_change_ratio = 1200"
2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_radius = 80"
2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_duration = 120"
2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_duration_random_ratio = 0.45"
2021-01-25 18:35:16: ACTION[Main]: World at [/home/me/.minetest/worlds/climatez_test]
2021-01-25 18:35:16: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:52331.
2021-01-25 18:35:18: ACTION[Server]: singleplayer [127.0.0.1] joins game. List of players: singleplayer
2021-01-25 18:37:19: ACTION[Main]: Server: Shutting down
Re: Climatez [climatez] (beta 4)
beta 5
- Refactor of the engine: now even more fast and reliable.
- Refactor of the engine: now even more fast and reliable.
Re: Climatez [climatez] (beta 4)
I don't have that issue. No setting errors in debug.txt. Download the last version and put:Minix wrote: ↑Mon Jan 25, 2021 18:57Runsy your modsy is not working, the settingtypes.txt file is giving issues. Also, I tested it on a local world in Minetest 5.3.0 and I couldn't see any effects, I even changed climate_change_ratio to 60 and waited a few minutes but I saw nothing.
This is the output of debug.txt:
Code: Select all
2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_min_height = -10" 2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_change_ratio = 1200" 2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_radius = 80" 2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_duration = 120" 2021-01-25 18:34:57: ERROR[Main]: Invalid line in /home/me/.minetest/mods/climatez-main/settingtypes.txt "climate_duration_random_ratio = 0.45" 2021-01-25 18:35:16: ACTION[Main]: World at [/home/me/.minetest/worlds/climatez_test] 2021-01-25 18:35:16: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:52331. 2021-01-25 18:35:18: ACTION[Server]: singleplayer [127.0.0.1] joins game. List of players: singleplayer 2021-01-25 18:37:19: ACTION[Main]: Server: Shutting down
climate_change_ratio = 5
climate_duration = 5
Those are my settings for testing purposes.
You should see almost a permanent rain (more or less each 5 s and of 5 seconds of duration).
Last edited by runs on Mon Jan 25, 2021 22:09, edited 1 time in total.
- rubenwardy
- Moderator
- Posts: 6972
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: Climatez [climatez] (beta 4)
Your settingtypes.txt has an incorrect syntax. settingtypes.txt is used in the All Settings menu in the main menu to set minetest.conf settings.runs wrote: ↑Mon Jan 25, 2021 20:34I don't have that issue. No setting errors in debug.txt. Download the last version and put:
climate_change_ratio = 5
climate_change_ratio = 5
Those are my settings for testing purposes.
You should see almost a permanent rain (more or less each 5 s and of 5 seconds of duration).
Re: Climatez [climatez] (beta 5)
beta 6
- Fixed regression: Rename "settingtypes.txt" to "climatez.conf", cos it is better.
- Fixed regression: Rename "settingtypes.txt" to "climatez.conf", cos it is better.
Re: Climatez [climatez] (beta 4)
Thanks.rubenwardy wrote: ↑Mon Jan 25, 2021 20:54Your settingtypes.txt has an incorrect syntax. settingtypes.txt is used in the All Settings menu in the main menu to set minetest.conf settings.runs wrote: ↑Mon Jan 25, 2021 20:34I don't have that issue. No setting errors in debug.txt. Download the last version and put:
climate_change_ratio = 5
climate_change_ratio = 5
Those are my settings for testing purposes.
You should see almost a permanent rain (more or less each 5 s and of 5 seconds of duration).
Re: Climatez [climatez] (beta 6)
Well, the mod is basically done.
Maybe, I will add future updates/improvements, as:
- Change sky color.
- Sounds.
Maybe, I will add future updates/improvements, as:
- Change sky color.
- Sounds.
Re: Climatez [climatez] (beta 6)
Mod is candidate now to ContentDB.
Re: Climatez [climatez] (beta 6)
- beta 7.
- Added a subtle, nice rain sound loop. Can be disabled via .conf.
- Added a subtle, nice rain sound loop. Can be disabled via .conf.
Re: Climatez [climatez] (beta 7)
I got it to work, I was placing the configuration settings in minetest.conf, instead they need to be changed in climatez.conf inside the mod folder, I don't like this approach very much but it's ok.
However, I got a crash:
That happened when I was flying over a sea with fast on
However, I got a crash:
Code: Select all
2021-01-25 22:42:58: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'climatez' in callback environment_Step(): ...minetest/worlds/world/worldmods/climatez-main/engine.lua:230: attempt to index local 'climate' (a nil value)
2021-01-25 22:42:58: ERROR[Main]: stack traceback:
2021-01-25 22:42:58: ERROR[Main]: ...minetest/worlds/world/worldmods/climatez-main/engine.lua:230: in function 'apply_climate'
2021-01-25 22:42:58: ERROR[Main]: ...minetest/worlds/world/worldmods/climatez-main/engine.lua:293: in function <...minetest/worlds/world/worldmods/climatez-main/engine.lua:261>
2021-01-25 22:42:58: ERROR[Main]: /usr/share/games/minetest/builtin/game/register.lua:429: in function </usr/share/games/minetest/builtin/game/register.lua:413>
2021-01-25 22:42:58: ERROR[Main]: stack traceback:
Re: Climatez [climatez] (beta 7)
Code: Select all
climate_min_height (Minimum height at which climate effects take place) int -10
climate_change_ratio (Chance of a new climate area to be created[seconds]) int 1200
climate_radius (Area of the regional climates sphere?) int 80
climate_duration (Average duration of the climate[seconds]) int 120
climate_duration_random_ratio (Random deviation for the duration) float 0.45
climate_rain_sound (Enable rain sound) bool true
By the way, climate_radius is weird, shouldn't it be "Area of the regional climates circumference" or is it really a sphere ? In that case it will be radius, or volume.
Re: Climatez [climatez] (beta 7)
bata 8
- Fixed crash
- Fixed crash
Re: Climatez [climatez] (beta 7)
Would this settingtypes.txt work ?
By the way, climate_radius is weird, shouldn't it be "Area of the regional climates circumference" or is it really a sphere ? In that case it will be radius, or volume.
[/quote]
It is a sphere with that radius. I use the term area here as a region of the space, but you are right, area is a flat 2d concept, better volume.
I do not understand settingtypes.txt yet.
By the way, climate_radius is weird, shouldn't it be "Area of the regional climates circumference" or is it really a sphere ? In that case it will be radius, or volume.
[/quote]
It is a sphere with that radius. I use the term area here as a region of the space, but you are right, area is a flat 2d concept, better volume.
I do not understand settingtypes.txt yet.
Last edited by runs on Tue Jan 26, 2021 11:11, edited 1 time in total.
Re: Climatez [climatez] (beta 7)
beta 9
- Fixed some temperature points to fit better the MTG biomes.
- Fixed some temperature points to fit better the MTG biomes.
Re: Climatez [climatez] (beta 9)
beta 10
- Colored gray sky when raining.
- Added storm chance (heavy rain), confifurable via the .conf file.
- Colored gray sky when raining.
- Added storm chance (heavy rain), confifurable via the .conf file.
Re: Climatez [climatez] (beta 10)
v1.0
- First stable version. Uploaded to ContentDB.
- First stable version. Uploaded to ContentDB.
Re: Climatez [climatez] (v1.0)
v1.1
- Fixed a possible crash.
- New: Ligthning effects and thunder sounds in storms.
- Fixed a possible crash.
- New: Ligthning effects and thunder sounds in storms.
Re: Climatez [climatez] (v1.0)
v1.20
- Fixed the shared rain sound handle for multiplayer mode that it did that the rain sound does not stop.
- Fixed the shared rain sound handle for multiplayer mode that it did that the rain sound does not stop.
Last edited by runs on Sat Aug 14, 2021 00:58, edited 1 time in total.
Who is online
Users browsing this forum: Google [Bot] and 22 guests