Difference between revisions of "Sims 3:0x8EAF13DE"

From SimsWiki
Jump to: navigation, search
Line 1: Line 1:
RIG
+
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
 +
=RIG=
 +
There are two formats of the RIG file.  The basic file content is a [http://www.radgametools.com/granny.html Granny 2] data file.  Apart from the official tools, there are some user-contributed tools for manipulating the data [http://gr2decode.altervista.org/ on altervista].  In addition, a second format exists, where the Granny data is wrapped with some additional fields.
  
<pre>
+
Get "Granny Viewer" from the [http://gr2decode.altervista.org/download.html altervista downloads] page and you can load the data (export it as 'somefile.gr2').
By Karybdis and Atavera
+
  
 +
Also related is [http://forum.xentax.com/viewtopic.php?f=16&t=1805&start=30&st=0&sk=t&sd=a this thread] on Xentax.
 +
=Format=
 +
==Optional wrapper==
 +
There is an optional wrapper to the Granny data.  This can be identified by the first DWORD in the file being 0x8EAF13DE (i.e. the resource type).  The format is:
  
--Int2 Offset Header (optional)
+
DWORD 0x8EAF13DE
DWORD DE13AF8E
+
DWORD 0
DWORD 0
+
DWORD offset1 // To "Int2" block from start of Granny data (from start of file)
DWORD Offset to Int2 (from beginning of main header - offset 52. IE this is offset+52 from beginning of file)
+
DWORD offset2 // To start of Granny data (from start of this DWORD)
DWORD Offset to end of Int2 offset header (from beginning of this DWORD)
+
DWORD chunk1offset // To start first of "Int2" Chunk (from start of this DWORD)
9x DWORD - Offset to beginning of this Int2 section from the beginning of this DWORD (only 5 used)
+
--repetition 4 times:
 
+
DWORD chunkOffset // To start of 2nd to 5th "Int2" Chunk (from start of this DWORD)
 +
--repetition 4 times:
 +
DWORD unusedOffset // 0?
 +
 +
--insert Granny2 data
 +
 +
//"Int2" block:
 +
//chunk1:
 +
DWORD Count1
 +
DWORD offset (from start of this DWORD)
 +
--repetition Count1:
 +
QWORD type
 +
--if type == 00000000 03000000
 +
BYTE[144]
 +
--if type == 01000000 01000000
 +
BYTE[176]
 +
 +
--repetition 4 times:
 +
//chunks 2 to 5:
 +
DWORD count:
 +
--repetition count
 +
DWORD
 +
==Granny2 Data==
 +
<pre>
 
--Header (For all further offsets, treat this as Offset 0 (as if the Int2 Offset header didn't exist)) (This is Granny2 data)
 
--Header (For all further offsets, treat this as Offset 0 (as if the Int2 Offset header didn't exist)) (This is Granny2 data)
 
16 BYTES B867B0CAF86DB10F84728C7E5E19001E
 
16 BYTES B867B0CAF86DB10F84728C7E5E19001E
Line 41: Line 69:
  
 
--Padding 00's to next even DWORD (end of granny2 data)
 
--Padding 00's to next even DWORD (end of granny2 data)
 
+
</pre>
--Int2 section
+
-1st offset
+
DWORD Offset Count
+
DWORD offset (from end of offset count)
+
REPS
+
QWORD (if 00000000 03000000, X=144 BYTES) (if 01000000 01000000, X=176 BYTES)
+
X
+
-2nd-5th offsets
+
DWORD count
+
DWORD
+
 
+
  
 
Rick adds:
 
Rick adds:
The blobs that start with B867B0CAF86DB10F84728C7E5E19001E
 
  
 +
The blobs that start with
 +
B867B0CAF86DB10F84728C7E5E19001E
 
(as well as)
 
(as well as)
 +
29DE6CC0BAA4532B25F5B7A5F666E2EE
 +
0E1195B56AA5B54BEB2828502578B304
 +
E59B495E6F631F141E13EBA990BEEDC4
 +
3195D4E320DC4F62CC36D03AB182FF89
 +
are Granny 2 file data.
 +
<hr/>
 +
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
  
29DE6CC0BAA4532B25F5B7A5F666E2EE
+
Based on contributions from Karybdis and Atavera
0E1195B56AA5B54BEB2828502578B304
+
E59B495E6F631F141E13EBA990BEEDC4
+
3195D4E320DC4F62CC36D03AB182FF89
+
 
+
Are Granny 2 file data,
+
 
+
http://gr2decode.altervista.org/
+
 
+
Get "Granny Viewer" from the downloads page & you can load that blob of data (copy it out and save it as 'somefile.gr2').
+
 
+
Also related is this thread on Xentax:
+
 
+
http://forum.xentax.com/viewtopic.php?f=16&t=1805&start=30&st=0&sk=t&sd=a
+
 
+
</pre>
+

Revision as of 13:08, 7 December 2009

Sims 3:Main Page -> Sims 3:PackedFileTypes

Contents

RIG

There are two formats of the RIG file. The basic file content is a Granny 2 data file. Apart from the official tools, there are some user-contributed tools for manipulating the data on altervista. In addition, a second format exists, where the Granny data is wrapped with some additional fields.

Get "Granny Viewer" from the altervista downloads page and you can load the data (export it as 'somefile.gr2').

Also related is this thread on Xentax.

Format

Optional wrapper

There is an optional wrapper to the Granny data. This can be identified by the first DWORD in the file being 0x8EAF13DE (i.e. the resource type). The format is:

DWORD 0x8EAF13DE
DWORD 0
DWORD offset1			// To "Int2" block from start of Granny data (from start of file)
DWORD offset2			// To start of Granny data (from start of this DWORD)
DWORD chunk1offset		// To start first of "Int2" Chunk (from start of this DWORD)
--repetition 4 times:
	DWORD chunkOffset	// To start of 2nd to 5th "Int2" Chunk (from start of this DWORD)
--repetition 4 times:
	DWORD unusedOffset	// 0?

--insert Granny2 data

//"Int2" block:
//chunk1:
DWORD Count1
DWORD offset (from start of this DWORD)
--repetition Count1:
	QWORD type
	--if type == 00000000 03000000
		BYTE[144]
	--if type == 01000000 01000000
		BYTE[176]

--repetition 4 times:
	//chunks 2 to 5:
	DWORD count:
	--repetition count
		DWORD

Granny2 Data

--Header (For all further offsets, treat this as Offset 0 (as if the Int2 Offset header didn't exist)) (This is Granny2 data)
16 BYTES B867B0CAF86DB10F84728C7E5E19001E
DWORD - Header Size
12 BYTES
DWORD - 6
DWORD - Size of main file not including Int2/Int2Header data
DWORD - Guid?
DWORD
40 BYTES
DWORD - 2 
DWORD - Offset of the scripty bit from beginning of file
DWORD - Size of the scripty bit
DWORD
DWORD
DWORD
DWORD
DWORD - offset Int1
DWORD - count Int1
DWORD - offset end Int1
DWORD

--Int1 Section
	DWORD
	DWORD
	DWORD

--Scripty

--Padding 00's to next even DWORD (end of granny2 data)

Rick adds:

The blobs that start with

B867B0CAF86DB10F84728C7E5E19001E

(as well as)

29DE6CC0BAA4532B25F5B7A5F666E2EE
0E1195B56AA5B54BEB2828502578B304
E59B495E6F631F141E13EBA990BEEDC4
3195D4E320DC4F62CC36D03AB182FF89

are Granny 2 file data.


Sims 3:Main Page -> Sims 3:PackedFileTypes

Based on contributions from Karybdis and Atavera

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox