Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osrs-wiki/osrs-wiki-maps
OSRS Wiki Maps: A set of tools for generating map images for the OSRS wiki.
https://github.com/osrs-wiki/osrs-wiki-maps
oldschool-runescape oldschoolrunescape osrs osrs-wiki
Last synced: about 1 month ago
JSON representation
OSRS Wiki Maps: A set of tools for generating map images for the OSRS wiki.
- Host: GitHub
- URL: https://github.com/osrs-wiki/osrs-wiki-maps
- Owner: osrs-wiki
- License: gpl-3.0
- Created: 2024-04-05T01:24:50.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T04:14:14.000Z (4 months ago)
- Last Synced: 2024-08-15T05:23:40.881Z (4 months ago)
- Topics: oldschool-runescape, oldschoolrunescape, osrs, osrs-wiki
- Language: Python
- Homepage: https://oldschool.runescape.wiki/w/RuneScape:Map
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# osrs-wiki-maps
A set of tools for generating map images for the OSRS wiki.## Setup
1. Install JDK 11
2. Install Python 3.x.
3. `pip3 install -r requirements.txt`## Generating maps
The files all assume your current working directory is the root of this repository.
1. `cache.py` runs 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.txt` containing just the version name.
2. `MapExport.java` runs 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.json` and `worldMapDefinitions.json` go in `./out/mapgen/versions/{version_name}`
3. `stitch.py` runs 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`
4. The directory `./out/mapgen/versions/{version_name}/output` can then be zipped and uploaded to map server.