Gameloft CustomPak GLA: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(64 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{GRAFPageHeader}}
{{GRAFPageHeader}}
== GLA ==  
== GLA, GLA2 ==  


* ''' Format Type ''':    Archive <br>  
* ''' Format Type ''':    Archive <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Big Endian <br>
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian / Big Endian <br>
* ''' Signature ''':    D0 EE A8 9A <br>  




=== Format Specifications ===  
 
=== Format Specifications (GLA) ===  


<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
<pre>
//TODO
// GLA file format
 
// little endian or big endian
 
// header
4 bytes (uint32) - unknown
4 bytes (uint32) - data start offset
4 bytes (uint32) - filename array offset
4 bytes (uint32) - number of files
 
// files info
number_of_files *
{
  4 bytes (uint32) - file offset
  4 bytes (uint32) - file size
  4 bytes (uint32) - filename offset
  4 bytes (uint32) - file encryption flag  // 0 - no encryption
                                            // 1 - encrypted with XOR
}
 
// filenames
number_of_files *
{
  x bytes (char) - filename  // can be encrypted
}
 
// data
number_of_files
{
  x bytes - file data  // can be encrypted
}
</pre>
</pre>
</div>
</div>


=== MultiEx BMS Script ===  
=== Format Specifications (GLA2) ===  


Not written yet.
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
// Sniper Fury
// GLA2 file format


=== QuickBMS Script ===
// big endian
// Uses LZ4 Block Compression


* [http://aluigi.org/papers/bms/gameloft.bms gameloft.bms]
// ARCHIVE HEADER
* [http://aluigi.org/papers/bms/others/nova3_gla2.bms nova3_gla2.bms]
  4 - Signature ((bytes)208 238 168 154)  // 0xD0 0xEE 0xA8 0x9A
* [https://zenhax.com/viewtopic.php?t=31 Gameloft Custompak script]
  4 - Unknown
  4 - Unknown
  4 - Unknown
 
// FILE DATA
  // for each file
    X - File Data (compressed using LZ4)
   
// FILE DIRECTORY
  // for each file
    4 - Filename Hash
    4 - File Offset
    4 - Decompressed Length
    4 - Compressed Length
    4 - null
    4 - Entry Type? (0/1/8)
</pre>
</div>


=== Notes and Comments ===  
=== Notes and Comments ===  


* GLA archives may use '''Deflate''' compression or '''XOR''' encryption.
* GLA archives may use '''Deflate''' compression, '''LZ4''' compression or '''XOR''' encryption.
* There are some differences between '''GLA''' and '''GLA2''' file formats.
* GLA file format is used by games made on '''Glitch''' game engine.


=== Games ===  
=== Games ===  
List of games using this file format:
List of games using this file format:
* GT Racing 2 (Android)
* GT Racing 2 (Android)
* The Dark Knight Rises (Android)
* The Dark Knight Rises (Android) (*.GLA)
* 9mm (Android)
* 9mm (Android) (*.GLA)
* N.O.V.A 3 (Android/iOS)
* N.O.V.A 3 (Android/iOS)
* Sniper Fury (*.GLA2)
=== QuickBMS Script ===
* [http://aluigi.org/papers/bms/gameloft.bms gameloft.bms]
* [http://aluigi.org/papers/bms/others/nova3_gla2.bms nova3_gla2.bms]
* [https://zenhax.com/viewtopic.php?t=31 Gameloft Custompak script]
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Gameloft/Gameloft%20CustomPak%20GLA/gameloft_gla_script.bms gameloft_gla_script.bms]


=== Compatible Programs ===  
=== Compatible Programs ===  


* [https://forum.xentax.com/viewtopic.php?t=10794 Gameloft CustomPak Extractor]
* [https://forum.xentax.com/viewtopic.php?t=10794 Gameloft CustomPak Extractor] + [https://drive.google.com/file/d/1tqRBIQ0-EjYPAvx3QU1blh5mr0xnLZ-A/view?usp=sharing mirror] + [https://github.com/bartlomiejduda/Tools/files/6612669/gameloftcustompakextractor102.zip mirror2] + [https://drive.google.com/file/d/1Qz6OOibOtAIUPx1TuieQ3Os0QGIloyMm/view?usp=sharing mirror3]
* [https://forum.xentax.com/download/file.php?id=6572 Gameloft Archive Tool]
* [https://forum.xentax.com/download/file.php?id=6572 Gameloft Archive Tool]
* [[Game Extractor]] (only GLA2 extraction)
* [https://github.com/luatsenpai/gameloft-gla GameloftArchiveExtractor] (export + import, no source code)
=== See Also ===
* [[Gameloft ZIP SB]]
<br/><br>
<br/><br>
<br/><br>


Line 47: Line 117:
[[Category:Format_Archive | Type: Archive]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_gla | Extension: gla]]
[[Category:Extension_gla | Extension: gla]]
[[Category:Extension_gla2 | Extension: gla2]]
[[Category:BMS_None | BMS: None]]
[[Category:BMS_None | BMS: None]]
[[Category:XOR encryption]]
[[Category:XOR encryption]]
[[Category:Deflate compression]]
[[Category:Deflate compression]]
[[Category:LZ4 compression]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 21:55, 9 June 2022

Back to index | Edit this page

GLA, GLA2

  • Format Type : Archive
  • Endian Order : Little Endian / Big Endian
  • Signature : D0 EE A8 9A


Format Specifications (GLA)

// GLA file format

// little endian or big endian

// header
4 bytes (uint32) - unknown
4 bytes (uint32) - data start offset
4 bytes (uint32) - filename array offset
4 bytes (uint32) - number of files

// files info
number_of_files *
{
   4 bytes (uint32) - file offset
   4 bytes (uint32) - file size
   4 bytes (uint32) - filename offset
   4 bytes (uint32) - file encryption flag   // 0 - no encryption
                                             // 1 - encrypted with XOR
}

// filenames
number_of_files *
{
   x bytes (char) - filename   // can be encrypted
}

// data
number_of_files
{
   x bytes - file data   // can be encrypted
}

Format Specifications (GLA2)

// Sniper Fury 
// GLA2 file format

// big endian
// Uses LZ4 Block Compression

// ARCHIVE HEADER
  4 - Signature ((bytes)208 238 168 154)   // 0xD0 0xEE 0xA8 0x9A
  4 - Unknown
  4 - Unknown
  4 - Unknown
  
// FILE DATA
  // for each file
    X - File Data (compressed using LZ4)
    
// FILE DIRECTORY
  // for each file
    4 - Filename Hash
    4 - File Offset
    4 - Decompressed Length
    4 - Compressed Length
    4 - null
    4 - Entry Type? (0/1/8)

Notes and Comments

  • GLA archives may use Deflate compression, LZ4 compression or XOR encryption.
  • There are some differences between GLA and GLA2 file formats.
  • GLA file format is used by games made on Glitch game engine.

Games

List of games using this file format:

  • GT Racing 2 (Android)
  • The Dark Knight Rises (Android) (*.GLA)
  • 9mm (Android) (*.GLA)
  • N.O.V.A 3 (Android/iOS)
  • Sniper Fury (*.GLA2)

QuickBMS Script

Compatible Programs

See Also