Difference between revisions of "ED534136"

From SimsWiki
Jump to: navigation, search
m (Missed a category)
(Cleaned up and removed duplicate info)
Line 1: Line 1:
{{OldWikiEntry}}
+
=ED534136 (LIFO)=
{{OldWikiEntry|LIFO}}
+
This is a full sized texture these files are referenced in [[TXTR|TXTR files]] (which seem to be mipmaps). They are refrenced as the largest maps in the TXTR files.
  
LIFO ED534136
+
==Format==
 
+
;7BITSTR
This is a full sized texture
+
:Block name ("cLevelInfo")
these files are referenced in txtr files(which seem to be mipmaps)
+
;DWORD
they are refrenced as the largest maps in the txtr files
+
:Block ID (0xED534136)
 
+
;DWORD
<pre>
+
:block version (0x9)
7BITSTR block name ; "cLevelInfo"
+
;REF
DWORD block ID ; 0xed534136
+
:reference (load a cSGResource)
DWORD block version ; 0x9
+
;DWORD
 
+
:Width
REF reference: load a cSGResource
+
;DWORD
 
+
:Height
DWORD Width
+
;DWORD
DWORD Height
+
:Z-level
DWORD Z-level
+
;DWORD
DWORD data Length
+
:Length D
PRIOR data
+
;D bytes
 +
:Data
 
</pre>
 
</pre>
  
 +
==Image data==
 
To calculate the format of the image data, use the following formula:
 
To calculate the format of the image data, use the following formula:
  
<pre>
+
;''if ([data length] == 4*w*h)''
if ([data length] == 4*w*h)  
+
::format = ARGB
  format = ARGB  
+
;''else if ([data length] == 3*w*h)''
else if ([data length] == 3*w*h)
+
::format = RGB
  format = RGB
+
;''else if ([data length] == w*h)''
else if ([data length] == w*h)
+
:;''if (block name contains "bump")''
  if (block name contains "bump")
+
::::format = raw8bit
format = raw8bit
+
:;''else if (first two bytes of raw data are non-zero, and next 12 bytes are zero)''
  else if (first two bytes of raw data are non-zero, and next 12 bytes are zero)
+
::::format = DXT5
format = DXT5
+
:;''else''
  else
+
::::format = DXT3
format = DXT3
+
;''else''
else
+
::format = DXT1
  format = DXT1
+
</pre>
+
==This file type uses the Resource Collection format [[RCOL]].==
+
NOT COMPLETE!
+
 
+
====LIFO====
+
 
+
LIFO ED534136
+
 
+
This format has a standard [[RCOL]] header and generally has just one block formatted as follows
+
  
 +
==Notes==
 +
This file type uses the Resource Collection format [[RCOL]].
  
1 $len(0xa)
+
{{OldWikiEntryCleanedOther}}
10 "cLevelInfo"
+
{{OldWikiEntryCleanedOther|LIFO}}
4 oxed534136
+
4 modifier(0x9)
+
1 $len(0xb)
+
11 "cSGResource"
+
4 0x0
+
4 0x2
+
1 $len
+
n $filename
+
4 unknown x(Always a power of 2 aka 16,32,64 etc)
+
4 unknown y(Always a power of 2)
+
4 unknown z(Always a power of 2)
+
4 Length of data in bytes(x*y is always either this or twice this I cant fit z in any pattern that works)
+
x data
+
  
 
[[Category:Modding]]
 
[[Category:Modding]]
 
[[Category:InternalFormats]]
 
[[Category:InternalFormats]]
 
[[Category:FormatsByTGI]]
 
[[Category:FormatsByTGI]]

Revision as of 13:43, 17 July 2006

Contents

ED534136 (LIFO)

This is a full sized texture these files are referenced in TXTR files (which seem to be mipmaps). They are refrenced as the largest maps in the TXTR files.

Format

7BITSTR
Block name ("cLevelInfo")
DWORD
Block ID (0xED534136)
DWORD
block version (0x9)
REF
reference (load a cSGResource)
DWORD
Width
DWORD
Height
DWORD
Z-level
DWORD
Length D
D bytes
Data

</pre>

Image data

To calculate the format of the image data, use the following formula:

if ([data length] == 4*w*h)
format = ARGB
else if ([data length] == 3*w*h)
format = RGB
else if ([data length] == w*h)
if (block name contains "bump")
format = raw8bit
else if (first two bytes of raw data are non-zero, and next 12 bytes are zero)
format = DXT5
else
format = DXT3
else
format = DXT1

Notes

This file type uses the Resource Collection format RCOL.

Template:OldWikiEntryCleanedOther Template:OldWikiEntryCleanedOther

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox