Difference between revisions of "Sims 3:0x8EAF13DE"

From SimsWiki
Jump to: navigation, search
(Granny2 Data)
Line 39: Line 39:
 
  DWORD
 
  DWORD
 
==Granny2 Data==
 
==Granny2 Data==
<pre>
+
All offsets in this section start from the start of the 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)
+
BYTE[16] // See Rick's note below
16 BYTES B867B0CAF86DB10F84728C7E5E19001E
+
DWORD Header Size // ?
DWORD - Header Size
+
BYTE[12]
12 BYTES
+
DWORD // 6
DWORD - 6
+
DWORD // Size of Granny2 Data
DWORD - Size of main file not including Int2/Int2Header data
+
DWORD // Guid?
DWORD - Guid?
+
DWORD
DWORD
+
BYTE[40]
40 BYTES
+
DWORD // 2  
DWORD - 2  
+
DWORD ScriptOffset
DWORD - Offset of the scripty bit from beginning of file
+
DWORD ScriptSize
DWORD - Size of the scripty bit
+
DWORD
DWORD
+
DWORD
DWORD
+
DWORD
DWORD
+
DWORD
DWORD
+
DWORD Int1Offset
DWORD - offset Int1
+
DWORD Int1Count // ?
DWORD - count Int1
+
DWORD Int1EndOffset // to start of byte after Int1 section
DWORD - offset end Int1
+
DWORD
DWORD
+
 
+
//Int1 Section // does this repeat or what?
--Int1 Section
+
DWORD
DWORD
+
DWORD
DWORD
+
DWORD
DWORD
+
 
+
// Script
--Scripty
+
BYTE[ScriptSize]
 
+
--Padding 00's to next even DWORD
--Padding 00's to next even DWORD (end of granny2 data)
+
</pre>
+
 
+
 
Rick adds:
 
Rick adds:
  
The blobs that start with
+
The blobs that start with the following sequences are Granny2 data blocks:
 
  B867B0CAF86DB10F84728C7E5E19001E
 
  B867B0CAF86DB10F84728C7E5E19001E
(as well as)
 
 
  29DE6CC0BAA4532B25F5B7A5F666E2EE
 
  29DE6CC0BAA4532B25F5B7A5F666E2EE
 
  0E1195B56AA5B54BEB2828502578B304
 
  0E1195B56AA5B54BEB2828502578B304
 
  E59B495E6F631F141E13EBA990BEEDC4
 
  E59B495E6F631F141E13EBA990BEEDC4
 
  3195D4E320DC4F62CC36D03AB182FF89
 
  3195D4E320DC4F62CC36D03AB182FF89
are Granny 2 file data.
 
 
<hr/>
 
<hr/>
 
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
 
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
  
 
Based on contributions from Karybdis and Atavera
 
Based on contributions from Karybdis and Atavera

Revision as of 13:42, 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

All offsets in this section start from the start of the Granny2 Data.

BYTE[16]		// See Rick's note below
DWORD Header Size	// ?
BYTE[12]
DWORD			// 6
DWORD			// Size of Granny2 Data
DWORD			// Guid?
DWORD
BYTE[40]
DWORD			// 2 
DWORD ScriptOffset
DWORD ScriptSize
DWORD
DWORD
DWORD
DWORD
DWORD Int1Offset
DWORD Int1Count 	// ?
DWORD Int1EndOffset	// to start of byte after Int1 section
DWORD

//Int1 Section		// does this repeat or what?
DWORD
DWORD
DWORD

// Script
BYTE[ScriptSize]
--Padding 00's to next even DWORD

Rick adds:

The blobs that start with the following sequences are Granny2 data blocks:

B867B0CAF86DB10F84728C7E5E19001E
29DE6CC0BAA4532B25F5B7A5F666E2EE
0E1195B56AA5B54BEB2828502578B304
E59B495E6F631F141E13EBA990BEEDC4
3195D4E320DC4F62CC36D03AB182FF89

Sims 3:Main Page -> Sims 3:PackedFileTypes

Based on contributions from Karybdis and Atavera

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox