Dink Smallwood RTFONT RTTEX: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| (22 intermediate revisions by the same user not shown) | |||
| Line 62: | Line 62: | ||
x bytes - font states | x bytes - font states | ||
x bytes - font image data | |||
</pre> | |||
</div> | |||
<br> | |||
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | |||
<pre> | |||
// RTTEX file format | |||
// header | |||
6 bytes (char) - signature // "RTTXTR" | |||
4 bytes (uint32) - height | |||
4 bytes (uint32) - width | |||
4 bytes (uint32) - format | |||
4 bytes (uint32) - original height | |||
4 bytes (uint32) - original width | |||
1 byte (unsigned char) - alpha flag | |||
1 byte (unsigned char) - compression flag | |||
2 bytes (unsigned char) - reserved | |||
4 bytes (uint32) - mipmap count | |||
64 bytes - reserved | |||
x bytes - texture data | |||
</pre> | </pre> | ||
</div> | </div> | ||
| Line 71: | Line 96: | ||
=== Notes and Comments === | === Notes and Comments === | ||
* Data can be compressed with ZLIB compression. | * Data can be compressed with '''ZLIB''' compression. | ||
=== Games === | === Games === | ||
| Line 82: | Line 107: | ||
=== Compatible Programs === | === Compatible Programs === | ||
* [https://github.com/ama6nen/RTPack Modified RTPack] | * [https://github.com/ama6nen/RTPack Modified RTPack] / [https://github.com/TheC0mpany/RTPack-by-ama6nen mirror1] / [https://drive.google.com/file/d/1MyXwCh3eQ2E3tONXNtdGBjIqXu18z30T/view?usp=share_link mirror2] | ||
* [https://github.com/SethRobinson/proton Proton SDK] (especially [https://github.com/SethRobinson/proton/tree/master/shared/win/utils RTPack.exe]) | * [https://github.com/SethRobinson/proton Proton SDK] (especially [https://github.com/SethRobinson/proton/tree/master/shared/win/utils RTPack.exe]) | ||
* [https://github.com/Nenkai/RTPackConverter RTPackConverter] | * [https://github.com/Nenkai/RTPackConverter RTPackConverter] / ([https://github.com/GrowtopiaNoobs/RTPackConverter mirror1]) | ||
=== See Also === | === See Also === | ||
* [https://www.rtsoft.com/wiki/doku.php?id=proton:rtfont Creating rtfont file tutorial] | * [https://www.rtsoft.com/wiki/doku.php?id=proton:rtfont Creating rtfont file tutorial] | ||
* [https://github.com/SethRobinson/proton/blob/master/shared/util/RTFileFormat.h RTFileFormat.h] | |||
* [https://github.com/SethRobinson/proton/blob/master/shared/GUI/RTFontFileFormat.h RTFontFileFormat.h] | |||
<br/><br> | <br/><br> | ||
[[Category:Complete | [[Category:Complete Complete|Dink Smallwood RTFONT RTTEX]] | ||
[[Category:Platform PC|Dink Smallwood RTFONT RTTEX]] | [[Category:Platform PC|Dink Smallwood RTFONT RTTEX]] | ||
[[Category:CE Compressed|Dink Smallwood RTFONT RTTEX]] | [[Category:CE Compressed|Dink Smallwood RTFONT RTTEX]] | ||
| Line 100: | Line 127: | ||
[[Category:Extension_rttext | Extension: rttext]] | [[Category:Extension_rttext | Extension: rttext]] | ||
[[Category:BMS_None | BMS: None]] | [[Category:BMS_None | BMS: None]] | ||
[[Category:ZLIB compression]] | |||
[[Category:File Format]] | [[Category:File Format]] | ||
Latest revision as of 23:20, 28 January 2023
Back to index | Edit this page
RTFONT, RTTEX
- Format Type : Font / Texture
- Endian Order : Little Endian
Format Specifications
//header
6 bytes (char) - signature // "RTPACK"
1 byte (uint8) - version // 0
1 byte (uint8) - reserved
4 bytes (uint32) - compressed size
4 bytes (uint32) - decompressed size
1 byte (uint8) - compression type // 0 - None
// 1 - ZLIB
15 bytes - reserved
x bytes - font data / texture data
Other Structures
// RTFONT file format
// header
6 bytes (char) - signature // "RTFONT"
2 bytes (uint16) - character spacing
2 bytes (uint16) - line height
2 bytes (uint16) - line spacing
2 bytes (uint16) - shadow X offset
2 bytes (uint16) - shadow Y offset
2 bytes (uint16) - first character
2 bytes (uint16) - last character
2 bytes (uint16) - blank character width
2 bytes (uint16) - font state count
2 bytes (uint16) - kerning pair count
124 bytes - reserved
// characters data
num_of_characters *
{
2 bytes (uint16) - position X
2 bytes (uint16) - position Y
2 bytes (uint16) - character size X
2 bytes (uint16) - character size Y
2 bytes (uint16) - character offset X
2 bytes (uint16) - character offset Y
4 bytes (float) - character position U
4 bytes (float) - character position V
4 bytes (float) - character position U2
4 bytes (float) - character position V2
2 bytes (uint16) - xadvance
}
x bytes - font states
x bytes - font image data
// RTTEX file format // header 6 bytes (char) - signature // "RTTXTR" 4 bytes (uint32) - height 4 bytes (uint32) - width 4 bytes (uint32) - format 4 bytes (uint32) - original height 4 bytes (uint32) - original width 1 byte (unsigned char) - alpha flag 1 byte (unsigned char) - compression flag 2 bytes (unsigned char) - reserved 4 bytes (uint32) - mipmap count 64 bytes - reserved x bytes - texture data
MultiEx BMS Script
Not written yet.
Notes and Comments
- Data can be compressed with ZLIB compression.
Games
List of games using this file format:
- Dink smallwood
- Dink Smallwood HD
- Growtopia
- Tanked
Compatible Programs
- Modified RTPack / mirror1 / mirror2
- Proton SDK (especially RTPack.exe)
- RTPackConverter / (mirror1)
See Also