osrs-wiki / osrs-wiki-maps

OSRS Wiki Maps: A set of tools for generating map images for the OSRS wiki.
https://oldschool.runescape.wiki/w/RuneScape:Map
GNU General Public License v3.0
3 stars 2 forks source link

Support dumping/rendering a selection of regions #10

Open samszotkowski opened 2 months ago

samszotkowski commented 2 months ago

This lets us specify in version.txt if we want to dump/render any particular regions (e.g. only ones that have changed since previous cache). stitch.py still needs access to all of the base tiles whether those particular regions are selected or not, so it can render plane 0 without any stitch lines, and for the zoomed out images, of which a selected region might only be a tiny part.

Note that it doesn't just render the selected regions, but also all adjacent regions in case map icons have been altered that would cross the boundary of the selected regions into adjacent ones.

allenkinzalow commented 2 months ago
Screenshot 2024-08-23 at 10 14 28 PM

It looks like it is rendering the map icons in other regions, but not the other regions.

samszotkowski commented 2 months ago

Interesting, did you have anything in your base tiles folder before running or did you start from scratch w/ a selection?

samszotkowski commented 2 months ago

The idea of selections was that you have the previous tiles already rendered and you just need to add or replace some, so using a selection assumes the base tiles directory is already full. It will use the existing base tiles to generate those zoomed out images, but if they don't exist then you'll get garbage... I think that's what's happening here