Difference between revisions of "Sims 3:0xEA5118B0"

From SimsWiki
Jump to: navigation, search
(Format)
Line 1: Line 1:
[[Tutorials:TS3 Advanced Coding Tutorials]]
+
{{TS3ModdingHeader}}
<hr/>
+
{{TS3Resource
 +
|name=
 +
|typeid= 0xEA5118B0
 +
|expansion=The Sims 3
 +
}}
 +
<br clear="all">
 +
 
 
==Overview==
 
==Overview==
 
Defines special effects.
 
Defines special effects.
Line 93: Line 99:
 
</pre>
 
</pre>
 
===Effect Types===
 
===Effect Types===
{| border = "1"
+
{| class="wikitable" border="1"
 
! ID
 
! ID
 
! Name
 
! Name
Line 107: Line 113:
  
 
===Properties===
 
===Properties===
{| border = "1"
+
{| class="wikitable" border="1"
 
! ID
 
! ID
 
! Name
 
! Name
Line 141: Line 147:
  
 
==Blocks==
 
==Blocks==
{| border = "1"
+
{| class="wikitable" border="1"
 
! BlockType
 
! BlockType
 
!  
 
!  
Line 596: Line 602:
 
No examples to decode
 
No examples to decode
  
 
+
{{TS3ModdingHeader}}
<hr/>
+
[[Tutorials:TS3 Advanced Coding Tutorials]]
+

Revision as of 22:08, 4 May 2010

Tutorials by Category

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

TypeID:0xEA5118B0
Game Version:The Sims 3



Contents

Overview

Defines special effects.

Format

Data is in Big Endian order unless otherwise noted. This spec is very primitive and needs work.

WORD	Version
//BlockSections
--Repeat until BlockType 0xFFFF
	// Block List
	WORD	BlockType
	WORD	BlockVersion
	DWORD	BlockCount
	--BlockCount times
		--Insert block data(depending on type)
		
// Insert Fluid Effects

				
// Main Effect Section
BYTE[4]
DWORD EffectCount
--Repeat EffectCount
	// Effect Block Table
	DWORD
	BYTE[8]
	FLOAT
	FLOAT
	BYTE[5]
	DWORD Count1
	FLOAT[Count1]
	BYTE[16]
	DWORD BlockIndexCount
	--repeat BlockIndexCount
		BYTE BlockType
		BYTE[6]
		FLOAT
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
		BYTE
		BYTE
		DWORD Count
		--repeat Count
			FLOAT
			FLOAT
			FLOAT
		FLOAT
		FLOAT
		FLOAT
		FLOAT
		FLOAT
		FLOAT
		BYTE[12]
		FLOAT
		DWORD BlockIndex
		BYTE
		BYTE
		
--RepeatEffectCount
	// Effect Index
	DWORD BlockTableIndex
	ZSTRING EffectName
			

Fluid Effects

Format

BYTE[6]
DWORD
WORD
DWORD Count
	QWORD
	QWORD Effect Type
	DWORD Count1
		QWORD //Property ID
		BYTE dataType
		switch(dataType)
			case 06: QWORD // DDS Instance Id
			case 00: FLOAT // Little Endian

Effect Types

ID Name
0x8FAB3764 Fluid Effect
0x4968A478

Properties

ID Name
0x6CC0FD85 Diffuse Map
0x6E56548A Normal Map
0x8C27D8C9
0xC3C472A1
0x6A203374
0x556010DC
0xF2FCAD8C
0xF43D2BDC
0x3965ECE0

Blocks

BlockType
0x0001 Particle Effect
0x0002 Metaparticle Effect
0x0003 Decal Effect
0x0004 Effect Sequence
0x0005 Sound Effect
0x0006 Shake Effect
0x0007 Camera Effect
0x0008 Model Effect
0x0009 Screen Effect
0x000A P10Block
0x000B P11Block
0x000C P12Block
0x000D Distribution Effect
0x000E P14Block

Particle Effect

Format

	
BYTE
BYTE
BYTE
BYTE
FLOAT DurationMin //Little Endian
FLOAT DurationMax //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT
DWORD Count1
	FLOAT //Angle(Degrees)
FLOAT
WORD
FLOAT
DWORD Count2
	FLOAT
FLOAT
DWORD Count3
	FLOAT
FLOAT
FLOAT
BYTE[4]
DWORD Count4
	FLOAT
DWORD Count5
	FLOAT
FLOAT
DWORD Count6
	//Particle Color Delta
	FLOAT Red //Little Endian
	FLOAT Green //Little Endian
	FLOAT Blue //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
QWORD //I64 of a DDS resource
BYTE[10]
FLOAT
BYTE[8] // FFFFFFFFFFFFFFFF
BYTE
WORD
BYTE
BYTE
FLOAT
BYTE
BYTE
BYTE
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT
FLOAT
FLOAT
FLOAT //Little Endian
FLOAT
FLOAT
FLOAT
DWORD Count7
	FLOAT
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
BYTE[4] // 00FF00FF
BYTE[4]
DWORD Count8
	FLOAT
DWORD Count9
	DWORD
	QWORD
	FLOAT
	FLOAT
	FLOAT
	FLOAT
	BYTE[4]
	ZSTRING
	ZSTRING
	DWORD Count
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
FLOAT
BYTE[16]
FLOAT //-1000000000.0
FLOAT // 0.0
FLOAT //-10000.0 Little Endian
FLOAT // 10000.0 Little Endian 
BYTE[24] //FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT
FLOAT
FLOAT
DWORD Count10
	FLOAT
BYTE
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
DWORD Count11
	FLOAT
FLOAT
DWORD
BYTE[16]
DWORD Count12	
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
BYTE

Metaparticle Effect

Format

BYTE[6]
WORD
FLOAT DurationMin //Little Endian
FLOAT DurationMax//Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT 
DWORD Count1
	FLOAT
FLOAT
DWORD
DWORD Count2
	FLOAT
FLOAT
DWORD
BYTE[4]
DWORD
BYTE[4]
DWORD Count3
	FLOAT
BYTE[24] 
DWORD Count4
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
BYTE[8]
DWORD Count5
	BYTE[3]
	FLOAT
	FLOAT
	FLOAT
	BYTE[9]
DWORD Count6
	FLOAT
FLOAT
ZSTRING
ZSTRING
BYTE
BYTE[8]
FLOAT //Little Endian
BYTE[20]
FLOAT
BYTE[12]
FLOAT
BYTE[8]
BYTE[4] //00FF00FF
BYTE[8]
DWORD Count7
	DWORD
	BYTE[30]
	DWORD Count
		FLOAT //Little Endian
		FLOAT //Little Endian
		FLOAT //Little Endian
FLOAT
BYTE[16]
FLOAT //-1000000000.0
FLOAT // 0.0
FLOAT //-10000.0 Little Endian
FLOAT // 10000.0 Little Endian 
BYTE[24] //FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT
FLOAT
FLOAT
DWORD Count8
	FLOAT
BYTE
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT
FLOAT
FLOAT
BYTE
DWORD Count9
	BYTE[8]
	FLOAT //Little Endian
	FLOAT //Little Endian
	DWORD Count
		FLOAT
FLOAT
FLOAT
DWORD Count10
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT timecode
BYTE[4]

Decal Effect

Format

BYTE[4]
QWORD //I64 of a DDS resource
BYTE[6]
FLOAT
DWORD Count1
	FLOAT
DWORD Count2
	FLOAT
DWORD Count3
	FLOAT
DWORD Count4
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
DWORD Count5
	FLOAT
	FLOAT
	FLOAT
BYTE[4]
FLOAT
BYTE[8]
BYTE[8] //FFFFFFFFFFFFFFFF
BYTE

Effect Sequence

Format

DWORD Count1
	FLOAT DurationMin //Little Endian
	FLOAT DurationMax //Little Endian
	ZSTRING Effect Name
DWORD

Sound Effect

Format

DWORD
QWORD //I64 of an Audio resource
FLOAT
FLOAT
FLOAT

Shake Effect

Format

FLOAT
FLOAT
DWORD Count1
	FLOAT
DWORD Count2
	FLOAT
FLOAT
BYTE
FLOAT

Camera Effect

Format

DWORD
WORD
FLOAT
DWORD Count1
	FLOAT
DWORD Count2
	FLOAT
DWORD Count3
	FLOAT
DWORD Count4
	FLOAT
BYTE[17]
DWORD
BYTE

Model Effect

Format

BYTE[12]
FLOAT
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT
BYTE[4]
BYTE[8] //FFFFFFFFFFFFFFFF
BYTE

Screen Effect

Format

BYTE type
DWORD
DWORD Count1	
	FLOAT //Little Endian
	FLOAT //Little Endian
	FLOAT //Little Endian
DWORD Count2
	FLOAT
	FLOAT
	FLOAT
if(type == 0) BYTE[4] else BYTE[12]
BYTE[8]
BYTE[21]
BYTE[3]

P10Block

No examples to decode

P11Block

No examples to decode

P12Block

No examples to decode

Distribution Effect

Format

DWORD
DWORD
ZSTRING
BYTE[5]
FLOAT
BYTE[2]
FLOAT
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
FLOAT //Little Endian
BYTE[84]
BYTE[24] //FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
FLOAT //Little Endian
FLOAT //Little Endian
BYTE[8] //FFFFFFFFFFFFFFFF
BYTE[14]
BYTE[8] //FFFFFFFFFFFFFFFF
BYTE[5]

P14Block

No examples to decode

Tutorials by Category

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

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox