[Zsript] Very simple weather effects

Post your example zscripts/ACS scripts/etc here.

Re: [Zsript] Very simple weather effects

Postby SanyaWaffles » Wed Oct 21, 2020 5:06 pm

For some reason it was working... except the rain itself wasn't appearing. I could hear the rain and thunder, but the rain itself wasn't visible.

That was very peculiar.

I might include this in a project, however I wanted to report the fact it seems the rain, at least for me, isn't appearing. I didn't change anything related to the graphics so I dunno what's happening there.
User avatar
SanyaWaffles
Certified Heretic and Grill Champion
 
Joined: 25 Apr 2013
Location: Disappointment Island
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
Operating System: Windows 11
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [Zsript] Very simple weather effects

Postby Hidden Hands » Thu Oct 22, 2020 7:10 am

Awesome. Thank you so much. LZDoom seems to be saving my life a lot lately.
User avatar
Hidden Hands
Cherub
 
Joined: 20 Sep 2016
Location: London, England
Discord: VGCtm
Operating System: Windows Vista/7/2008 32-bit

Re: [Zsript] Very simple weather effects

Postby Apeirogon » Thu Oct 22, 2020 10:49 am

SanyaWaffles wrote:For some reason it was working... except the rain itself wasn't appearing. I could hear the rain and thunder, but the rain itself wasn't visible.

That was very peculiar.

I might include this in a project, however I wanted to report the fact it seems the rain, at least for me, isn't appearing. I didn't change anything related to the graphics so I dunno what's happening there.


I added CVAR to disable droplets completele (if it slowdown really low end PC/bugging peoples) and after testing forgot to turn it off. Redownload archive from Github, or open cvarinfo file and change
Code: Select allExpand view
server bool CWE_weather = false;

line to
Code: Select allExpand view
server bool CWE_weather = true;

Typing "CWE_weather true" in console would do same thing, but it only change ini file cvar value, not mod default.
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: [Zsript] Very simple weather effects

Postby SanyaWaffles » Thu Oct 22, 2020 7:31 pm

That fixed it. Thanks.
User avatar
SanyaWaffles
Certified Heretic and Grill Champion
 
Joined: 25 Apr 2013
Location: Disappointment Island
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
Operating System: Windows 11
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [Zsript] Very simple weather effects

Postby Deon » Sat Oct 30, 2021 9:00 pm

I've found a problem with HUB maps. The way it's setup now, each time you return to a map, it "adds" on top of what is already there.

For myself, this is how I fixed it.

Spoiler:


As you can see, I've added two booleans "weather_activated" and "world_loaded" to main_event.zs that make it fire off only once per map.
Maybe not elegant, but works, and I can re-enter the same map 100 times now without crashing.

Another setting/CVAR to disable Fade change would be great. I had to find it and comment it out, but again only for those who are too lazy/dont know how to find FADE change :).
I've also replaced droplets with vertical lines to my liking, and now it fully satisfies my needs.



Thank you very much!
User avatar
Deon
 
Joined: 08 Oct 2020

Re: [Zsript] Very simple weather effects

Postby Apeirogon » Sun Oct 31, 2021 4:00 am

Didnt test it in hubs.
I changed the way it works, now it should work properly.

About fade, I think it have more sense to just add new option to weather definition. Wait here til I made it.
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: [Zsript] Very simple weather effects

Postby Deon » Sun Oct 31, 2021 2:46 pm

I have observed a strange behavior of the rain.

At one point of the map it's just "cut off", like it only pours in specific square.
It cuts off in a middle of a sector, and moving map around doesn't move where it's cut off. Can you give me a hint at what could be causing it?

P.S. It actually looks more like a specific rectangle doesn't get rain. It has sky texture, so I dont understand why.

Here's a demonstration:
User avatar
Deon
 
Joined: 08 Oct 2020

Re: [Zsript] Very simple weather effects

Postby Apeirogon » Fri Nov 05, 2021 3:41 am

I know it sounds crazy, but I cant run video in Gzdoom to check whats wrong with this particular map spot. That one of the tabooed programmer powers that could easily destroy 1/3 part of a world.
So, can you post/send me in pm this map so I could run it, instead of breaking fragile balance of a universe.
User avatar
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017

Re: [Zsript] Very simple weather effects

Postby Deon » Fri Nov 05, 2021 9:56 am

No worries, I was just curious if you know what could be causing similar effects in advance.
Please find the PK3 here, it's for the latest GZDoom/Doom2.
https://www.mediafire.com/file/phz4nqxz ... n.pk3/file
User avatar
Deon
 
Joined: 08 Oct 2020

Previous

Return to Script Library

Who is online

Users browsing this forum: No registered users and 0 guests