A set of tools for generating map images for the OSRS wiki.
- Install JDK 11
- Install Python 3.x.
pip3 install -r requirements.txt
The files all assume your current working directory is the root of this repository.
cache.pyruns first (no arguments), downloading the latest live oldschool cache from https://archive.openrs2.org.- Cache files are stored in in
./data/versions/{version_name} - The auto-generated version name is used to (over)write
./data/versions/version.txtcontaining just the version name.
- Cache files are stored in in
MapExport.javaruns next (no arguments), reading the version name from the .txt. It generates:- Imagery tiles (no labels or map icons) go in
./out/mapgen/versions/{version_name}/tiles/rendered minimapIcons.jsonandworldMapDefinitions.jsongo in./out/mapgen/versions/{version_name}
- Imagery tiles (no labels or map icons) go in
stitch.pyruns last (no arguments), again reading the version name from the file, and rendering maps from the tiles in step 2.- Output images stored in
./out/mapgen/versions/{version_name}/output/tiles/rendered - Output icons stored in
./out/mapgen/versions/{version_name}/output/icons - Wiki basemap definitions go in
./out/mapgen/versions/{version_name}/output/basemaps.json
- Output images stored in
- The directory
./out/mapgen/versions/{version_name}/outputcan then be zipped and uploaded to map server.