Game Development Community

Just bought the Effect Pack.. not working on the iTGB

by Rami Bokhari · in iTorque 2D · 06/19/2011 (1:24 pm) · 2 replies

hey guys,
just got the effect pack and load the .eff files with the pics on my iTGB project but it's not working.. no emmiter , it's wired I read that it's compatible with iTGB somewhere :/

About the author

I love video games.. video games are my life.. playing can't satisfy me anymore.. thank you GG helping me making my dream worlds a reality


#1
06/19/2011 (4:10 pm)
@Rami - This has been a known issue since 1.3. As the engine has been updated, particle effects from previous versions were not porting. HOWEVER, there is good news. I managed to find the exact cause of the problem.

As the engine has improved, new properties have been added to t2dSceneObject. For example, usesPhysics was added, then useMouseEvents. These are saved out using a stream read/write macro system. Because the format and stream has changed, particle files do not load because they are treated as being invalid.

While adding a new property (details on that later), I reproduced the problem. I traced it down to the following macros:

REGISTER_SERIALISE_VERSION
IMPLEMENT_T2D_SERIALISE_BASE
IMPLEMENT_T2D_LOAD_METHOD
IMPLEMENT_T2D_SAVE_METHOD

If you open t2dSceneObject.cc, you can find these macros. A serialization version system is essentially in place. There are currently four versions: 8, 9, 10 and 11. I am working on a version 12 to support the new property I am adding, but I discovered a short process to port your old particle effects. It is not fully automatic, but it does not take long. This buys time while we work on a long term solution, like automatic porting and a human readable format like XML.

Read the full investigation and short term solution here: Using particle effects from other version.

Short cut to solution

Where did you see that the pack is compatible? No one has asked me, so I hope it hasn't been posted on a product page.
#2
06/21/2011 (11:37 pm)
oh.. am sorry that post was 2009 XD my bad sorry...
thank you Michael .. but can u explain the steps in more details please? am a noob XD
thanx in advence GG ... love you guys
and sorry for my terrible Engilsh :)