User:Cook Me Plox/mapgen

From Old School RuneScape Wiki
Jump to: navigation, search
  1. Download the latest entry from https://archive.runestats.com/osrs/ and un-tar it to DIRNAME/cache.
  2. Download TileShapes from https://gitlab.com/weirdgloop/map-tile-generator/-/tree/master/TileShapes and store them in DIRNAME/TileShapes.
  3. git clone https://github.com/leejt/mapgen.git
  4. Change all references of /Users/jonathanlee/mapgen/ to DIRNAME, in XteaClient.java, SpriteDumper.java, TileShapes.java, MapExport.java. (This could be cleaned up...)
  5. Change the version number "2020-08-12_a" to a more appropriate value. Usually we do the date followed by _a, or _b if we need a new cache bust, then _c, et cetera.
  6. Run MapExport.java. This should take a couple minutes.
  7. Confirm by opening a standard square (like 0_50_50.png, Lumbridge Castle) that everything looks normal.
  8. Download stitch.py, and install PIL for Python if you haven't aleady.
  9. Run stitch.py. This takes about 5 minutes and may have about a 2GB memory requirement.
  10. Sync the files to maps.runescape.wiki. In order to this you need an account on the maps server (ping me on Discord to get access). The command looks something like rsync -zarvh 2020-08-12_a/ [email protected]:DONOTREMOVE/2020-08-12_a, with the version string set appropriately.
  11. Confirm that you can access basemaps.json (example link) and an example square (e.g.) can be accessed in a web browser.
  12. Ping Jayden or Kitty to update the baseTileURL and baseMapsFile for osrs on https://gitlab.com/weirdgloop/mw-config/-/blob/master/LocalSettings.php to the correct url.

If someone is interested in automating this as part of a weekly cadence, please do! It's probably not very difficult.