Jump to content

Difficulty with certain TGA files: Out of Palette Bounds


Amaroq Dricaldari

Recommended Posts

I've attached a RAR archive containing some problem TGA files, and a TXT file containing information on the errors associated with trying to open them.

animfizzle_128x64x4.tga
System.FormatException: color index was outside the bounds of the palette
   at PaintDotNet.Data.TgaFileType.ReadColor(Stream input, Int32 pixelDepth, ColorBgra[] palette) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 608
   at PaintDotNet.Data.TgaFileType.ExpandUncompressedLine(MemoryBlock dst, Int32 dstIndex, TgaHeader& header, Stream input, Int32 width, Int32 y, Int32 xoffset, ColorBgra[] palette) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 595
   at PaintDotNet.Data.TgaFileType.OnLoad(Stream input) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 455
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

Wipeout_Clouds_D_128x64x4.tga
System.FormatException: color index was outside the bounds of the palette
   at PaintDotNet.Data.TgaFileType.ReadColor(Stream input, Int32 pixelDepth, ColorBgra[] palette) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 608
   at PaintDotNet.Data.TgaFileType.ExpandUncompressedLine(MemoryBlock dst, Int32 dstIndex, TgaHeader& header, Stream input, Int32 width, Int32 y, Int32 xoffset, ColorBgra[] palette) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 595
   at PaintDotNet.Data.TgaFileType.OnLoad(Stream input) in D:\src\pdn\src\PaintDotNet\Data\TgaFileType.cs:line 455
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 496
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

Any advice would be appreciated.

TGAERROR.RAR

TGAERROR.TXT

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...