Climatez [climatez] (v1.15)

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Climatez [climatez] (v1.15)

by runs » Post

Image

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 CLIMATEZ!


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 "climatez.conf".

Commands

climatez 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.

climatez 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) Not downloaded yet
Last edited by runs on Fri Feb 26, 2021 22:34, edited 33 times in total.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta2)

by runs » Post

beta 2

- Added a check for the altitude of the clouds.
- Added a "climate_min_height" settings.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta2)

by runs » Post

beta 3
-rename 'climatez.conf' to 'settingtypes.txt'
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 4)

by runs » Post

beta 4
- Disable weather when on water.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
Minix
Member
Posts: 52
Joined: Thu Nov 12, 2020 13:51
In-game: Minix

Re: Climatez [climatez] (beta 4)

by Minix » Post

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:

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

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 4)

by runs » Post

beta 5

- Refactor of the engine: now even more fast and reliable.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 4)

by runs » Post

Minix wrote: ↑
Mon Jan 25, 2021 18:57
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:

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
I don't have that issue. No setting errors in debug.txt. Download the last version and put:

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.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
rubenwardy
Moderator
Posts: 6431
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: Climatez [climatez] (beta 4)

by rubenwardy » Post

runs wrote: ↑
Mon Jan 25, 2021 20:34
I 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).
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.

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 5)

by runs » Post

beta 6

- Fixed regression: Rename "settingtypes.txt" to "climatez.conf", cos it is better.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 4)

by runs » Post

rubenwardy wrote: ↑
Mon Jan 25, 2021 20:54
runs wrote: ↑
Mon Jan 25, 2021 20:34
I 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).
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.
Thanks.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 6)

by runs » Post

Well, the mod is basically done.
Maybe, I will add future updates/improvements, as:

- Change sky color.
- Sounds.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 6)

by runs » Post

Mod is candidate now to ContentDB.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 6)

by runs » Post

- beta 7.

- Added a subtle, nice rain sound loop. Can be disabled via .conf.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
Minix
Member
Posts: 52
Joined: Thu Nov 12, 2020 13:51
In-game: Minix

Re: Climatez [climatez] (beta 7)

by Minix » Post

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:

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:
That happened when I was flying over a sea with fast on

User avatar
Minix
Member
Posts: 52
Joined: Thu Nov 12, 2020 13:51
In-game: Minix

Re: Climatez [climatez] (beta 7)

by Minix » Post

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
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.

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 7)

by runs » Post

bata 8

- Fixed crash
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 7)

by runs » Post

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.
Last edited by runs on Tue Jan 26, 2021 11:11, edited 1 time in total.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 7)

by runs » Post

beta 9

- Fixed some temperature points to fit better the MTG biomes.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 9)

by runs » Post

beta 10

- Colored gray sky when raining.
- Added storm chance (heavy rain), confifurable via the .conf file.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

Chem871
Member
Posts: 964
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: Climatez [climatez] (beta 10)

by Chem871 » Post

..... Evil Chinese guy?
What is SCP-055?

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 10)

by runs » Post

Chem871 wrote: ↑
Tue Jan 26, 2021 21:30
..... Evil Chinese guy?
I can't say more... eyes lurk, tongue sharpens...
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
ywwv
Member
Posts: 105
Joined: Mon Jan 18, 2021 11:51

Re: Climatez [climatez] (beta 10)

by ywwv » Post

Chem871 wrote: ↑
Tue Jan 26, 2021 21:30
..... Evil Chinese guy?
we need to ressurect the taiping heavenly kingdom. that's what this mod is about. 30 million dead jurchens. I want to go to heaven

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (beta 10)

by runs » Post

v1.0

- First stable version. Uploaded to ContentDB.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (v1.0)

by runs » Post

v1.1

- Fixed a possible crash.
- New: Ligthning effects and thunder sounds in storms.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
runs
Member
Posts: 2151
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: Climatez [climatez] (v1.0)

by runs » Post

v1.2

- Fixed the shared rain sound handle for multiplayer mode that it did that the rain sound does not stop.
πŸ€‘ Patreon | β˜• Minetest Chat | πŸ‘§ Samantha | ⛏️ Juanchi Game | 🐱 Petz

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests