Difference between revisions of "Sims 3:0x8EAF13DE"

From SimsWiki
Jump to: navigation, search
(Granny2 Data)
Line 1: Line 1:
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
+
{{TS3ModdingHeader}}
=RIG=
+
{{TS3Resource
 +
|name=Rig Resource - _RIG
 +
|typeid= 0x8EAF13DE
 +
|expansion=The Sims 3
 +
}}
 +
<br clear="all">
 +
 
 +
==Overview==
 
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.
 
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.
  
Line 6: Line 13:
  
 
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.
 
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=
+
==Forma=t=
==Optional wrapper==
+
===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:
 
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:
  
Line 39: Line 46:
 
  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.
 
  BYTE[16] // See Rick's note below
 
  BYTE[16] // See Rick's note below
Line 77: Line 84:
 
  E59B495E6F631F141E13EBA990BEEDC4
 
  E59B495E6F631F141E13EBA990BEEDC4
 
  3195D4E320DC4F62CC36D03AB182FF89
 
  3195D4E320DC4F62CC36D03AB182FF89
<hr/>
 
[[Sims 3:Main Page]] -> [[Sims 3:PackedFileTypes]]
 
  
Based on contributions from Karybdis and Atavera
+
{{TS3ModdingHeader}}

Revision as of 21:57, 4 May 2010

Tutorials by Category

CAS | Patterns | Objects | Building | Worlds | Modding | Modding Reference 

Rig Resource - _RIG
TypeID:0x8EAF13DE
Game Version:The Sims 3



Contents

Overview

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.

=Forma=t

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			// CRC
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
Tutorials by Category

CAS | Patterns | Objects | Building | Worlds | Modding | Modding Reference 

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox