Difference between revisions of "Sims2Pack"
From SimsWiki
(Auto-inserted from WakkaWikki) |
|||
(3 intermediate revisions by 2 users not shown) | |||
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. |
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. | 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]]. | + | Here's a [[Sims2packDtd Sims2Pack DTD]], also copied from http://old_wiki.modthesims2.com/Sims2packDtd. |
− | + | ||
+ | |||
+ | [[Category:Sims 2 Modding]] |
Latest revision as of 19:39, 17 September 2012
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, also copied from http://old_wiki.modthesims2.com/Sims2packDtd.