Game Development Community

Mounted particle resource added

by Peter Simard · in Torque Game Engine · 07/13/2006 (6:34 am) · 7 replies

I just finished uploading my new resource for true mounted particles.. check it out:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=10893

Here is a shot of a player with a particle emitter mounted to his right hand:
www.crownsofpower.com/images/mountedParticles.jpg

#1
07/13/2006 (9:16 am)
Nice work, I will be using this code sometime in the future =-)

edit : removed clicky link to resource
#2
07/13/2006 (8:16 pm)
Thanks for the resource. i had issues with the previous mounted particles resource
www.garagegames.com/mg/forums/result.thread.php?qt=35130

I was nearly ready to delv into this for my own little mouting project.
#3
07/14/2006 (1:16 am)
Has anyone get it compiled? ^^
Have tryed it actually, but its still wont work.

I think the ressource missing a few bits of code, or there are some errors where to put the code ;)

if someone has get it to work, please post exact way ;)
#4
07/14/2006 (4:46 am)
Alex, what errors are you getting when you try to compile? I pulled the resource out of my heavily modified source so its very possible I missed some code.
#5
07/14/2006 (9:38 am)
I have tryed to add it now to a clean tge 1.4

they are many errors if i compile, a few of them:

./engine\game/shapeBase.h(539) : error C2143: syntax error : missing ';' before '*'
../engine\game/shapeBase.h(539) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
../engine\game/shapeBase.h(539) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
../engine\game/shapeBase.h(638) : error C2061: syntax error : identifier 'ParticleEmitterNode'

...

.\engine\game\shapeBase.cc(3093) : error C2440: 'initializing' : cannot convert from 'Vector' to 'mountedParticle *'
with
[
T=mountedParticle *
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
..\engine\game\shapeBase.cc(3094) : error C2039: 'particleEmitter' : is not a member of 'mountedParticle'
../engine\game/shapeBase.h(536) : see declaration of 'mountedParticle'
..\engine\game\shapeBase.cc(3325) : error C2065: 'ParticleEmitterNode' : undeclared identifier
..\engine\game\shapeBase.cc(3325) : error C2065: 'emitter' : undeclared identifier
..\engine\game\shapeBase.cc(3325) : error C2061: syntax error : identifier 'ParticleEmitterNode'
..\engine\game\shapeBase.cc(3330) : error C2039: 'particleEmitter' : is not a member of 'mountedParticle'
../engine\game/shapeBase.h(536) : see declaration of 'mountedParticle'
..\engine\game\shapeBase.cc(4268) : error C2059: syntax error : 'const'
..\engine\game\shapeBase.cc(4269) : error C2143: syntax error : missing ';' before '{'
..\engine\game\shapeBase.cc(4269) : error C2447: '{' : missing function header (old-style formal list?)
..\engine\game\shapeBase.cc(4297) : error C2039: 'particleEmitter' : is not a member of 'mountedParticle'
../engine\game/shapeBase.h(536) : see declaration of 'mountedParticle'
..\engine\game\shapeBase.cc(4299) : error C2227: left of '->setTransform' must point to class/struct/union/generic type
type is ''unknown-type''
..\engine\game\shapeBase.cc(4305) : error C2065: 'particleNode' : undeclared identifier
scopeAlwaysShape.cc
#6
07/14/2006 (10:37 am)
Hi Alex, thanks for the report. Looks like I forgot to add one of the required includes to the resource:

ShapeBase.h
#include "game/fx/particleEmitter.h"

class ParticleEmitter;

Let me know if that works.
#7
07/15/2006 (1:01 pm)
Still compile errors.

../engine\game/shapeBase.h(539) : error C2143: syntax error : missing ';' before '*'
../engine\game/shapeBase.h(539) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
../engine\game/shapeBase.h(539) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
../engine\game/shapeBase.h(638) : error C2061: syntax error : identifier 'ParticleEmitterNode'

Have tryed to add "class ParticleEmitterNode", but it was to simple, i think ;P
Will check it if i'm back from the party ;)