World Map Applet: Difference between revisions
From RuneWiki
(Created page with "thumb|Applet with all the interfaces expanded thumb|World Map export for revision 374's map === Resources === src: ht...") |
No edit summary |
||
Line 2: | Line 2: | ||
[[File:374 World Map.png|thumb|World Map export for revision 374's map]] | [[File:374 World Map.png|thumb|World Map export for revision 374's map]] | ||
=== Resources === | ===Resources=== | ||
src: https://git.runewiki.org/Old_Engine/WorldMap | src: https://git.runewiki.org/Old_Engine/WorldMap | ||
Line 8: | Line 8: | ||
data: https://runewiki.org/archive/worldmap/3xx-worldmap.jag | data: https://runewiki.org/archive/worldmap/3xx-worldmap.jag | ||
=== Loading Data === | |||
The client attempts to load the latest worldmap.jag archive. If the applet is running as a frame, it will load it locally from the working directory as "worldmap.jag" Otherwise, it will download from an HTTP server (the codebase of the Applet). | |||
When downloading remotely the URL it loads is <code>"worldmap" + sha + ".jag"</code>, where ''sha'' is half of the SHA signature (10 bytes) represented as bytes, and concatenated: | |||
for (int i = 0; i < 10; i++) | |||
sha = sha + Signature.sha[k]; | |||
=== Functions === | |||
Click and drag the mouse to pan around the map. | |||
Press "'''E'''" to export an image of the full worldmap. It will be saved as a raw RGB image and the image dimensions is in the file name. |
Revision as of 16:43, 5 September 2021
Resources
src: https://git.runewiki.org/Old_Engine/WorldMap
jar: https://runewiki.org/archive/worldmap/WorldMap-1.0.jar
data: https://runewiki.org/archive/worldmap/3xx-worldmap.jag
Loading Data
The client attempts to load the latest worldmap.jag archive. If the applet is running as a frame, it will load it locally from the working directory as "worldmap.jag" Otherwise, it will download from an HTTP server (the codebase of the Applet).
When downloading remotely the URL it loads is "worldmap" + sha + ".jag"
, where sha is half of the SHA signature (10 bytes) represented as bytes, and concatenated:
for (int i = 0; i < 10; i++)
sha = sha + Signature.sha[k];
Functions
Click and drag the mouse to pan around the map.
Press "E" to export an image of the full worldmap. It will be saved as a raw RGB image and the image dimensions is in the file name.