Jump to content


Photo

Inserting an Animation


  • Please log in to reply
2 replies to this topic

#1 GabrielKnight

GabrielKnight

    Member

  • Member
  • Gender:Male
  • Favorite Fire Emblem Game:Blazing Sword

Posted 05 July 2012 - 08:04 PM

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!

#2 CT075

CT075

    formerly shota supercomputer

  • Member
  • Gender:Male
  • Location:Somewhere
  • Favorite Fire Emblem Game:Radiant Dawn

Posted 05 July 2012 - 08:33 PM

i have no idea what that error message means

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 Sea Lion

Sea Lion

    Member

  • Member
  • Gender:Male
  • Favorite Fire Emblem Game:Blazing Sword

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