Game Development Community

Starting Particle Editor

by Andy Hawkins · in Torque Game Engine · 11/07/2006 (4:25 am) · 2 replies

I can see the toggleParticleEditor in scripts bound to the 'g' key but when I press it, it wont run.

From a fresh install of 1.4 - what do I need to do, to get it to run?

Andy H.

#1
11/07/2006 (6:14 am)
I think that the script for it isn't being compiled, if I remember correctlly. Make sure it is read, it may be a pathing error, or that it is commented out; that's what I remember doing to get it going. There is a Thread already about the Particle Editor not appearing.
#2
11/07/2006 (6:35 am)
Found the error...

in console.log it says...
Missing file: common/editor/ParticleEditor.gui!
creator/editor/particleEditor.cs (30): Unable to find object: 'ParticleEditor' attempting to call function 'initEditor'
creator/editor/particleEditor.cs (32): Unable to find object: 'ParticleEditor' attempting to call function 'startup'
pushDialog(): Invalid control: ParticleEditor

it's looking in the wrong spot...

in common/editor/particleEditor.cs
function toggleParticleEditor(%val)
{
   ...

   if (!isObject(ParticleEditor))
   {
      exec("common/editor/ParticleEditor.gui");    <----- here's the error
      ParticleEditor.initEditor();
   }
   ParticleEditor.startup();

   ...
}

change it to..

exec("./ParticleEditor.gui");    <----- removes folder dependancy

... and then it works.

It saves Particles to
example\creator folder