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
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Les fichiers '''TPL''' ('''T'''exture '''P'''alette '''L'''ibrary) sont des dossiers qui contiennent une ou plusieurs images.
[[Gotcha Force | ← Gotcha Force]]


<br>
''This article is about the TPL file format.''
<div style="overflow-x:auto;">


{| style="padding:0px; margin:0px; width:100%; background-color: transparent; white-space:nowrap;" cellspacing="3"
{{Research | 1| The structure of this file is well known. }}
| colspan="2" |
{| style="padding:0px; background-color: transparent;" width="100%"
| style="width:18%; text-align:center; white-space:nowrap;" |
<div style="font-size:195%;color: rgb(241, 196, 15);">Cette section est en cours de rédaction.</div>
<div style="font-size: 125%;color: rgb(241, 196, 15);">Des recherches sont encore nécessaires et certains paragraphes peuvent être faux.</div>
|}
|}
</div>


<br>__toc__
'''TPL''' file format ('''T'''exture '''P'''alette '''L'''ibrary) is a folder with [https://www.gc-forever.com/yagcd/chap15.html#sec15.3 one or several texture].


== Format ==
== Format ==
A TPL file contains one or several texture:
{| class="wikitable"
! colspan=2 | General format
|-
| colspan=2 align=center | TPL header file
|-
| colspan=2 align=center | Image offset table
|-
| rowspan=4 align=center | All images || align=center | Palette header (optional)
|-
| align=center | Palette data (optional)
|-
| align=center | Image header
|-
| align=center | Image data
|}


=== Header ===
=== Header ===


=== Table d'offset d'images ===
In general the header has a length of 12 bytes. All offsets are relative to the header.


=== Palette Header ===
Header:


=== Image Header ===
{| class="wikitable"
! colspan=3 | Header
|-
! Offset !! Length !! Description
|-
| 0x00 || 4 || FileMagic. Always "\x00\x20\xAF\x30" (big endian)
|-
| 0x04 || 4 || Image count.
|-
| 0x08 || 4 || Image table offset
|}


=== Image ===
=== Gotcha Force TPLs length ===


=== Taille des TPLs ===
All TPLs are aligned to 32 bytes. (NTSC/USA version)
La taille des TPL en octets montrent des tailles standardisées pour certaines (version NTSC) :


206 * 3712 octets<br>206 * 14464 octets<br>14 * 115296 octets<br>5 * 573504 octets<br>(11 fichiers ayant une taille unique)
== Softwares ==


Tous les fichiers TPLs sont des multiples de 32 ;
Softwares below handle TPLs files:
== Logiciels ==
* [https://github.com/marco-calautti/Rainbow Rainbow], credits Marco Calautti.
* [https://github.com/libertyernie/brawltools BrawlBox], contributors: libertyernie, Sammi Husky, and BlackJax96
* [https://github.com/Nightcaat/CTools CTools Pack], credits Chadderz
* [https://github.com/Wiimm/wiimms-szs-tools Wiimms SZS Tools], credits Wiimm: can contain BREFT, BTI, TEX0, TPL and PNG.
* [https://wiki.tockdom.com/wiki/Wexos%27s_Toolbox Wexos's Toolbox], credits Wexos


Ces logiciels ci-dessous comprennent et peuvent ouvrir les TPL :
[[Category:File format]]
* [[BrawlBox]], par Kryal et BlackJax96
[[Category:Gotcha Force]]
* [[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
[[Catégorie:Format de fichier]]
[[Catégorie:Gotcha Force]]

Latest revision as of 13:52, 7 October 2023

← Gotcha Force

This article is about the TPL file format.


This file format is almost completely documented.
The structure of this file is well known.


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

Format

A TPL file contains one or several texture:

General format
TPL header file
Image offset table
All images Palette header (optional)
Palette data (optional)
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. Always "\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: