Difference between revisions of "ED534136"

From SimsWiki
Jump to: navigation, search
(Auto-inserted from WakkaWikki)
 
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
{{OldWikiEntry}} LIFO ED534136
+
{{Resource tgi
 +
|short = LIFO
 +
|long = Large image file
 +
}}
  
This is a full sized texture
+
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.
these files are referenced in txtr files(which seem to be mipmaps)
+
they are refrenced as the largest maps in the txtr files
+
  
<pre>
+
==Format==
7BITSTR block name ; "cLevelInfo"
+
;7BITSTR
DWORD block ID ; 0xed534136
+
:Block name ("cLevelInfo")
DWORD block version ; 0x9
+
;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
  
REF reference: load a cSGResource
+
==Image data==
 +
To calculate the format of the image data, use the following formula:
  
DWORD Width
+
;''if ([data length] == 4*w*h)''
DWORD Height
+
::format = ARGB
DWORD Z-level
+
;''else if ([data length] == 3*w*h)''
DWORD data Length
+
::format = RGB
PRIOR data
+
;''else if ([data length] == w*h)''
</pre>
+
:;''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
  
To calculate the format of the image data, use the following formula:
+
==Notes==
 +
This file type uses the Resource Collection format [[RCOL]].
 +
 
 +
{{OldWikiEntryCleaned|ED534136|LIFO}}
  
<pre>
+
[[Category:Sims 2 Modding]]
if ([data length] == 4*w*h)
+
[[Category:InternalFormats]]
  format = ARGB
+
[[Category:FormatsByTGI]]
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
+
</pre> [[Category:Modding]]
+

Latest revision as of 21:10, 17 September 2012

ED534136
Short name: LIFO
Long name: Large image file

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.

[edit] 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

[edit] 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

[edit] Notes

This file type uses the Resource Collection format RCOL.

This article is one of several on this topic imported from the old MTS2 wiki. It's original pages, with comments, can be found at http://old_wiki.modthesims2.com/ED534136 and http://old_wiki.modthesims2.com/LIFO

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox