More Realistic Stormy Weather

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Reish Vedaur
Sergeant
Posts: 64
Joined: Sat Apr 26, 2003 10:36 pm
Location: Illinois
Contact:

More Realistic Stormy Weather

Post by Reish Vedaur »

I was wondering something... when I have my map raining and what-not, the lightning that shows up is blue. Why is that, and how can I get it to be either white or very light-pink? (about like this; I know that's faint, but it's there)
My warning meant nothing. You're dancing in quicksand. Why don't you watch where you're wandering? Why don't you watch where you're stumbling? You're in knee-deep and going in, and you may never come back again.
~Tool.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

i think u have to edit the weather.scr and change the color of the lightning.
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Or it may just be your monitor...
Image
User avatar
Reish Vedaur
Sergeant
Posts: 64
Joined: Sat Apr 26, 2003 10:36 pm
Location: Illinois
Contact:

Post by Reish Vedaur »

It's definitely not my monitor; the color is correct in all the other maps included with MOHAA/SH.
My warning meant nothing. You're dancing in quicksand. Why don't you watch where you're wandering? Why don't you watch where you're stumbling? You're in knee-deep and going in, and you may never come back again.
~Tool.
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

I had the same problem, and made a post about this a while back. Un-fortunatly I never solved it !!!

As far as I'm aware, although it looks blue on your computer it'll be fine on everyone else's. I noted this when playing a user-made map, I sore the lighting as blue, but other people had no trouble.
User avatar
Reish Vedaur
Sergeant
Posts: 64
Joined: Sat Apr 26, 2003 10:36 pm
Location: Illinois
Contact:

Post by Reish Vedaur »

That makes no sense... only certain people playing user-made maps have the problem, but under no other circumstances?
My warning meant nothing. You're dancing in quicksand. Why don't you watch where you're wandering? Why don't you watch where you're stumbling? You're in knee-deep and going in, and you may never come back again.
~Tool.
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Reish Vedaur wrote:That makes no sense...
You don't have to tell me that !
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post by panTera »

just a wild guess;
could it be that the lightning colour defaults to blue? Are you useing farplane fog and if so what values did you use?

this part comes from the m5l1a.scr:
level.farplane = 3500
level.farplanecolor = (0.333 0.333 0.359)
exec global/weather.scr
User avatar
Reish Vedaur
Sergeant
Posts: 64
Joined: Sat Apr 26, 2003 10:36 pm
Location: Illinois
Contact:

Post by Reish Vedaur »

Hrm... I'm not using farplane... Are you suggesting I try it? Cuz it'd be fairly hard, considering the size of my maps (one of them is just a mid-sized muddy field with walls around it).
My warning meant nothing. You're dancing in quicksand. Why don't you watch where you're wandering? Why don't you watch where you're stumbling? You're in knee-deep and going in, and you may never come back again.
~Tool.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

This is the part of the weather.scr that does the flash
flash:
setcvar "r_fastsky" "1"
$world farplane_color (0.9 0.9 0.9)

for (local.i=1;local.i<level.weatherFs+1;local.i++)
level.weatherF[local.i] show

end

unflash:
setcvar "r_fastsky" "0"
$world farplane_color level.farplane_color

for (local.i=1;local.i<level.weatherFs+1;local.i++)
level.weatherF[local.i] hide

end
it changes farplane_color to (0.9 0.9 0.9) then back could it be that if you have no farplane_color it causes a problem? ( 1 1 1 ) is white so (.9 .9 .9 ) must be almost white maybe play around with different farplane_color values if it is a rainy day try a gray farplane_color like said above

level.farplane_color = (0.333 0.333 0.359)
User avatar
Reish Vedaur
Sergeant
Posts: 64
Joined: Sat Apr 26, 2003 10:36 pm
Location: Illinois
Contact:

Post by Reish Vedaur »

Alright, most excellent.

Now one last, quick, fairly silly question: Where would I put the modified weather.scr in my .pk3?
My warning meant nothing. You're dancing in quicksand. Why don't you watch where you're wandering? Why don't you watch where you're stumbling? You're in knee-deep and going in, and you may never come back again.
~Tool.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

don't modify the weather.scr just set a farplane_color in your script . As a matter of fact if you don't set a farplane_color then farplane_color is nil or 0 0 0 so you say the sky is blue could it be for the couple of sec between the flash and the resetting of the farplane_color what you are seeing is black because the farplane_color was not set in your map script ?

$world farplane_color level.farplane_color

if level.farplane_color is not set then it is 0 or black
User avatar
Reish Vedaur
Sergeant
Posts: 64
Joined: Sat Apr 26, 2003 10:36 pm
Location: Illinois
Contact:

Post by Reish Vedaur »

...
Oh...
heh.. duh... <hits himself>

Okay, to test your theory I got on my highest FPS map, "Big Plain Field," and watched the sky very, very closely. No black. Just blue. About like this, as if that matters.

At any rate, then I changed the farplane_color to .333 .333 .359 (it wasn't set beforehand, obviously), and the lightning still looked the same.

Then I used farplane_color / 1.0 1.0 1.0 and still nothing changed.

.. I realllllllllly hope I'm not doing something ridiculously stupid.

Although I did just realize, changing the farplane_color for the map shouldn't do anything since the weather.scr replaces it, not adds to it.
My warning meant nothing. You're dancing in quicksand. Why don't you watch where you're wandering? Why don't you watch where you're stumbling? You're in knee-deep and going in, and you may never come back again.
~Tool.
Post Reply