Difference between revisions of "Sims 3:Catalog Resource"

From SimsWiki
Jump to: navigation, search
 
(Overview)
Line 6: Line 6:
 
! Name
 
! Name
 
|-
 
|-
| [[0x0418FE2A]]
+
| [[Sims_3:0x0418FE2A|0x0418FE2A]]
 
| Catalog Fence
 
| Catalog Fence
 
|-
 
|-
| [[0x049CA4CD]]
+
| [[Sims_3:0x049CA4CD|0x049CA4CD]]
 
| Catalog Stairs
 
| Catalog Stairs
 
|-
 
|-
| [[0x04AC5D93]]
+
| [[Sims_3:0x04AC5D93|0x04AC5D93]]
 
| Catalog Proxy Product
 
| Catalog Proxy Product
 
|-
 
|-
| [[0x04B30669]]
+
| [[Sims_3:0x04B30669|0x04B30669]]
 
| Catalog Terrain Geometry Brush
 
| Catalog Terrain Geometry Brush
 
|-
 
|-
| [[0x04C58103]]
+
| [[Sims_3:0x04C58103|0x04C58103]]
 
| Catalog Railing
 
| Catalog Railing
 
|-
 
|-
| [[0x04ED4BB2]]
+
| [[Sims_3:0x04ED4BB2|0x04ED4BB2]]
 
| Catalog Terrain Paint Brush
 
| Catalog Terrain Paint Brush
 
|-
 
|-
| [[0x04F3CC01]]
+
| [[Sims_3:0x04F3CC01|0x04F3CC01]]
 
| Catalog Fireplace
 
| Catalog Fireplace
 
|-
 
|-
| [[0x060B390C]]
+
| [[Sims_3:0x060B390C|0x060B390C]]
 
| Catalog Terrain Water Brush
 
| Catalog Terrain Water Brush
 
|-
 
|-
| [[0x316C78F2]]
+
| [[Sims_3:0x316C78F2|0x316C78F2]]
 
| Catalog Foundation
 
| Catalog Foundation
 
|-
 
|-
| [[0x319E4F1D]]
+
| [[Sims_3:0x319E4F1D|0x319E4F1D]]
 
| Catalog Object
 
| Catalog Object
 
|-
 
|-
| [[0x515CA4CD]]
+
| [[Sims_3:0x515CA4CD|0x515CA4CD]]
 
| Catalog Wall/Floor Pattern
 
| Catalog Wall/Floor Pattern
 
|-
 
|-
| [[0x9151E6BC]]
+
| [[Sims_3:0x9151E6BC|0x9151E6BC]]
 
| Catalog Wall  
 
| Catalog Wall  
 
|-
 
|-
| [[0x91EDBD3E]]
+
| [[Sims_3:0x91EDBD3E|0x91EDBD3E]]
 
| Catalog Roof Style
 
| Catalog Roof Style
 
|-
 
|-
| [[0xF1EDBD86]]
+
| [[Sims_3:0xF1EDBD86|0xF1EDBD86]]
 
| Catalog Roof Pattern
 
| Catalog Roof Pattern
 
|}
 
|}

Revision as of 13:52, 2 June 2009

Contents

Overview

Type ID Name
0x0418FE2A Catalog Fence
0x049CA4CD Catalog Stairs
0x04AC5D93 Catalog Proxy Product
0x04B30669 Catalog Terrain Geometry Brush
0x04C58103 Catalog Railing
0x04ED4BB2 Catalog Terrain Paint Brush
0x04F3CC01 Catalog Fireplace
0x060B390C Catalog Terrain Water Brush
0x316C78F2 Catalog Foundation
0x319E4F1D Catalog Object
0x515CA4CD Catalog Wall/Floor Pattern
0x9151E6BC Catalog Wall
0x91EDBD3E Catalog Roof Style
0xF1EDBD86 Catalog Roof Pattern

Format

Common

This block appears in all Catalog Resources. The name and description GUIDs can be looked up in the STBL.

DWORD //12
QWORD Name GUID //from STBL
QWORD Desc GUID //from STBL
7BITSTR // Catalog Name entry
7BITSTR // Catalog Desc entry
FLOAT price
FLOAT //always 1.0
4BYTE //binary zeros
BYTE
QWORD I64 of PNG icon //usually 0

TGI Block List

This section is used in the Material list and several Catalog Resource types

DWORD tgiCount
--repetition tgiCount TGI Block List:
	DWORD TID
	DWORD GID
	QWORD I64

Material List

This section is only present in Objects and Wall/Floor Styles; it differs slightly between the two, as annotated.

DWORD Count1
--repetition Count1 Material:
	BYTE type
	if (type != 1) DWORD
	DWORD offset		// from here to after TGI Block List
	WORD
	DWORD tgi offset	// from after this DWORD to TGI Block List
	DWORD tgi size		// size of TGI Block List
	--insert MaterialBlock
	--insert TGI Block List
	DWORD
	--if Wall/Floor Style:
		DWORD

Material Block

BYTE index //XML
--insert data for typecode 0x01 // see below
--insert data for typecode 0x01 // see below
DWORD count1
--repetition count1 Type Code List:
	BYTE controlcode
	switch(controlcode)
	{
	    case 0x40:
		(do not increase count - skip 0x40 bytes)
		break;
	    case 0x2F:
		BYTE
		DWORD
		break;
	    default:
		BYTE typecode
		--insert data for typecode // see below
		break;
	}
DWORD count2
--repeat(count2)
	Material Block

Typecodes

Typecode Data Comments
0x01 (BYTE)(6bitstr if &0x80)(BYTE if &0x40)
0x02 (BYTE)(BYTE)(BYTE)(BYTE) RGBA color
0x03 (BYTE) Index to TGI table below
0x04 (FLOAT)
0x05 (FLOAT)(FLOAT)
0x06 (FLOAT)(FLOAT)(FLOAT)
0x07 (BYTE) Boolean
Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox