Update Repository

From The Ghar Station Wiki
Revision as of 05:59, 3 November 2018 by Imathrowback (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Glyph stores it's updates in an online repository. The URL for each game can be found in the file GlyphLibrary.xml in the element "RemoteUrl".


Each of these depots can have anywhere from 1 to 5 (or more?) patches. To access these patches the following is appended (where the question mark is the index of the depot):

  • LIVE: patchlive0?
  • PTS: patchpts0?

The current depot can be seen in the current version file:


These depots are re-used in a round-robin fashion anytime a patch is released. Sometimes a patch is uploaded to the depot but not released.

For example, to access the files from the LIVE index 1 depot you would use:

To get the versions you parse the manifest file in each depot:


The last set of lines indicate the latest version in that depot.

The depots contain PAK files which are like ZIP's that contain an archive of related files. You can also access some files directly such as the manifest:

The manifest file will contain a list of PAK file names.

To download a specific file, you would look up the hash in the manifest, find the PAK file that hash is associated with, then download the PAK file and extract it.

A feature of PAK files is that the position of the individual files is stored as a byte offset from the start which allows a downloader to request only the bytes relevant to the file rather than the whole PAK through the use of the HTTP Range header. The glyph launcher/rift does NOT use this method, instead downloading the entire PAK file which causes more bytes to be downloaded than required (particularly if only one small asset is needed)