Page 1 of 2

How do I use the Weather in 227?

Posted: Fri Apr 04, 2008 3:01 am
by KillerSkaarj
Not sure this is the right place, but since this thread doesn't have to do with bugs in 227 I'll just post it here and let you guys decide.

Alright guys, I REALLY want to know how to use the Weather simulators in 227. I recall Raven saying he was going to make a demo map of the weather but he apparently (as far as I know) never did. Can anyone please help me out here? I really want to screw around with snow and rain etc. in Unreal.


EDIT: And now would be the time that I found out about DMRetrospective. Lock plzkthx

Re: How do I use the Weather in 227?

Posted: Fri Apr 04, 2008 7:19 am
by Raven
http://www.sendspace.com/file/yvhtgq - test map.

Re: How do I use the Weather in 227?

Posted: Fri Apr 04, 2008 1:39 pm
by Buster
There's a script for rain effects that can be added to a map ...

http://www.celticwarriors.net/Downloads/Mods/Various/rain-fx.zip

Diehard's hosting it at CW. I've tested it with 225F and Gold. It works great for both versions, so it should work with 227 too. You'll have to figure out all the settings yourself, though. It didn't have instructions with it, when I found it "somewhere" around 3 or 4 years ago. But it's the only one I did find that worked with both 225F and Gold. When I did the initial testing of it I should've taken notes on its settings. Oh well, sorry.

:)

As for other weather effects, I'm quite sure that the rain can be turned into snow. Lightning and wind (etc) are already a part of Unreal 1, and so they don't need a script.

Re: How do I use the Weather in 227?

Posted: Fri Apr 04, 2008 10:14 pm
by KillerSkaarj
Huh wha? Unreal 1 has lightning AND wind? I know about the lightning, but wind? Also, Raven, that map does NOT help me. Please, someone, just write a little tutorial on how to use the weather actors for us who are utterly confused.

Re: How do I use the Weather in 227?

Posted: Sat Apr 05, 2008 1:34 am
by PRIMEVAL
I'm thinking Wind is the soundeffect?

Re: How do I use the Weather in 227?

Posted: Sat Apr 05, 2008 1:45 am
by Buster
Wind: sound effects, use of visuals in the skybox (etc), and clever use of "horizontal gravity" (if it's strong enough to push you, that is).

Try things out. Experiment. The key is not to simulate weather as such, but trick the player's eyes into thinking it's in the map.

Re: How do I use the Weather in 227?

Posted: Sat Apr 05, 2008 9:24 am
by Raven
I'll write a little tut today. And yes Wind is sound effect, but it can trigger/untrigger events when wind starts/stops. This gives ability to use UIForce and affect particles.

EDIT:
I'm in the middle of writing a tut. It'll be quite big :)

EDIT2:

Damn, I found two bugs (both in rain simulation code). One in UIWeatherSimulator.uc I forgot to add two lines (which stops rain :P). Another in SimulatorAtmospheric.uc (simulated disappear :). Other then that everything works good.

Re: How do I use the Weather in 227?

Posted: Sat Apr 05, 2008 9:53 am
by GreatEmerald
Yeap, best map to look at for pre-227 weather effects is Bluff Eversmoking, before entering buildings.
And maybe 227 has something new?

Re: How do I use the Weather in 227?

Posted: Sat Apr 05, 2008 12:03 pm
by Raven
NOTE: I found two bugs in current release (both in rain simulation code). One in UIWeatherSimulator.uc I forgot to add two lines (which stops rain). Another in SimulatorAtmospheric.uc (simulated disappear). Other then that everything works good. Here's tut how to create full simulation. You can also create continous storm with realistic lightnings in skybox and tons of other effects.

We're going to make full simulation with all options enabled. First place one UIFX->UIWeather->UIWeatherSimulator actor:

Group Weather_Storm:

bUseStorm - enables storm simulation on map.
bAffectLight - if true will affect UIWeatherLight and change it's brightness to StormBrightness
StormBrightness - light brightness in storm
StormProbability - probability to create storm (1.0 - 100%)
StormTime - in seconds
MinTimeBetweenStorms - re-trigger time for storm
StormEvent - event called when storm begins

Group Weather_RainAndSnow:

bUseRain - enables rain simulation on map
RainProbability - probability to trigger rain (1.0 - 100%)
RainTime - in seconds
MinTimeBetweenRains - re-trigger time for rain
RainEvent - event called when rain begins/ends
bRainOnlyInStorm - if true rain can be triggered only while storm

In group Weather_Storm change bUseStorm and bAffectLight to true. Play with StormBrightness, probability and other options in this group (chose values that most suits to your map). Then go to group Weather_RainAndSnow. Set bUseRain to true. Then in group Events, set Event to Simulation1. Play with other options and we're done with this actor.

Place as many UIFX->UIWeather->UIWeatherLight actors as you need:

Group UIWeatherLight:

bSmoothFadeLight - light will smoothly fade to StormBrightness value (form UIWeatherSimulator). This is visible only in SP game. In Multi acts like false.
LightFadingSleep - describes how fast light fades out/in

In Events change it's tag to Simulation1. Remember that in storm all those lights will be a lot darker.

Now place UIFX->UIWeather->UIWeather_Lightning->UILightningTrigger, set it's Tag to Simulation1, Event to Simulation1_Lightning and bSlave (in group UILightning_Trigger) to true

Group UILightningTrigger:
bSlave - if true, will be controlled by UIWeatherSimulator. If false it'll trigger lightning effects all the time. It's good to set it to false if we want to have only storm on map without any simulation stuff.

Warning: there can be only one lightning trigger on map.

Place UIFX->UIWeather->UIWeather_Lightning->UILightningSound and set it's Tag to Simulation1_Lightning. Configure

Group UILightningSound:

LightningSound - lightning sound (used if bPlayRandomSound is false)
LightningVolume - lightning sound volume
LightningbNoOverride - if true sound will be played only after current one (if playing) ends
LightningRadius - lightning sound radius
bPlayRandomSound - if true random sound from array 'LightningSounds[16]' will be played
LightningSounds[16] - lightning sounds (random play)
numSounds - number of sounds in the LightningSounds array

Place this actor whenever player has to hear lightning sound.

Place UIFX->UIWeather->UIWeather_Lightning->UILightningEffect and set it's Tag to Simulation1_Lightning. Configure it like standard light. Remember that it has to be very bright to give lightning effect nautural look. Set it's light type to LT_None after you're finished.

You can place one more thing to make your storm cooler. Go to UIFX->UIBeam->UIBeamEmitter->UIThunder set it's tag to Simulation1_Lightning and initial state to ThunderRandom and

Group Beam:
bActive - is beam emittera active - change to true

Group Beam_Look:

BeamDrawScale - beam draw scale - set to 0.500000
BeamSkin - beam skin - I chose Texture'Detail.metal'
BeamStyle - draw style - set it to STY_Translucent

Group Beam_Main:

BeamSize - total beam size (in uu, if SizingType is ST_BySize) note that final beam size is rounded
BeamSegments - number of segments in beam (if SizingType is in ST_BySegemnts)
SizingType - sizing type:
ST_BySize - BeamSize defines maximum beam size
ST_BySegments - BeamSegments describes maximum beam size
BeamSprayFactor - larger it is - more strange beam shape is :) - change it to 0.100000
bKeepShape - should beam have one shape (once beam is created it'll not change). - change to true
EffectArea - effect area in which beam will be spawned (random place in that area) - change it to most suitable value
BeamUpdateTime - beam update time (lower value faster updates) - leave as it is

Group Thunder:

ThunderLifeTime - how long thunder will be visible - change it to 1.100000
RandomFactor - additional random factor. Keep it small - change it to 0.9

Use it whenevery you feel it'll look good. In my opinion The best would be SkyBoxes. Remember to point it down :).

We're done with Storm. Now let's play around with rain/snow/whatever :).

Place UIFX->UIParticleSystem->UIParticleEmitter->SimulationAtmospheric and create you own preset or use UIFX->UIParticleSystem->UIParticleEmitter->SimulationRainEmitter. Set it's Tag to Simulation1. Do not overuse it since too much paricles can slow game.

Place UIFX->UIWeather->UITriggeredRainSound, configure group RainSound and set it's Tag to Simulation1. This actor must be whenever player must hear rain sound.

Wind

You can alos add wind. Add UIFX->UIWeather->UIWind, configure group UIWindSound (WindTime and SleepWindTime) and set it's Event to Simulation1_Wind.

Place UIFX->UIWeather->UIWindSound and configure group UIWindSound (LoopWindSound, StartWindSound and StopWindSound). Set it's Tag to Simulation1_Wind. Place this actor anywhere you want playr to hear wind. Keep in mind, that this actor can trigger actors when wind begins and untrigger when stops. So you can place UIFX->UIParticleSystem->UIForce change it's Initial state to TriggerControl, Tag to Simulation1_Wind and configure it, so it'll affect particles (like rain/snow) when wind blows. It's also possible to create special type of plants to move when wind blows.

Re: How do I use the Weather in 227?

Posted: Sat Apr 05, 2008 1:03 pm
by Buster
Thanks Raven !! :)

Re: How do I use the Weather in 227?

Posted: Sat Apr 05, 2008 8:54 pm
by KillerSkaarj
THANK YOU RAVEN!!! I have always had a dream of making a level with snow and footprints. And also a level that's dark, rainy and windy.

Speaking of storms, we had a thunderstorm yesterday.

Re: How do I use the Weather in 227?

Posted: Sun Apr 06, 2008 5:30 pm
by KillerSkaarj
Alright, now I've got another problem. There's no rain. Instead there's a sort of ripple where I placed the rain actor. I did everything the tutorial told me to do, but I just don't know what's wrong.

Re: How do I use the Weather in 227?

Posted: Sun Apr 06, 2008 7:39 pm
by Raven
Can you send me sshot ??.

You have to change emitters EffecArea.

Re: How do I use the Weather in 227?

Posted: Sun Apr 06, 2008 9:59 pm
by Flunders
was playing around with the test map, the rain looks amazing! The wind however when it starts and stops its just instant... doesn't sound very realistic... any way of making it die down etc instead of instant off/on.

Re: How do I use the Weather in 227?

Posted: Tue Apr 08, 2008 1:05 pm
by Buster
Idea for making the wind "die down."

Have a series of winds, one that triggers the next. Softer than stronger, etc. Other neat things can be included during each segment of the wind.

Re: How do I use the Weather in 227?

Posted: Wed Apr 09, 2008 12:53 am
by Shivaxi
Here...i made the first part of Nyleve all stormy...using everything except for wind (cause theres already wind sounds in the level) and the particle blower (cause i couldnt get that working :/)

[url]http://www.freewebs.com/shivaxi/NyLeveStorm.unr[/url]

If that map gives you low FPS, try this one instead

[url]http://www.freewebs.com/shivaxi/NyLeveStorm2.unr[/url]

Oh...also Raven...the wind and windsound actor's are not defualtly bhidden...might wanna set that for 227e :P

Re: How do I use the Weather in 227?

Posted: Wed Apr 09, 2008 1:45 am
by Flunders
Very nice!  Lightning stikes looks amazing!

But yeah, I've got a decent computer and it managed to slow down.. had to use the second version.  I assume its because of the rain particals?

EDIT: actually i take that back, was using the dx9 renderer before, switched to opgl and it was smooth

Re: How do I use the Weather in 227?

Posted: Wed Apr 09, 2008 2:05 am
by Shivaxi
Very nice! Lightning stikes looks amazing!

But yeah, I've got a decent computer and it managed to slow down.. had to use the second version. I assume its because of the rain particals?

EDIT: actually i take that back, was using the dx9 renderer before, switched to opgl and it was smooth
lol...opengl is so much smoother :)

But it does also have to do with the rain particles...the second version lowers them a bit :P

and yeah im not actually sure how i achieved those lightning strikes...i didnt use Raven's settings...i just messed around with it till it looked the way i wanted it to :)

Re: How do I use the Weather in 227?

Posted: Thu Apr 10, 2008 12:00 am
by KillerSkaarj
Sweet! Thanks Shiv! I can't wait to see it.

Re: How do I use the Weather in 227?

Posted: Thu Apr 10, 2008 2:11 am
by PRIMEVAL
That's just awesome. The first clap of thunder actually startled me, lol.

Re: How do I use the Weather in 227?

Posted: Thu Apr 10, 2008 4:26 pm
by Shivaxi
hehe :)

Since you guys are so fond of this...i went ahead and did something totally crazy :P

This new level here is now raining lava! ;D

[url]http://www.freewebs.com/shivaxi/NyLeveLavaStorm.unr[/url]

Things to look for in this level:

1. Lightning color changed, now gives off light as well.

2. Lava drops WILL hurt you!

3. Lava drops leave smoke puff when hitting ground.

4. Lightning leaves black burn marks where it hits

5. Hit the trigger in the beginning and watch the group of Nali's and Cows...lightning does 1000 damage to any actor it hits :D

Re: How do I use the Weather in 227?

Posted: Thu Apr 10, 2008 6:24 pm
by Jâçkrâßßit
shviaxi, you mind if I redo the lighting in this map to make it more "demonic" and "dark"?

I'm thinking maybe darkening the map so that you may want a searchlight at the beginning. I would also change the water to lava at the bottom.

Re: How do I use the Weather in 227?

Posted: Thu Apr 10, 2008 6:34 pm
by Jâçkrâßßit
here is a pic:

[img]http://img245.imageshack.us/img245/9383/hellonnyleveer8.png[/img]

Re: How do I use the Weather in 227?

Posted: Thu Apr 10, 2008 6:39 pm
by Shivaxi
nice....and no i dont mind at all...i was just freely making an example of the Particle Emitter and what it can do so people can get a better idea of how it works and how to use it...i freely give these maps to anyone who would like to edit or build from it ;)

Re: How do I use the Weather in 227?

Posted: Thu Apr 10, 2008 9:24 pm
by Flunders
looks good, looking forward to checking it out.