Eff -> t2dGraphField::loadStream() - Invalid Stream Header ID! / t2dParticleEffect::loadEffect() - Error Loading Effect/Emitter(s)!
by Techfront · in Torque Game Builder · 10/06/2009 (11:39 am) · 1 replies
Hi All.
I'm Eros and I continue porting the game develop using a old version of T2Done to TGB, we are advancing good on this process, but I found one problem that I don't know if I have a easy solution.
The original game have several eff files, and when I try load it on my game, I receive the follow messages:
t2dGraphField::loadStream() - Invalid Stream Header ID!
t2dParticleEffect::loadEffect() - Error Loading Effect/Emitter(s)!
I use this code to load the file:
The internal format of the eff file was changed? is possible edit it? or exist any tool to port it?
Thanks
Eros
I'm Eros and I continue porting the game develop using a old version of T2Done to TGB, we are advancing good on this process, but I found one problem that I don't know if I have a easy solution.
The original game have several eff files, and when I try load it on my game, I receive the follow messages:
t2dGraphField::loadStream() - Invalid Stream Header ID!
t2dParticleEffect::loadEffect() - Error Loading Effect/Emitter(s)!
I use this code to load the file:
%arrange.tutEffect = new t2dParticleEffect( TUT_SELECT ){ scenegraph = BoardSceneGraph2D; };
%arrange.tutEffect.loadEffect( "game/res/images/game/effects/yellow_selected_eff_flowerpot.eff" );
%arrange.tutEffect.setLayer( $GLAYER_ZBUFFER );
%arrange.tutEffect.click = $CLICK_SKIP;
%arrange.tutEffect.setPosition( addpositions( %arrange.ppos, "0 25" ) );
%arrange.tutEffect.name = "TUT_SELECT";
%arrange.tutEffect.parent = %arrange;The internal format of the eff file was changed? is possible edit it? or exist any tool to port it?
Thanks
Eros
Associate William Lee Sims
Machine Code Games
Because of the Magic Macros, it will be very hard to debug this. Personally, I'd try to find the header ID that it's expecting and seeing what's being read from the file (with some heavy use of Con::printf).
As for a tool, I've yet to see any external projects to help with TGB's particle effects, so you're probably out of luck there.