Okay, so I have the animation file to insert, but FEditor won't accept it for some reason!
http://forthetable.t...197597/omfg-why
A link to some screenshots I took.
Please help!
Inserting an Animation
Started by
GabrielKnight
, Jul 05 2012 08:04 PM
2 replies to this topic
#1
Posted 05 July 2012 - 08:04 PM
#2
Posted 05 July 2012 - 08:33 PM
i have no idea what that error message means
show me your frames
something is screwing up when it tries to read either your frames or your binary data
show me your frames
// Constructor accepting file path to a serialized dump that contains
// relative references to the frame data as a binary dump and the
// sheets as PNG images
@SuppressWarnings("unchecked")
public PortableClassAnimation(File path) throws Exception {
String parent = path.getParent() + File.separator;
ObjectInputStream serializedStream = null;
List<File> sheetPaths = null;
File frameDataPath;
try {
serializedStream = new ObjectInputStream(new FileInputStream(path));
frameDataPath = (File)serializedStream.readObject();
sheetPaths = (List<File>)serializedStream.readObject();
name = (int[])serializedStream.readObject();
sectionData = (byte[])serializedStream.readObject();
rightToLeftOAM = (byte[])serializedStream.readObject();
leftToRightOAM = (byte[])serializedStream.readObject();
byte[] palette_data = (byte[])serializedStream.readObject();
palettes = new Palette[4];
for (int i = 0; i < 4; ++i) {
palettes[i] = new Palette(palette_data, i * 32, 32);
}
} catch (Exception e) {
throw new Exception(
"PCA: Stream error in File constructor\n" +
"(Failed to read serialized file)"
);
} finally {
try { serializedStream.close(); }
catch (Exception e2) {}
}something is screwing up when it tries to read either your frames or your binary data
Edited by Camtech, 05 July 2012 - 09:17 PM.
#3
Posted 06 July 2012 - 09:52 AM
Make sure that all of your frames have the pallet in the top right corner and that the background color of all of them is the same (transparent)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










