Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

TPL (File format): Difference between revisions

No edit summary
No edit summary
Line 8: Line 8:
</div>
</div>


Les fichiers '''TPL''' ('''T'''exture '''P'''alette '''L'''ibrary) sont des dossiers qui contiennent [https://www.gc-forever.com/yagcd/chap15.html#sec15.35 une ou plusieurs textures].
'''TPL''' file format ('''T'''exture '''P'''alette '''L'''ibrary) is a folder with [https://www.gc-forever.com/yagcd/chap15.html#sec15.3one or several textures].


== Format ==
== Format ==


Un fichier TPL peut contenir une ou plusieurs textures :  
A TPL file can contains one or several textures:


{| class="wikitable"
{| class="wikitable"
! colspan=2 | Format général
! colspan=2 | General format
|-
|-
| colspan=2 align=center | Fichier TPL header
| colspan=2 align=center | TPL header file
|-
|-
| colspan=2 align=center | Table d'offset d'image
| colspan=2 align=center | Image offset table
|-
|-
| rowspan=4 align=center | Toutes les images || align=center | Palette header (optionnel)
| rowspan=4 align=center | All images || align=center | Palette header (optionnal)
|-
|-
| align=center | Palette data (optionnel)
| align=center | Palette data (optionnal)
|-
|-
| align=center | Image header
| align=center | Image header
Line 32: Line 32:
=== Header ===
=== Header ===


En général, le header a une taille de 12 octets. Tous les offsets sont relatif à la taille du header.
In general the header has a length of 12 bytes. All offsets are relative to the header.


Header :  
Header :  
Line 39: Line 39:
! colspan=3 | Header
! colspan=3 | Header
|-
|-
! Offset !! Taille !! Description
! Offset !! Length !! Description
|-
|-
| 0x00 || 4 || FileMagic. Toujours <tt>0x00 0x20 0xAF 0x30</tt> (big endian)
| 0x00 || 4 || FileMagic. Allways "\x00\x20\xAF\x30" (big endian)
|-
|-
| 0x04 || 4 || Nombre d'images.
| 0x04 || 4 || Image count.
|-
|-
| 0x08 || 4 || Offset de la table d'image
| 0x08 || 4 || Image table offset
|}
|}


=== Table d'offset d'images ===
=== Gotcha Force TPLs length ===


=== Palette Header ===
All TPLs are aligned to 32 bytes. (NTSC/USA version)


=== Image Header ===
== Softwares ==


=== Image ===
Softwares below handle TPLs files:
 
* [https://github.com/marco-calautti/Rainbow Rainbow], credits Marco Calautti.
=== Taille des TPLs ===
* [[BrawlBox]], credits Kryal and BlackJax96
 
* [[CTools Pack]], credits Chadderz
Toutes les tailles de fichiers TPLs sont des multiples de 32 ;
* [[SZS Modifier]], credits Chadderz
 
* [[Wiimms SZS Tools]], credits Wiimm: can contain BREFT, BTI, TEX0, TPL and PNG.
== Logiciels ==
* [[Wexos's Toolbox]], credits Wexos
 
Ces logiciels ci-dessous comprennent et peuvent ouvrir les TPL :
* [https://github.com/marco-calautti/Rainbow Rainbow], par Marco Calautti.
* [[BrawlBox]], par Kryal et BlackJax96
* [[CTools Pack]], par Chadderz
* [[SZS Modifier]], par Chadderz
* [[Wiimms SZS Tools]], par Wiimm: peut convertir BREFT, BTI, TEX0, TPL et PNG dans n'importe quelle direction.
* [[Wexos's Toolbox]], par Wexos


[[Category:File format]]
[[Category:File format]]
[[Category:Gotcha Force]]
[[Category:Gotcha Force]]

Revision as of 10:20, 7 September 2022

← Gotcha Force

This article is about the TPL file format.

This section is currently being written.
More research is needed and some paragraphs may be wrong.

TPL file format (Texture Palette Library) is a folder with or several textures.

Format

A TPL file can contains one or several textures:

General format
TPL header file
Image offset table
All images Palette header (optionnal)
Palette data (optionnal)
Image header
Image data

Header

In general the header has a length of 12 bytes. All offsets are relative to the header.

Header :

Header
Offset Length Description
0x00 4 FileMagic. Allways "\x00\x20\xAF\x30" (big endian)
0x04 4 Image count.
0x08 4 Image table offset

Gotcha Force TPLs length

All TPLs are aligned to 32 bytes. (NTSC/USA version)

Softwares

Softwares below handle TPLs files: