Difference between revisions of "Sims 3:0x8EAF13DE"

From SimsWiki
Jump to: navigation, search
(Granny2 Data)
m (Optional wrapper)
Line 12: Line 12:
 
  DWORD 0x8EAF13DE
 
  DWORD 0x8EAF13DE
 
  DWORD 0
 
  DWORD 0
  DWORD offset1 // To "Int2" block from start of Granny data (from start of file)
+
  DWORD offset1 // To "Int2" block from start of Granny data
 
  DWORD offset2 // To start of Granny data (from start of this DWORD)
 
  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)
 
  DWORD chunk1offset // To start first of "Int2" Chunk (from start of this DWORD)
Line 38: Line 38:
 
  --repetition count
 
  --repetition count
 
  DWORD
 
  DWORD
 +
 
==Granny2 Data==
 
==Granny2 Data==
 
All offsets in this section start from the start of the Granny2 Data.
 
All offsets in this section start from the start of the Granny2 Data.

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