Game Development Community

IFL problem

by Jonathan Wheat · in Artist Corner · 11/15/2007 (7:35 am) · 12 replies

Hi guys,

So I'm having a problem getting an IFL to work. I have read the documentation on IFL implementation but still can't get it to work. I have it all set up in 3d max and it works fine there, but when I export it I cant get it to play in show tool or the engine. I've tried exporting it as a dts and a dsq but still get nothing. Show tool does show that it is referencing the IFL but nothing will play. do I need to get our programmer to write some script or something? I'm at a loss any help would be great.

#1
11/15/2007 (8:17 am)
Did you create the IFL file per the directions for Advanced Materials -> IFL?
#2
11/15/2007 (8:26 am)
Yup I did
#3
11/15/2007 (8:41 am)
Did you check the IFL animation tickbox in the sequence marker? (just making sure....)
tdn.garagegames.com/wiki/Image:Sequence.jpg
#4
11/15/2007 (9:31 am)
Oh man i must be stupid haha. so I just have to put a sequence node in there and check those boxes? do I export it as a DTS or does it need a DSQ?
#5
11/15/2007 (9:45 am)
Yup. That's it. IFL sequences are exported just like any other animation. Doesn't matter if you put it in a dsq or directly in the dts, either will work.
#6
11/21/2007 (11:48 am)
Ok so I can get the animation to show in Pro Tool but when placed in the engine it doesn't play. Any help?
#7
11/21/2007 (4:57 pm)
I am having the same issue so any help would be doubly thanked :)
#8
11/26/2007 (12:59 pm)
Bump :)
#9
12/04/2007 (1:30 am)
Double bump :)
#10
01/20/2009 (4:51 pm)
hey i'm also having the problem of getting the ifl to work in showtools but not the engine. did anyone figure this out?
#11
01/20/2009 (7:31 pm)
Have you written a script to fire off that ifl?

//ifl.cs
  //---------------------------------------------------------------------------------------//
// IFL (Image File List)                                                                 //
//                                                                                       //
// This script sets up all the IFL animations.                                           //
// sets it up so that when the object is placed in the world (or ::onadd)                //
// the animated textures are played.                                                     //
//                                                                                       //
//                  *******Current list of items using IFL's*******                       //
//                                                                                       //
//                                                                                       //
// 1."IFL_Tutorial_object" = This is a mound of crystals                                //
//---------------------------------------------------------------------------------------//
 // My Ifl

datablock StaticShapeData(myIfl)
{
	// The category variable determines where the item
	// shows up in the mission editor's creator tree.

	category = "Misc";
	shapeFile = "~/data/shapes/myIfl.dts"; //Location of the .DTS
};

function myIfl::onAdd(%this,%obj)
{
	%obj.playthread(0, "ambient");  // The animation to play
}

function StaticShapeData::create(%block)
{

	%obj = new StaticShape()
	{
		dataBlock = %block;
	};
	return(%obj);
}
You need a script in server/scripts to fire off your ifl. This one is generic and will play your ifl automatically when the game starts. You can add other functions to make it play at certain intervals as well using the schedule command.
Sorry I missed this one. There is a tutorial around here somewhere I wrote on ifl's.

#12
01/21/2009 (11:48 am)
sweet. i had to change the name of my sequence helper and it worked. thanks!