Game Development Community

Can't add weather effects

by Joe Doyle · in Torque Game Engine · 10/06/2003 (12:19 pm) · 11 replies

I recently downloaded the latest HEAD and checked out the new Demo (very cool btw).

In the demo, I see that the rain, snow, and lightning effects work. I'm assuming they always have, I just never played around with them. I tried adding any of those effects, but the editor seems to be broken. I get the prompt for a name and type, depending on lightning or rain, but nothing gets added to my mission file or in the editor.

Is the editor broken and these effects need to be added by hand or am I missing something?

Joe

#1
10/06/2003 (12:35 pm)
Did you define the Precipitation DataBlocks?
#2
10/06/2003 (2:09 pm)
Where do I need to do that? I didn't know that I needed to pre-define anything.
#3
08/18/2004 (6:11 pm)
I'd love to heaer more on this
#4
08/19/2004 (3:03 am)
Ok here it is

From the demo folder copy the below folder and the files in them to the starter.fps folders.

demo/data/environment
demo/data/sound/enviroment
demo/server/scripts/environment.cs

add this line in the starter.fps/server/scripts/game.cs
exec("./environment.cs");

Short description but hope it helps !
#5
08/19/2004 (7:04 am)
Lovely feature..btw, any idea why (on the plain demo) the rain crashes the sistem (after restarting the mission) - same error on 2 computers.
#6
08/19/2004 (10:37 am)
Are you talking about head version or the demo version of the engine ?
#7
08/25/2004 (5:21 pm)
How do I add the rain after doing all that?
#8
09/13/2004 (5:20 am)
First make sure you deleted old game.cs.dso file, then if it's still doesn't work recompile the engine.
#9
11/30/2004 (10:55 am)
I defined them, got it so i can add the rain, but when i do, and move it up into the sky, nothing shows. Then when i reload to see if that helps it crashes loading the objects. Denis I did as you suggested and deleted teh gam.cs.dso hoping that would help but still crashing.
#10
11/30/2004 (12:01 pm)
Check out this resource, it has a working weather system that you should just be able to drop in.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6107
#11
11/30/2004 (12:06 pm)
Great link Mark, looks promising. I am going to give it a go!