Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Particle Editor (https://forums.graalonline.com/forums/showthread.php?t=85696)

xXziroXx 05-23-2009 02:01 PM

Particle Editor
 
1 Attachment(s)
Credits for the script goes to DrakilorP2P, permission to post on his behalf given by Darlene.

"I got tired of spamming RC whenever I wanted to tune a particle emitter, so I coded this." -DrakilorP2P


This code allows you to create, modify and generate code for particle effects, with an in-game editor.

If you're too lazy to download it to try it yourself, you can logon Maloria and say /openparticle to open it.


http://i42.tinypic.com/2vl2w6e.png

[email protected] 05-23-2009 03:23 PM

Nice job :D

Pelikano 05-23-2009 03:28 PM

very nice

Gambet 05-23-2009 05:47 PM

Great work, Drakilor. :)

cbk1994 05-23-2009 06:44 PM

Very cool, but it would be interesting to add another pane where you can preview the effect, with controls like "Start Emitting", and "Stop Emitting". You should be able to use a GuiShowImgCtrl for this.

Tigairius 05-23-2009 06:46 PM

Cool, I was going to make one of these but now I don't have to :D

napo_p2p 05-23-2009 07:51 PM

Quote:

Originally Posted by Tigairius (Post 1493408)
Cool, I was going to make one of these but now I don't have to :D

Same here.

Great stuff :).

salesman 05-23-2009 08:21 PM

I haven't used particles much and have been wanting to take a stab at it...this will definitely help me out, nice work.

cbk1994 05-23-2009 09:04 PM

I just noticed you're using degtorad in the actual code; the generator should instead just output it in radians, to prevent the work being done each time the particle is used. Radians are simple enough for just about anybody to understand anyway.

fowlplay4 05-24-2009 01:53 AM

Quote:

Originally Posted by cbk1994 (Post 1493440)
I just noticed you're using degtorad in the actual code; the generator should instead just output it in radians, to prevent the work being done each time the particle is used. Radians are simple enough for just about anybody to understand anyway.

The difference will go unnoticed, and from what I learned from people who aren't from scripting/programming backgrounds prefer to think in 0-360 than 0 to 2pi.

Will try my luck with particles, thanks!

DustyPorViva 05-24-2009 03:16 AM

Maybe have a preview button for the particle?

Seich 05-27-2009 04:45 AM

Woah, that's some amazing job you did there.....

Tigairius 05-27-2009 05:45 AM

I haven't had a chance to test it yet, but I was reading through the script and spotted this error on line 1351:
PHP Code:

  this.TVariableType.buildGuiControl = function()
  {
    
this.weaponNPC.reportError("TVariableTyoe.buildGuiControl - Not defined.");
  }; 

typo in the error report ;p obviously TVariableTyoe should be TVariableType

I also noticed at the bottom you left this comment:
PHP Code:

  //This doesn't work at all inside TStaticVar objects apparently.
  //this.dumpCallStack(temp.tempObject); 

Except, I don't think the dumpCallStack() function works due to callstacks not functioning on the clientside (am I wrong? Please tell me I am :()

Crow 05-27-2009 03:49 PM

Quote:

Originally Posted by Tigairius (Post 1494511)
Except, I don't think the dumpCallStack() function works due to callstacks not functioning on the clientside (am I wrong? Please tell me I am :()

Unfortunately, you are not.

Admins 05-27-2009 08:57 PM

The particle editor looks quite interesting (the idea with templates).

Callstacks work in the next Graal client version though.


All times are GMT +2. The time now is 09:34 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.