Game Development Community

Updating fxSwarm --> Help needed

by Mike Rowley · in Torque Game Engine · 08/11/2007 (9:36 am) · 1 replies

A long time ago, I added fxSwarm to my copy of the engine. Due to a hard drive crash, that was lost. I am now needing to add t in again, but the instructions are for a long ago version of torque and the folder structure is different.
Does anyone know where this code goes now? I've looked, but can't find the correct file.

- Put this in "/example/common/editor/EditorGui.cs" in [function Creator::init( %this )]
   %Environment_Item[<next item-index in list>] = "fxSwarmObject";


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

	function ObjectBuilderGui::buildfxSwarmObject(%this)
	{
		%this.className = "fxSwarmObject";
		%this.process();
	}

#1
08/11/2007 (9:56 am)
I didn't dig deep enough. I'm double posting to show the fix.

in "example/creator/editor/EditorGui.cs" (around line 1301) Add:

%Environment_Item[<next item-index in list>] = "fxSwarmObject";
Make sure to change to the number that's next. (mine was 16)

Then, find "example/creator/editor/ObjectBuilderGui.gui" around line 571. add:
//Added Swarm Objects
function ObjectBuilderGui::buildfxSwarmObject(%this)
	{
		%this.className = "fxSwarmObject";
		%this.process();
	}

That should work for 1.4 and up.