Member Controls

Goto page Previous     1 2      Next
Wishlist > Opening and Saving SC4 file corrupts the file
Bugreport       Priority None; State Open; SimPE Version 0.66.2.38582; Operating System Windows XP Pro
pljonesLink to postposted: Thu Sep 25, 2008 6:47 pm
Avator for pljones

Member since:
 2005-04-02
From:
 London, UK
Posts:
 610
Mootilda, you can tell SimPE not to save packed files with compression, though I don't know whether that affects the overall packaging.  The flag is on the "Resource" tab (where you change the instance).
Inge JonesLink to postposted: Tue Nov 18, 2008 6:55 pm
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899
Flagged for another look.
Inge JonesLink to postposted: Sat Dec 13, 2008 5:33 pm
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899
bump
MootildaLink to postposted: Sun Dec 14, 2008 3:18 pm
Avator for Mootilda

Member since:
 2008-04-05
Posts:
 12

pljones wrote:
Mootilda, you can tell SimPE not to save packed files with compression, though I don't know whether that affects the overall packaging.  The flag is on the "Resource" tab (where you change the instance).

Unfortunately, this isn't helpful for me.  I'm not using the SimPE UI... I'm using the internal function calls via .NET.

Inge JonesLink to postposted: Sun Dec 14, 2008 3:26 pm
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899
So to test the idea you would need to be able to pass an argument that specifies "uncompressed" ?
MootildaLink to postposted: Sun Dec 14, 2008 7:20 pm
Avator for Mootilda

Member since:
 2008-04-05
Posts:
 12

Is it the GeneratableFile::Build function which does the compression?  If so, a boolean to compress or not would be all I'd need to test this.

 

More generally, it would be interesting to compare the versions of the various non-game specific records, such as the header, the index table, and the hole table before and after SimPE attempts to write the SC4 package.  If the write is updating these versions, it may be updating to a version which SimCity doesn't recognize.

 

pljonesLink to postposted: Wed Dec 17, 2008 8:34 pm
Avator for pljones

Member since:
 2005-04-02
From:
 London, UK
Posts:
 610
There's a boolean on the file descriptor indicating whether to compress or not ("IsCompressed", I think).
pljonesLink to postposted: Sun Jan 18, 2009 11:05 am
Avator for pljones

Member since:
 2005-04-02
From:
 London, UK
Posts:
 610

Random notes...

 

MarkForReCompress -- Returns/sets if this File should be Recompressed during the next Save Operation

 

WasCompressed -- Returns true if the Resource was Compressed

 

IsCompressed -- ((headersize!=0) && (Signature==SimPe.Data.MetaData.COMPRESS_SIGNATURE))

 

---

 

SimPe writes package files with major version=1, minor version=1; SC4 files have minor version=0.

 

---

 

Doing a "before and after" compare between the content of an SC4 file and the package as saved by SimPe - with "no changes" - shows the two to be very different.

 

I don't know how much effort would be required to make SimPe also able to write SC4 files but, at the moment, it seems it can read them but only writes .package files.

Inge JonesLink to postposted: Sun Jan 18, 2009 11:56 am
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899
Mootilda, given what Peter has said, and that ideally at this stage he needs to focus on the Sims 3 tools, we'd like to know whether this feature is important to you at this time or whether you are reasonably comfortable with whatever workarounds you are already using?
MootildaLink to postposted: Fri Feb 06, 2009 1:57 am
Avator for Mootilda

Member since:
 2008-04-05
Posts:
 12

I haven't had a lot of time for the sims lately, so I suppose that you will just have to consider this closed / postponed.  It may require a large amount of research to determine what the format is.

 

At this time, there is no known workaround for this problem.  I just gave up on providing the feature (to extract SC4 files from TS2 neighborhood package, so that people could edit existing neighborhood terrains).

Goto page Previous     1 2      Next


viewpost, 29427, 0