Member Controls

Wizards of SimPE & SimPE Bugs > Error Trying to Open a Packed Filter
jase439Link to postposted: Sat Sep 17, 2005 2:14 am

Member since:
 2005-03-16
Posts:
 93
After saving a file with compression, I receive the error "Error Trying to Open a Packed Filter" when reopening that file in SimPE. Any ideas?
quaxiLink to postposted: Sat Sep 17, 2005 2:31 am
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
Something went wrong during the compression.

Could you post the complete Error Message here?
jase439Link to postposted: Sat Sep 17, 2005 2:48 am

Member since:
 2005-03-16
Posts:
 93
In this particular instance, I did not receive any errors during the save (just on load), although I have gotten similar Index Out of Bounds errors when saving certain TXTR files in the past.

I am running a CVS developer version. Did the compression routines change recently?

Here's the error:

------------------------

Message:
Error while processing a Packed File Filter.

SimPE Version:
Classic (0.47.2085.34001).

Exception Stack:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SimPe.Packages.PackedFile.Uncompress(Byte[] data, UInt32 targetSize, Int32 offset) in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 287
at SimPe.Packages.PackedFile.Decompress(Int64 size) in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 207
at SimPe.Form1.AddFileItem(IPackedFileDescriptor pfd, Boolean filter) in C:\SimPE\fullsimpe\SimPe\Form1.cs:line 3001
at SimPe.Form1.UpdateFileGroupFilter(Object sender, EventArgs e) in C:\SimPE\fullsimpe\SimPe\Form1.cs:line 3050

Source:
simpe.package

Execution Stack:
at SimPe.Packages.PackedFile.Uncompress(Byte[] data, UInt32 targetSize, Int32 offset) in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 287
at SimPe.Packages.PackedFile.Decompress(Int64 size) in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 207
at SimPe.Form1.AddFileItem(IPackedFileDescriptor pfd, Boolean filter) in C:\SimPE\fullsimpe\SimPe\Form1.cs:line 3001
at SimPe.Form1.UpdateFileGroupFilter(Object sender, EventArgs e) in C:\SimPE\fullsimpe\SimPe\Form1.cs:line 3050

-------------------

BTW, what exactly is an s2cp file? How is it different from a sims2pack file (aside from the obvious fact you can compress it).
quaxiLink to postposted: Sat Sep 17, 2005 2:49 am
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
That format was supposed to be a community Version of sims2pack, with enhanced Features (like compression). But it was discared at some Point.

The compression was not changed for a while.
jase439Link to postposted: Sat Sep 17, 2005 2:55 am

Member since:
 2005-03-16
Posts:
 93
That's unfortunate. I have 14.1 megs of package files over 6 files. Bundling them together would have been really convenient. Too bad the standard was abandoned.

Compression is killing me though. The only thing I've successfully been able to compress are clothing TXTR files :( I have a 5 meg behavior file that I know will compress down to almost nothing - but alas, SimPE blows chunks on it w/ the above error.
quaxiLink to postposted: Sat Sep 17, 2005 2:57 am
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
You could try if disabeling "Extra->Display Filenames" helps. Maybe it is not the compression, but the speed decompression used when decoding ResourceNames.
jase439Link to postposted: Sat Sep 17, 2005 2:59 am

Member since:
 2005-03-16
Posts:
 93
"quaxi" wrote:
You could try if disabeling "Extra->Display Filenames" helps. Maybe it is not the compression, but the speed decompression used when decoding ResourceNames.


Ah. That's it! That did the trick. So what's going on with the speed decompression and why does it conflict with Display Filenames?

EDIT: I spoke to soon. Unchecking that allows me to get a table listing of all the files, but now when I select an individual behavior I get the following:

---------------------------

Message:
Error while loading a Packed File.

SimPE Version:
Classic (0.47.2085.34001).

Exception Stack:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SimPe.Packages.PackedFile.Uncompress(Byte[] data, UInt32 targetSize, Int32 offset) in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 287
at SimPe.Packages.PackedFile.get_UncompressedData() in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 171
at SimPe.Form1.SelectPackedFile(IPackedFileDescriptor fii) in C:\SimPE\fullsimpe\SimPe\Form1.cs:line 2733

Source:
simpe.package

Execution Stack:
at SimPe.Packages.PackedFile.Uncompress(Byte[] data, UInt32 targetSize, Int32 offset) in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 287
at SimPe.Packages.PackedFile.get_UncompressedData() in c:\simpe\fullsimpe\simpe packages\packedfile.cs:line 171
at SimPe.Form1.SelectPackedFile(IPackedFileDescriptor fii) in C:\SimPE\fullsimpe\SimPe\Form1.cs:line 2733


viewthread, 0, 0, Error-Trying-to-Open-a-Packed-Filter