FXgrassreplicator
by arteria3d · in Torque Game Engine · 11/18/2004 (10:05 am) · 9 replies
Hi,
I have just done all the alterations to allow me to use the FXGrass replicator. However when i compile i get this error. The docs were not specific as to where i put the two files that came with the docs - i simply put them in VC6 engine, and included them - they seem to work fine - but as i say i get this error
Anyone know why??
Thanks
Steve
I have just done all the alterations to allow me to use the FXGrass replicator. However when i compile i get this error. The docs were not specific as to where i put the two files that came with the docs - i simply put them in VC6 engine, and included them - they seem to work fine - but as i say i get this error
Anyone know why??
Thanks
Steve
About the author
Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com
#2
C:\Torque\SDK\vc6\fxGrassReplicator.cc(29) : fatal error C1083: Cannot open include file: 'twSurfaceReference.h': No such file or directory
I have searche for this file and it doesnt exist
Stevie
11/18/2004 (12:23 pm)
The error says C:\Torque\SDK\vc6\fxGrassReplicator.cc(29) : fatal error C1083: Cannot open include file: 'twSurfaceReference.h': No such file or directory
I have searche for this file and it doesnt exist
Stevie
#3
Anyway, do a search of the resources for twSurfaceReference and you will find a resource you need to add.
11/18/2004 (12:34 pm)
If I remember that resource it says it is using the twSurfaceReference resource. (I could be wrong.)Anyway, do a search of the resources for twSurfaceReference and you will find a resource you need to add.
#4
Thanks Simon
Downloaded that file. However i made all the changes, it compiled perfect - ran torque, and Fxgrassrep was shown in the environment list. I pressed it and nothing happens>??
Anyone help
11/19/2004 (7:33 am)
Hi,Thanks Simon
Downloaded that file. However i made all the changes, it compiled perfect - ran torque, and Fxgrassrep was shown in the environment list. I pressed it and nothing happens>??
Anyone help
#5
Add an fxgrass, save the mission, open it in a text editor and add a grass file...
Seed = "1242312589";
> GrassFile = "~/data/grass/grass";
GrassCount = "1450";
You can also edit this via the inspector window, but the address of the media file is a bit different there.
11/19/2004 (8:15 am)
Nothing? Or it added a node but you didn't see anything because there is no media file specificed ? Add an fxgrass, save the mission, open it in a text editor and add a grass file...
Seed = "1242312589";
> GrassFile = "~/data/grass/grass";
GrassCount = "1450";
You can also edit this via the inspector window, but the address of the media file is a bit different there.
#6
11/19/2004 (8:35 am)
Add it manually via the .mis file and you should be fine. The latest FXGrass doesn't work with the WorldEditor Creator onAdd as far as I know. DISREGARD
#7
Cheers
11/19/2004 (9:17 am)
Arghh thats ehy then Stefan - cos when i click the editor button , indeed nothing seems to happen. I will go down the alternative route of the mission fileCheers
#8
11/19/2004 (10:11 am)
@Stefan... works fine here, except for the media file... fxGrass v1.5 right?
#9
11/19/2004 (10:23 am)
I was talking about 1.5, yeah. But, I'm probably incorrect - if it works for you. I'll edit my post, thanks. :)
Torque Owner CdnGater
Duggan Software Studio
What error you talking about? Its no use saying you have an error and not showing us the error. How can we tell you how to fix it if we dont have the error? Its like telling a mechanic that your car does not work, and your not going to let him see the car, but can he fix it???
FXGrass goes in Games/fx (At least there is where it is in mine). A little hint, look at the include of the cpp file for the fxgrass header. Put them in the same place as where the include is looking for them.
Edit: Added the above hint.