SWG

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (Change telparia.com samples link to template)
 
(5 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
== Format details ==
 
== Format details ==
 
New SWG format is a derivative of [[LHA]] format, apparently based on LHA header level 0, with an extra 165 bytes worth of headers preceding the filename field. It has a custom "<code>-sw1-</code>" compression method, the details of which are apparently undocumented.
 
New SWG format is a derivative of [[LHA]] format, apparently based on LHA header level 0, with an extra 165 bytes worth of headers preceding the filename field. It has a custom "<code>-sw1-</code>" compression method, the details of which are apparently undocumented.
 +
 +
Some of the SWAG files require further decoding, particularly by the included [[XX34]] utility. Also included is the [[BXP]] utility, but no evidence found that it was ever used.
  
 
== Identification ==
 
== Identification ==
New format files have ASCII "{{magic|-sw1-}}" at offset 2.
+
New format: At offset 2 is ASCII "{{magic|-sw1-}}" (if the first member file was compressible), or "{{magic|-sw0-}}" (if not).
  
 
At least some old format files start with "{{magic|SWAGOLX.EXE}}".
 
At least some old format files start with "{{magic|SWAGOLX.EXE}}".
Line 26: Line 28:
 
* [http://files.mpoli.fi/software/PROGRAMM/GENERAL/] → SWAGWIN.ZIP - SWAG for WINDOWS, v1.04
 
* [http://files.mpoli.fi/software/PROGRAMM/GENERAL/] → SWAGWIN.ZIP - SWAG for WINDOWS, v1.04
 
* {{CdTextfiles|monstmedia/PROG/PASCAL/SWAG.ZIP|SWAG.ZIP}} - Maybe the first version (DOS software)
 
* {{CdTextfiles|monstmedia/PROG/PASCAL/SWAG.ZIP|SWAG.ZIP}} - Maybe the first version (DOS software)
 +
* {{Deark}} (For analysis, maybe. Does not decompress the format.)
  
 
== Sample files ==
 
== Sample files ==
Line 31: Line 34:
 
* [http://files.mpoli.fi/software/PROGRAMM/PASCAL/] → ALLSWAGS.ZIP
 
* [http://files.mpoli.fi/software/PROGRAMM/PASCAL/] → ALLSWAGS.ZIP
 
* {{CdTextfiles|monstmedia/PROG/PASCAL/SWAGABC.ZIP|SWAGABC.ZIP}} - Old format
 
* {{CdTextfiles|monstmedia/PROG/PASCAL/SWAGABC.ZIP|SWAGABC.ZIP}} - Old format
 +
* {{DexvertSamples|archive/swagPacket}}
  
 
== Links ==
 
== Links ==

Latest revision as of 02:55, 28 December 2023

File Format
Name SWG
Ontology
Extension(s) .swg
Released 1993?

SWG (SWAG packet) is a specialized archive format associated with the SourceWare Archival Group (SWAG). SWAG is a historical collection of Pascal source code.

There are at least two different SWG formats, which we'll call "old" and "new".

Contents

[edit] Format details

New SWG format is a derivative of LHA format, apparently based on LHA header level 0, with an extra 165 bytes worth of headers preceding the filename field. It has a custom "-sw1-" compression method, the details of which are apparently undocumented.

Some of the SWAG files require further decoding, particularly by the included XX34 utility. Also included is the BXP utility, but no evidence found that it was ever used.

[edit] Identification

New format: At offset 2 is ASCII "-sw1-" (if the first member file was compressible), or "-sw0-" (if not).

At least some old format files start with "SWAGOLX.EXE".

[edit] Specifications

  • SWAG.ZIP → SWAGADD.DOC - Has partial documentation of new format.
    • swg.txt - Excerpt from SWAGADD.DOC

[edit] Software

  • [1] → SWAG.ZIP - GDSOFT SWAG Packet Reader v3.13 (DOS software)
    • Note that the Reader is also included in the ALLSWAGS.ZIP file.
  • [2] → SWAGWIN.ZIP - SWAG for WINDOWS, v1.04
  • SWAG.ZIP - Maybe the first version (DOS software)
  • Deark (For analysis, maybe. Does not decompress the format.)

[edit] Sample files

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox