Actions

Old Engine/JAGGRAB Protocol: Difference between revisions

From RuneWiki

No edit summary
No edit summary
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
JAGGRAB runs on port 43595.
[[File:Jaggrab Example.png|thumb|Downloading initial archives via JAGGRAB]]


This protocol was used as a fallback when a resource over HTTP was not available (due to a connection timeout or 404). It downloads the necessary BZip2 archives to bootstrap the client. They are stored in main_file_cache.idx0.
==Resources==
[[Old Engine/File Archive]]
==Basics==
JAGGRAB runs on port 43595, it is used as a fallback when a resource over HTTP is not available. It downloads the necessary BZip2 archives to bootstrap the client. They are then stored in main_file_cache.idx0.
 
This protocol is essentially HTTP/0.9, see: https://www.w3.org/Protocols/HTTP/AsImplemented.html. The main difference is the client closes the connection, not the server. If you close the connection from the server the client will raise an end of stream exception. The method is also JAGGRAB and not GET.


The remaining model, animation, midi, and map data is loaded [[On Demand Protocol|on demand in a separate protocol]].
The remaining model, animation, midi, and map data is loaded [[On Demand Protocol|on demand in a separate protocol]].


==Basics==
==URIs==
This protocol is essentially HTTP/0.9, see: https://www.w3.org/Protocols/HTTP/AsImplemented.html


The main difference is the client closes the connection, not the server. If you close the connection from the server the client will trigger an exception.
==="crc" + rand() + "-" + clientVersion===
40-byte CRC/hash of all the idx0 archives.


== URIs ==
- 36-byte CRCs: 9 archives * 4 byte CRC


=== "crc" + rand() + "-" + clientVersion ===
- 4-byte hash.


=== "title" + crcs[1] ===
==="title" + crcs[1]===
Title screen content.


=== "config" + crcs[2] ===
==="config" + crcs[2]===
Resource definitions (NPCs, Objects, Items, etc).


=== "interface" + crcs[3] ===
==="interface" + crcs[3]===
In-game interfaces.


=== "media" + crcs[4] ===
==="media" + crcs[4]===
2D graphics.


=== "versionlist" + crcs[5] ===
==="versionlist" + crcs[5]===
Contains CRCs, versions, and index data for idx1-4 files.


=== "textures" + crcs[6] ===
==="textures" + crcs[6]===
3D graphics.


=== "wordenc" + crcs[7] ===
==="wordenc" + crcs[7]===
Word encoding (censoring) data.


=== "sounds" + crcs[8] ===
==="sounds" + crcs[8]===
.WAV sounds.

Revision as of 23:51, 6 September 2021

Downloading initial archives via JAGGRAB

Resources

Old Engine/File Archive

Basics

JAGGRAB runs on port 43595, it is used as a fallback when a resource over HTTP is not available. It downloads the necessary BZip2 archives to bootstrap the client. They are then stored in main_file_cache.idx0.

This protocol is essentially HTTP/0.9, see: https://www.w3.org/Protocols/HTTP/AsImplemented.html. The main difference is the client closes the connection, not the server. If you close the connection from the server the client will raise an end of stream exception. The method is also JAGGRAB and not GET.

The remaining model, animation, midi, and map data is loaded on demand in a separate protocol.

URIs

"crc" + rand() + "-" + clientVersion

40-byte CRC/hash of all the idx0 archives.

- 36-byte CRCs: 9 archives * 4 byte CRC

- 4-byte hash.

"title" + crcs[1]

Title screen content.

"config" + crcs[2]

Resource definitions (NPCs, Objects, Items, etc).

"interface" + crcs[3]

In-game interfaces.

"media" + crcs[4]

2D graphics.

"versionlist" + crcs[5]

Contains CRCs, versions, and index data for idx1-4 files.

"textures" + crcs[6]

3D graphics.

"wordenc" + crcs[7]

Word encoding (censoring) data.

"sounds" + crcs[8]

.WAV sounds.