Game Development Community

TLK and Fxgrass

by Ron Frazier · in · 06/07/2006 (1:29 am) · 3 replies

Ive got a question, ive been scratching my head over this for about 4 hours now and honestly feel stupid.

I added the fx grass replicator/twsurface to tlk1.4 (with dynamiclighting2 and water stuff). They do work but they dont show up in mission ob/enviroment. Ive gone through all the gui files and I beleave there were some installed specificly for TLK cause i altered some in tstpro folder but it still doesnt show. The only way I managed to get them to show was manually placing them in my missionscript and it LOOKS AWSOME but it would be alot nicer to have the gui control to place them in all in one map edit session.

Please if anything springs to mind let me know cause Ive gone through half a pack of cigs starring at this code lol.

Edit: You know its times like this that I ask "Why isnt fxgrass and twsurfacereferencer default in the head yet"
If used/installed properly it makes the stripped tge look much less outdated!

#1
06/07/2006 (5:11 pm)
Hi Ron,

The file you need to edit is 'example\creator\editor\EditorGui.cs' around line 1307, make sure you've defined the fx grass object in the environment item list (this adds the object to the mission editor's new object list):

...
   %Environment_Item[8]  = "fxSunLight";
   %Environment_Item[9]  = "fxShapeReplicator";
   %Environment_Item[10] = "fxFoliageReplicator";
   %Environment_Item[11] = "fxLight";
   ...

Make sure the index you assign to fx grass is not used by anything else.

I think GG left the fx grass resource out of stock Torque because it doesn't conform to the terrain, so if you are using wide grass textures on heavily sloping terrain it looks like the grass is floating in the air. Smaller grass textures look really good in that resource though and I think with a little tweaking it would work in most situations.

Let me know if this helps!
#2
06/10/2006 (8:43 pm)
Yeah I had those options set and before it didnt show. I kept adding other features in the meantime and when I saw your post I checked and it works now. That was wierd.

Since Ive been playing around with it recently I see what your talking about with the grass acting strange on slopes. I get it to show but it has a tendancy to raise up of the ground in a few places. Meh nothings perfect, I still like the effect Ill just have to watch what surfaces I place it on. Im actually having some trouble with twsurface ref but I think Ill hold off and get it later, Im buisy with gameplay and DRL2.

I have to say this! This lighting kit is a piece of work!! My game looks just about as good as Tse aside from a few features that I can live without. Starting to think I shouldnt have bought that adopters license to tse..scratches head8p
#3
06/12/2006 (10:07 am)
Hi Ron,

Awesome, I'm glad it's working now.

Quote:
I have to say this! This lighting kit is a piece of work!!

Thanks! :)