Macromedia Flash SWF / Scaleform GFX: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(134 intermediate revisions by the same user not shown)
Line 1: Line 1:
== SWF ==  
== SWF, GFX ==  


* ''' Format Type ''':    Animation <br>  
* ''' Format Type ''':    Animation / Container <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
* ''' Alternative Names ''': Adobe Flash / Shockwave Flash Object / Shockwave Flash / x-shockwave-flash / Flash Movie <br>
* ''' Signatures ''': FWS / CWS / ZWS / GFX / CFX <br>




=== Format Specifications ===  
=== Format Specifications ===  


<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:900px; overflow:auto;">
<pre>
<pre>
// SWF file format
// SWF/GFX file format


// little endian
// little endian


// header
// header
3 bytes (char) - magic // "FWS" - uncompressed file
3 bytes (char) - signature // "FWS" - uncompressed *.SWF file
                        // "CWS" - compressed file (SWF 6 and later only)
                            // "CWS" - ZLIB compressed *.SWF file (SWF 6 and later only)
                        // "ZWS" - LZMA compressed SWF (SWF 13 and later only)
                            // "ZWS" - LZMA compressed *.SWF file (SWF 13 and later only)
1 byte (uint8) - version   //  e.g. 0x06 for SWF 6
                            // "GFX" - same as FWS, but used in *.GFX files
                            // "CFX" - same as CWS, but used in *.GFX files
1 byte (uint8) - version //  e.g. 0x06 for version 6
                                  0x0F for version 15
                                  0x20 for version 32
4 bytes (uint32) - total file size in bytes
4 bytes (uint32) - total file size in bytes
x bytes - frame size
x bytes - frame size
Line 29: Line 35:
                                             // lower 6 bits - tag length
                                             // lower 6 bits - tag length
   x bytes - tag data
   x bytes - tag data
}
</pre>
</pre>
</div>
</div>
Full file format can be found [https://www.adobe.com/content/dam/acom/en/devnet/pdf/swf-file-format-spec.pdf here].


=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  
Line 39: Line 45:
=== Notes and Comments ===  
=== Notes and Comments ===  


* This file format occurs in Treasure Cove 2.<br>Version 1.0 uses [[GRAF:Treasure Cove! DAT|DAT]] file format for archives.
* SWF file format has been created by [https://en.wikipedia.org/wiki/FutureWave_Software FutureWave Software]. In December 1996, [https://en.wikipedia.org/wiki/Macromedia Macromedia] acquired the company. In 2005, [https://en.wikipedia.org/wiki/Adobe_Inc. Adobe] purchased Macromedia and format has been rebranded. <br>Read more about history on [https://en.wikipedia.org/wiki/SWF SWF wikipedia article].
* Files can be compressed with '''ZLIB''' compression (CWS signature) or with '''LZMA''' compression (ZWS signature).
* [https://en.wikipedia.org/wiki/Scaleform_GFx Scaleform GFX] files share the same file format with the SWF Flash files.
* SWF is acronym for "'''Small Web Format'''" and it was designed to eliminate confusion with a different technology, '''Shockwave''', from which SWF derived.
* SWF file is typically a compiled version of '''FLA''' file (Macromedia Flash Project File)
* Unreal Engine 3 uses containers for GFX files with [[Unreal Engine SWFMOVIE|SWFMOVIE]] extension.
 
=== Games ===
List of games using this format:
{| class="wikitable sortable"
|-
!    Game Title                                    !! Platform        !! Signature        !! Extension    !! Version   
|-
 
 
|    Batman: Arkham Asylum                        || PC              || unknown          || unknown      || unknown
|-
 
|    Batman: Arkham City                          || PC?              || CFX              || *.SWFMOVIE      || 8
|-
 
|    BOTOLO                                        || PC              || CWS              || *.SWF        || 30
|-
 
|    Deadpool                                      || PC              || GFX              || *.SWFMOVIE    || 8
|-
 
|    Flash Trek: Broken Mirror                    || PC              || CWS              || *.SWF        || 6
|-
 
|    Halo: Spartan Strike                          || unknown        || GFX              || *.GFX        || 17
|-
 
|    Mafia 3                                      || PC              || GFX              || *.GFX        || 15
|-
 
|    Metamorphabet                                || PC              || CWS              || *.SWF        || 24
|-
 
|    Rusty Lake Hotel                              || PC              || CWS              || *.SWF        || 43
|-
 
|    Star Wars – The Old Republic                  || unknown        || unknown          || unknown      || unknown
|-
 
|    The Henry Stickmin Collection                || PC              || CWS              || *.SWF        || 32
|-
 
|    The White Door                                || PC              || CWS              || *.SWF        || 43
|-
 
|    The Witcher 2                                || unknown        || unknown          || unknown      || unknown
|-
 
|    Windosill (2009)                              || PC              || CWS              || *.SWF        || 24
|-
 
|}


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


* Adobe AIR (Adobe Integrated Runtime)
* Adobe Flash Player
* Flash Decompiler Trillix
* [http://tulrich.com/geekstuff/gameswf.html gameswf library]
* [https://en.wikipedia.org/wiki/Gnash_(software) Gnash]
* [https://github.com/jindrapetrik/jpexs-decompiler JPEXS Free Flash Decompiler]
* [https://github.com/jindrapetrik/jpexs-decompiler JPEXS Free Flash Decompiler]
* Sothink flash Decompiler
* Sothink SWF Decompiler
* Flash Decompiler Trillix
* [https://www.swfmill.org/ swfmill]
* [https://en.wikipedia.org/wiki/SWFTools SWFTools]
 
=== See Also ===
 
* [https://www.adobe.com/content/dam/acom/en/devnet/pdf/swf-file-format-spec.pdf SWF file format (adobe.com)]
* [https://en.wikipedia.org/wiki/SWF SWF description (wikipedia)]
* [https://www.loc.gov/preservation/digital/formats/fdd/fdd000130.shtml Macromedia Flash SWF File Format, Version 7 (loc.gov)]
* [[Unreal_Engine_SWFMOVIE|SWFMOVIE file format (xentax wiki)]]
 
 
<br/><br>
<br/><br>




[[Category:Complete Almost Done|Macromedia Flash SWF]]
[[Category:Complete Complete|Macromedia Flash SWF / Scaleform GFX]]
[[Category:Platform PC|Macromedia Flash SWF]]
[[Category:Platform PC|Macromedia Flash SWF / Scaleform GFX]]
[[Category:CE None|Macromedia Flash SWF]]
[[Category:CE None|Macromedia Flash SWF / Scaleform GFX]]
[[Category:CE Compressed|Macromedia Flash SWF]]
[[Category:CE Compressed|Macromedia Flash SWF / Scaleform GFX]]
[[Category:Format_Animation | Type: Animation]]
[[Category:Format_Animation | Type: Animation]]
[[Category:Format_Container | Type: Container]]
[[Category:Extension_swf | Extension: swf]]
[[Category:Extension_swf | Extension: swf]]
[[Category:Extension_swfmovie | Extension: swfmovie]]
[[Category:Extension_gfx | Extension: gfx]]
[[Category:BMS_None | BMS: None]]
[[Category:BMS_None | BMS: None]]
[[Category:LZMA compression]]
[[Category:ZLIB compression]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 11:10, 28 January 2023

SWF, GFX

  • Format Type : Animation / Container
  • Endian Order : Little Endian
  • Alternative Names : Adobe Flash / Shockwave Flash Object / Shockwave Flash / x-shockwave-flash / Flash Movie
  • Signatures : FWS / CWS / ZWS / GFX / CFX


Format Specifications

// SWF/GFX file format

// little endian

// header
3 bytes (char) - signature  // "FWS" - uncompressed *.SWF file
                            // "CWS" - ZLIB compressed *.SWF file (SWF 6 and later only)
                            // "ZWS" - LZMA compressed *.SWF file (SWF 13 and later only)
                            // "GFX" - same as FWS, but used in *.GFX files
                            // "CFX" - same as CWS, but used in *.GFX files
1 byte (uint8) - version  //  e.g. 0x06 for version 6
                                   0x0F for version 15
                                   0x20 for version 32
4 bytes (uint32) - total file size in bytes
x bytes - frame size
2 bytes (uint16) - frame rate
2 bytes (uint16) - frame count

// tags
num_of_tags *
{
   2 bytes (uint16) - tag type and length   // upper 10 bits - tag type
                                            // lower 6 bits - tag length
   x bytes - tag data
}

MultiEx BMS Script

Not written yet.

Notes and Comments

  • SWF file format has been created by FutureWave Software. In December 1996, Macromedia acquired the company. In 2005, Adobe purchased Macromedia and format has been rebranded.
    Read more about history on SWF wikipedia article.
  • Files can be compressed with ZLIB compression (CWS signature) or with LZMA compression (ZWS signature).
  • Scaleform GFX files share the same file format with the SWF Flash files.
  • SWF is acronym for "Small Web Format" and it was designed to eliminate confusion with a different technology, Shockwave, from which SWF derived.
  • SWF file is typically a compiled version of FLA file (Macromedia Flash Project File)
  • Unreal Engine 3 uses containers for GFX files with SWFMOVIE extension.

Games

List of games using this format:

Game Title Platform Signature Extension Version
Batman: Arkham Asylum PC unknown unknown unknown
Batman: Arkham City PC? CFX *.SWFMOVIE 8
BOTOLO PC CWS *.SWF 30
Deadpool PC GFX *.SWFMOVIE 8
Flash Trek: Broken Mirror PC CWS *.SWF 6
Halo: Spartan Strike unknown GFX *.GFX 17
Mafia 3 PC GFX *.GFX 15
Metamorphabet PC CWS *.SWF 24
Rusty Lake Hotel PC CWS *.SWF 43
Star Wars – The Old Republic unknown unknown unknown unknown
The Henry Stickmin Collection PC CWS *.SWF 32
The White Door PC CWS *.SWF 43
The Witcher 2 unknown unknown unknown unknown
Windosill (2009) PC CWS *.SWF 24

Compatible Programs

See Also