Game Development Community

Add Rain and Snow to starter.fps

by Billy L · in Torque Game Engine · 08/19/2004 (4:05 am) · 29 replies

Hi all getting started guys !

This is how you add rain or snow to the starter.fps


1. copy from example/demo/data the environment folder to
example/starter.fps/data/

2. copy from example/demo/data/sound the environment folder to
example/starter.fps/data/sound/

3. copy from example/demo/server/scripts the environment.cs to
example/starter.fps/server/scripts

4. In example/starter.fps/server/scripts add this line to game.cs
exec("./environment.cs");

5. for the snow make a new snow texture, place the texture in
the example/starter.fps/data/environment folder

6. add this code in enviroment.cs
datablock PrecipitationData(Snow)
{
   soundProfile = "";

   dropTexture = "~/data/environment/snow";
   splashTexture = "~/data/environment/water_splash";
   dropSize = 0.45;
   splashSize = 0.2;
   useTrueBillboards = false;
   splashMS = 250;
};

Try it out !
Hope this helps !

-Billy
Page«First 1 2 Next»
#21
11/30/2004 (11:27 am)
I did exactly what was written by Billy above, and it worked fine. I installed the SDK from scratch and did everything that he wrote.

What do you mean by the game crashes? What is the error message that you get?
#22
11/30/2004 (11:41 am)
I wish it did work believe me :) I downloaded torque last night from my garage, and made all of the changes he outlined here. game crashes trying to load the mission objects, if i remove the rain problem solved.
#23
11/30/2004 (12:09 pm)
Again: what is the error message? Send me an email, and I'll send you my working starter.fps folder.
#24
11/30/2004 (12:16 pm)
Also, look in the console.log and see if it tells you anything more.
#25
12/01/2004 (5:46 am)
Ok so i stopped trying to put it into MY demo, and instead put it into the starter.fps. Now it works 100%. So my question is why on earth can i not get it working in MY version :)

There is no error in the console.log it simply crashes loading up the objects. So i can make it work in starter.fps, but if i move it to MY game folder which was made using tutorial base it wont work. I have tried copying over most the files from starter.fps and still no luck.
#26
12/01/2004 (5:59 am)
Double check paths Eman !
I bet there is a wrong spelling or something !
#27
12/01/2004 (6:05 am)
Yeah im looking it over as we speka Billy. i have it now so i can place rain, and it shows white boxes. If i then quit and restart the mission it crashes. I am snooping through to see wth is going on. Starting to get severely annoying.
#28
12/01/2004 (8:20 am)
I hope you not using dml files because they are not working with the new
precipitation.
#29
09/07/2005 (12:58 pm)
Ok, I know this post is from about a year ago, but I'm trying to get snow to work.

My question is with the 'Dropsize', does this determine how big to make the snow flakes in the texture?

If not, how do I figure out how big I need to make my flakes and how to space them?

Thanks for any info!
Steve
Page«First 1 2 Next»