Difference between revisions of "Sims2Pack"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
m
Line 6: Line 6:
 
Then comes the XML data...  
 
Then comes the XML data...  
  
 +
<pre>
 
<?xml version="1.0" encoding="UTF-8"?>  
 
<?xml version="1.0" encoding="UTF-8"?>  
 
<Sims2Package type="Object">  
 
<Sims2Package type="Object">  
Line 20: Line 21:
 
<!-- END REPEATABLE -->  
 
<!-- END REPEATABLE -->  
 
</Sims2Package>  
 
</Sims2Package>  
 +
</pre>
  
Following this comes the file data according to the offset and size info in the XML header. Also, the offset is relative to the end of the XML data.  
+
Following this comes the file data according to the offset and size info in the XML header. Also, the offset is relative to the end of the XML data.  The DataOffset in bytes 19-22 should also indicate the end of the XML data.
  
  

Revision as of 06:26, 19 February 2007

This article is imported from the old MTS2 wiki. You can help Sims2Wiki by cleaning it up. It's original page with comments can be found at http://old_wiki.modthesims2.com/Sims2Pack
First there is some header info...

18 - Header (Sims2 Packager 1.0) 4 - Data Offset

Then comes the XML data...

<?xml version="1.0" encoding="UTF-8"?> 
<Sims2Package type="Object"> 
<GameVersion>2141707388.153.1</GameVersion> 
<!-- START REPEATABLE --> 
<PackagedFile> 
<Name><![CDATA[XXXfilenameXXX]]></Name> 
<Crc>552674faeebf57f3a8f0550f690ac902</Crc> 
<Length>8903470</Length> 
<Type>Object</Type> 
<Offset>0</Offset> 
<Description><![CDATA[XXXdescriptionXXX]]></Description> 
</PackagedFile> 
<!-- END REPEATABLE --> 
</Sims2Package> 

Following this comes the file data according to the offset and size info in the XML header. Also, the offset is relative to the end of the XML data. The DataOffset in bytes 19-22 should also indicate the end of the XML data.


Obviously the "start/stop repeatable" tags don't appear in the file, thats just for your benefit. This archive format is used for object downloads from www.TheSims2.com, and as such contains *.package files.

Here's a Sims2packDtd Sims2Pack DTD.

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox