Page 1 of 2

[Zsript] Very simple weather effects

PostPosted: Thu Feb 06, 2020 8:04 am
by Apeirogon
Simple system which create snow/rain in any sector with sky "ceiling" without creating too much load on cpu.
Mainly oriented on mappers who wants add immersion to their maps.

For now it have
Snow

Rain

Ashes looks goofy, I know

By default it turned off, so you need open pack and edit it a little to add specific weather to specific map.
As a little side effect of "simpleness" it can work weird with too small/too weirdly shaped "sky" sectors, like spawning snow under the actual ceiling of neighbor of "sky" sector sectors.

Minimal required gzdoom version 3.5
Github repository
How to download things from Github
viewtopic.php?f=39&t=70332

To use it go to the github page, press green button, select download as zip, save it and then open it as usual pack in slade/whatever you use for scripting.
Follow instruction in the readme.md file to turn it on.

If you want see some new effect or want something to say, write it here.

Re: [Zsript] Simple weather effects

PostPosted: Thu Feb 06, 2020 9:06 am
by Cherno
Looks good and very useful.

Re: [Zsript] Simple weather effects

PostPosted: Thu Feb 06, 2020 11:35 am
by Redneckerz
For inspiration, have you looked at WeatherFX?

Re: [Zsript] Simple weather effects

PostPosted: Thu Feb 06, 2020 4:01 pm
by Apeirogon
It uses more or less same approach as weatherFX. Only difference is it cache all weather actors to reuse them in future, since zscript support dynamical arrays.

Probably I should add some presets like snowy day, snowstorm, tropical rain, etc.
Originally I create it to replace snow and rain in eviternity, because weather from there sometimes drop fps on my machine so hard so it transform game genre from first person shooter to turn base strategy.

Re: [Zsript] Simple weather effects

PostPosted: Thu Feb 06, 2020 9:10 pm
by m8f
Suggestion: ashes slowly falling from the sky. May suit hell maps.

Re: [Zsript] Simple weather effects

PostPosted: Fri Feb 07, 2020 4:50 pm
by Apeirogon
m8f wrote:Suggestion: ashes slowly falling from the sky. May suit hell maps.

Ok, but it looks a little bit goofy.


Also, I dont find good ashes sprite (which is not a gray square) at first google page so I used photo of staphylococcus from electron microscope instead.

Re: [Zsript] Simple weather effects

PostPosted: Fri Feb 07, 2020 7:04 pm
by XLightningStormL
This isn't even working for me, despite packing the .pk3 fine (and fixing some apparent issues with CSE_Rain being called instead of CWE_Rain) and the .pk3 loading (cvars appear and work)

Re: [Zsript] Simple weather effects

PostPosted: Sat Feb 08, 2020 2:56 pm
by Apeirogon
Try re download package again. I fix this errors, add more clear instruction and new effect for rain weather.


Re: [Zsript] Simple weather effects

PostPosted: Sat Feb 08, 2020 9:10 pm
by XLightningStormL
Is there actually a guide to get this working? Because despite the update, changing the CVARs still isn't doing anything for me :P.

In case, I'm using the latest GZDoom Stable build, and it doesn't work for me regardless of the Graphics API.

Re: [Zsript] Simple weather effects

PostPosted: Sun Feb 09, 2020 3:53 am
by Apeirogon
Oh, I create readme but dont add it to git for tracking, sorry. Fix it now.
Download readme.md from repository/redownload pack again.

Re: [Zsript] Simple weather effects

PostPosted: Wed Feb 12, 2020 8:19 am
by Apeirogon
I add rain sound. Its clunky but better than nothing. Still trying to figure out a way to add sound without hacks I used for current version.

Re: [Zsript] Very simple weather effects

PostPosted: Tue Jul 07, 2020 2:44 pm
by Apeirogon
I added new way to attaching weather to map.
Now all that required is edit a little WEATHDEF file (instruction included in it, its simple, I hope), and boom, snow/rain now attached to the specific map.

Re: [Zsript] Very simple weather effects

PostPosted: Wed Oct 21, 2020 2:51 am
by Hidden Hands
I'm trying to download this and I honestly just cannot pull it off. How do I download this file?? Theres no green button for download there. I can "view code" but cannot download the zip.

Okay I managed to download it but I just cannot get this to work. I've been trying for over an hour. I get hundreds of errors and I just don't know why. I can never get this stuff to work, every time I try I always get error after error after error and I end up having to go without.

PLEASE can someone help me with what's wrong. I really really need this to work.

Re: [Zsript] Very simple weather effects

PostPosted: Wed Oct 21, 2020 10:23 am
by wildweasel
I would presume that the "MarkSound" function is newer than whatever version of GZDoom you're using.

[edit] Then again this is marked for version 3.5, so, I'm probably wrong.

Re: [Zsript] Very simple weather effects

PostPosted: Wed Oct 21, 2020 11:44 am
by Apeirogon
Hidden Hands wrote:I'm trying to download this and I honestly just cannot pull it off. How do I download this file?? Theres no green button for download there. I can "view code" but cannot download the zip.

Okay I managed to download it but I just cannot get this to work. I've been trying for over an hour. I get hundreds of errors and I just don't know why. I can never get this stuff to work, every time I try I always get error after error after error and I end up having to go without.

PLEASE can someone help me with what's wrong. I really really need this to work.


LZdoom, according to your previous messages on forum?!
How I can recreate problem?