Talk:OniSplit

From OniGalore
Revision as of 05:50, 25 July 2009 by Gumby (talk | contribs)
Jump to navigation Jump to search

Neo, in the latest version of OniSplit, when a TRAM is extracted as .xml, the framecount is not included. Previous versions would have attributes like this: <FrameCount>52</FrameCount> <Duration>52</Duration>. In a couple of modified TRAMs, I used that attribute to shorten an animation. For example, I would change <FrameCount>52</FrameCount> to <FrameCount>45</FrameCount>.

Could you please add that attribute back to the xml? Thank you EdT

Nope, I'm not adding that back. If you want to shorten an animation the do the right thing and edit the Heights, Velocities, Rotations and Positions elements. I realise that's more complicated to do (especially for Rotations) but setting the FrameCount directly is a hack. Hopefully we'll have soon a Collada animation importer and that will simplify editing animations a bit.

Neo

Ok, you know what's best. So how soon is soon for the Collada importer? :-) EdT

I got the following error message when extracting AKEVAirport.oni using version version 0.9.40.0 and the GameDataFolder from the AE Installer.

 System.InvalidOperationException: The comparer threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
 at Oni.Akira.EnvironmentExporter+Polygon.System.IComparable<Oni.Akira.EnvironmentExporter.Polygon>.CompareTo (Oni.Akira.Polygon other) [0x00000] 
 at System.Collections.Generic.GenericComparer`1[Oni.Akira.EnvironmentExporter+Polygon].Compare (Oni.Akira.Polygon , Oni.Akira.Polygon ) [0x00000] 
 at System.Array.compare[Polygon] (Oni.Akira.Polygon value1, Oni.Akira.Polygon value2, IComparer`1 comparer) [0x00000] 
 at System.Array.qsort[Polygon,Polygon] (.Polygon[] keys, .Polygon[] items, Int32 low0, Int32 high0, IComparer`1 comparer) [0x00000] 
 at System.Array.Sort[Polygon,Polygon] (.Polygon[] keys, .Polygon[] items, Int32 index, Int32 length, IComparer`1 comparer) [0x00000] --- End of inner exception stack trace ---
 at System.Array.Sort[Polygon,Polygon] (.Polygon[] keys, .Polygon[] items, Int32 index, Int32 length, IComparer`1 comparer) [0x00000] 
 at System.Array.Sort[Polygon] (.Polygon[] array, Int32 index, Int32 length, IComparer`1 comparer) [0x00000] 
 at System.Collections.Generic.List`1[Oni.Akira.EnvironmentExporter+Polygon].Sort () [0x00000] 
 at Oni.Akira.EnvironmentExporter.CreateMeshes () [0x00000] 
 at Oni.Akira.EnvironmentExporter.Export (Oni.InstanceDescriptor akev, Oni.Geometry.Dae.Document document, System.String outputDirPath) [0x00000] 
 at Oni.DaeExporter.ExportInstance (Oni.InstanceDescriptor descriptor) [0x00000] 
 at Oni.Exporter.ExportInstanceList (System.Collections.Generic.List`1 descriptors) [0x00000] 
 at Oni.Exporter.Export (Oni.InstanceFileManager fileManager, System.String sourceFilePath, System.String filter) [0x00000] 
 at Oni.Program.ExtractGeometry (System.String[] args) [0x00000] 
 at Oni.Program.Main (System.String[] args) [0x00000]  (1)

EdT

Im pretty sure the problem is that it cant find the textures. Gumby