Game>FX folder.... but for the compilation, I do what ? In the help, no " inclu"> [fxGrassReplicator v.1.01] Install ? | Torque Game Engine | Forums | Community | GarageGames.com

Game Development Community

[fxGrassReplicator v.1.01] Install ?

by Lecourtier Benoit · in Torque Game Engine · 04/21/2005 (11:14 am) · 6 replies

Hello everybody !
( i am a french guy, so sorry for my poor language ! )

I download Fxgrassreplicator.
I add 'fxGrassReplicator.cc' and 'fxGrassReplicator.h' " Engine>Game>FX folder....
but for the compilation, I do what ?

In the help, no " include" to add...

How install ?

Thanks !!!!! !!!!

#1
04/21/2005 (11:22 am)
What compiler are you using?
#2
04/21/2005 (11:26 am)
Visual C++ 6.0 :-)
#3
04/21/2005 (11:55 am)
In the help :

Quote:
- Add both source files to the Torque engine VC project. 'fxGrassReplicator.cc' and 'fxGrassReplicator.h'.

- Put the function in /example/common/editor/ObjectBuilderGui.gui [around line 458] ...

function ObjectBuilderGui::buildfxGrassReplicator(%this)
{
%this.className = "fxGrassReplicator";
%this.process();
}

But, how complied ?
#4
04/21/2005 (12:37 pm)
I don't use VC++, so I don't know how you add files to a project there, but the way it ends up in torque is in a file called targets.torque.mk in the engine directory. If you open that up and find the section called:

SOURCE.GAME.FX=\

you can put grass replicator files at the end of that list.

That should do it, unless VC++ gets confused. There should be an easy way to tell VC++ to add files to the project, that's what you really should be doing.
#5
04/21/2005 (11:43 pm)
Chris is naturally referring to the GCC build process. VC++ maintains its own project files, and does not interact with the Gnu tool chain or any of the .mk files.

If you did the first step, "Add both source files to the Torque engine VC project. 'fxGrassReplicator.cc' and 'fxGrassReplicator.h'." just tell VC6 to compile and you should be set.
#6
04/22/2005 (8:30 am)
Thanks ! :-)