[XP] Ryex's Dynamic Weather

Started by Ryex, November 19, 2010, 08:22:14 pm

Previous topic - Next topic

Ryex

November 19, 2010, 08:22:14 pm Last Edit: May 27, 2012, 12:24:21 am by Ryex
Ryex's Dynamic Weather
Authors: Ryex
Version: 1.0
Type: Weather Effects
Key Term: Custom Environment System



Introduction

This is something I've been wanting to make since I created the DEE and now I have.
The script allows the placement of Screen Tone sources and Weather sources in much the same way as my dynamic sounds script dose.
walk close to a source and the effect gets stronger and vise versa


Features


  • Creates Dynamic screen tint effects
  • Creates Dynamic weather effects
  • Can be easaly set up through events
  • Sources and pieces can be disabled
  • compatable with MAWS, Zeros Advanced weather, and Compleate Climate Control System



Screenshots

NA


Demo

Mediafire


Script

get the script here
https://docs.google.com/leaf?id=0B0KLI9M5vfiOOWM3YmQ4NDAtNzA0YS00YTNiLWIwZmMtNWQzZWI2ZmZiMDM5&hl=en&authkey=CL6u2bkN

NOTE: this script requires DEE 1.61 or above!
http://forum.chaos-project.com/index.php?topic=4809.msg89394#new



Instructions

place the DEE ABOVE Dynamic Weather
place MAWS ABOVE Dynamic Weather
place Zero Advance Weather ABOVE Dynamic Weather
place CCTS ABOVE Dynamic Weather

How to use the system: ShowHide

more that one source can be placed in an event just make sure that the comments are on the first event page, each source is in it's own comment, and that there are no event commands other than comments between the source comment and the top of the page.

to place sources make a comment at the top of the first page of an event. inside the comment place
a weather source
\dee[weather|Source_shape|<width|height>|power|type|weather_power|variation|source_name|piece_name]


ie:
\dee[weather|point|480|1|9|0|weathersource1|1]

this would make a weather source with a point shape that extended for 480 pixels. creating type 1 weather with a max power of 9. if your using MAWS or Zero Advanced Weather it would call variation 0 (even if you NOT using the scripts you STILL need the variation setting but it doesn't matter what it is as long as it is a number, I say put it at 0)  the source would be named 'weathersource1' and the event piece would be named '1'

\dee[weather|hstrip|480|160|1|9|0|weathersource1|1]

this would make a weather source with a hstrip shape that extended for 480 pixels to the right and diminished for 160 pixels in all directions. creating type 1 weather with a max power of 9. if your using MAWS or Zero Advanced Weather it would call variation 0 (even if you NOT using the scripts you STILL need the variation setting but it doesn't matter what it is as long as it is a number, I say put it at 0)  the source would be named 'weathersource1' and the event piece would be named '1'

\dee[weather|vstrip|480|160|1|9|0|weathersource1|1]

this would make a weather source with a vstrip shape that extended for 480 pixels down and diminished for 160 pixels in all directions. creating type 1 weather with a max power of 9. if your using MAWS or Zero Advanced Weather it would call variation 0 (even if you NOT using the scripts you STILL need the variation setting but it doesn't matter what it is as long as it is a number, I say put it at 0)  the source would be named 'weathersource1' and the event piece would be named '1'

\dee[weather|box|480|480|160|1|9|0|weathersource1|1]

this would make a weather source with a box shape that extended for 480 pixels to the right and 480 pixels down and diminished for 160 pixels in all directions beyond that box. creating type 1 weather with a max power of 9. if your using MAWS or Zero Advanced Weather it would call variation 0 (even if you NOT using the scripts you STILL need the variation setting but it doesn't matter what it is as long as it is a number, I say put it at 0)  the source would be named 'weathersource1' and the event piece would be named '1'

for a dynamic weather source (a weather source that hovers over an event)
\dee[dweather|radius|power|type|weather_power|variation|source_name|piece_name]


ie:
\dee[dweather|1|160|1|9|0|dweathersource1|1]

this would make a weather source with a point shape that extended at full power for 1 pixel and lessening power 160 pixels beyond that. createing type 1 weather with a max power of 9. if your using MAWS or Zero Advanced Weather it would call variation 0 (even if you NOT using the scripts you STILL need the variation setting but it dosn't matter what it is as long as it is a number, I say put it at 0).  the source would be named 'dweathersource1' and the event piece would be named '1'

for a tone source
\dee[tone|Source shape|<width|height>|power|red|green|blue|gray|source_name|piece_name]


ie:
\dee[tone|point|160|-20|-20|-10|10|tonesource1|1]

this would make a tone source with a point shape that extended for 160 pixels. it would add -20 to the red -20 to the green -10 to the blue and 10 the the gray of the map tone  the source would be named 'tonesource1' and the event piece would be named '1'

for a dynamic tone source (a tone source that hovers over an event)
\dee[dtone|radius|power|red|green|blue|gray|source_name|piece_name]


ie:
\dee[dtone|1|160|-20|-20|-10|10|dtonesource1|1]

this would make a dynamic tone source with a point shape that extended for i pixel and diminished for 160 pixels. it would add -20 to the red -20 to the green -10 to the blue and 10 the the gray of the map tone  the source would be named 'dtonesource1' and the event piece would be named '1'

if a source name has already been used for a source of the same type a piece will be added to the already created source

Shapes
these are all the shapes you can use

Point - a pixel in the center of the map square will be treated at the source width or height parameters are not needed (don't use them, it will cause errors)

Hstrip - a strip of pixels centered in the middle of the map square that extends to the right from the left side of the map square acts as the source. The width parameter is required and defines how far to the right the line extends (use only width, adding height will cause errors)

Vstrip - a strip of pixels centered in the middle of the map square that extends down from the top of the map square acts as the source. The height parameter is required and defines how far down the line extends   (use only height, adding width will cause errors)

Box - a box who's width and height are defined by the width and height parameters acts as the source (use both width and height)

Script calls:

if you use the event comand to change the screen tone on a map with a tone source neither will work correctly. as such there is a script call to change the base tone of a map with a dynamic tone source. DO NOT use it on a map without out a tone source.
D_W_E.chage_base_tone(r, g, b, gr, duration)




to disable an entire source
D_W_E.disable_source(type, source_name)

type is either 'tone' or 'weather'
source_name is the name of the source in '' or "" (string form)

ie:
D_W_E.disable_source('weather', 'weathersource1')

would disable all pieces of a weather source named 'weathersource1'

to enable an entire source
D_W_E.disable_source(type, source_name)

exactly like about but enable all the pieces of a source

to disable a piece of a source
D_W_E.disable_piece(type, source_name, name)

type is either 'tone' or 'weather'
source_name is the name of the source in '' or "" (string form)
and name in the name of the name of the piece in string form

ie:
D_W_E.disable_piece('weather', 'weathersource1', '1')

would disable piece '1' of a weather source named 'weathersource1'

to enable a piece of a source
D_W_E.enable_piece(type, source_name, name)

exactly like above but enables a source piece




Compatibility

The system is compatibil with MAWS, Zero Advanced Weather, and CCTS
the are NO other possible conflicts known


Credits and Thanks


  • Ryex



Author's Notes

if you have problems (either setting it up or errors) post here

ENJOY!
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Subsonic_Noise

Holy fuck yes, radiation simulation.
I love you, have my babies and all.

Ryex

you have a radiation weather effect?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Subsonic_Noise

I will create it now that my idea is actually possible.

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

MarkHest

January 19, 2014, 11:45:13 am #5 Last Edit: January 20, 2014, 08:03:57 am by MarkHest
Hai! So I was testing out some scripts, specifically Ryex's Dynamic Weather and ForeverZer0's Advanced weather and I was met with some problems. (I even tried with MAWS and got the same problem)

The problem I am getting is that when triggering a weather with Ryex's script in the game the weather stops after 5 frames. It just stops :???:
Both scripts calls from Zer0's script and the normal event command to make weather stops after 5 frames of starting. Any idea what could be causing it?

I only used these scripts for testing


  • Modified Advanced Weather System

  • Dynamic Effects Engine

  • Ryex's Dynamic Weather Effects

  • Ryex's Dynamic Sounds



And placed them in that exact order.

EDIT: New discovery. Ryex's dynamic sound does exactly the same with BGS. It start for a few frames, then stops.