Module:Minimap/Data

- Math - -- find a coordinate on top left of the map, and find the exact x/y position of it on the image. write both down -- do the same for bottom right (big distances help make rounding errors less impactful) -- Find imageScale: --   pixel width: difference between left most image x (that you wrote down) and right most image x --    coordinate width: same but for left most coord x (corresponding to left most point), and right most coord x --    imageScale = coordinate width / pixel width -- Find topLeftCoord: --   [1] = leftCoordX - (leftMostPixelX * imageScale) --   [2] = topCoordZ - (topMostPixelY * imageScale)

return { ["hub"]={ imageClass="minimap-hub", imageScale=0.1725146198830409, topLeftCoord={ -294, -232.4 }, imageDimensions={ 2842, 2554 }, },	["hub-0.8.1"]={ imageClass="minimap-hub-0_8_1", imageScale=0.1725146198830409, topLeftCoord={ -294, -232.4 }, imageDimensions={ 2842, 2554 }, },

["museum"]={ imageClass="minimap-museum", imageScale=0.0521952817824377, topLeftCoord={ -753.6, 765.2 }, imageDimensions={ 3815, 3874 }, },

["crypts"]={ imageClass="minimap-crypt", imageScale=0.0625938908362544, topLeftCoord={ -195.5, -161.5 }, imageDimensions={ 2445, 1422 }, },

["the park"]={ imageClass="minimap-park", imageScale=0.0625931445603577, topLeftCoord={ -479.5, -140.459 }, imageDimensions={ 3339, 3643 }, },

["howling cave"]={ imageClass="minimap-howling-cave", imageScale=0.0366624525916561, topLeftCoord={ -402.498, -105.4778 }, imageDimensions={ 2183, 3952 }, },

-- Combat Islands ["spiders den"]={ imageClass="minimap-spiders-den", imageScale=0.0916538658474142, topLeftCoord={ -390.58, -366.455 }, imageDimensions={ 2827, 2542 }, },	["blazing fortress"]={ imageClass="minimap-blazing-fort", imageScale=0.1657458563535912, topLeftCoord={ -433.6, -744.8 }, imageDimensions={ 1540, 2235 }, },	["the end"]={ imageClass="minimap-end", imageScale=0.1440200375704446, topLeftCoord={ -785.4, -411.4 }, imageDimensions={ 2333, 1951 }, },	["crimson isle"]={ imageClass="minimap-crimson-isle", imageScale=0.1440200375704446, topLeftCoord={ -785.4, -411.4 }, imageDimensions={ 2333, 1951 }, },	["stronghold"]={ imageClass="minimap-stronghold", imageScale=0.08788282290279627163781624500666, topLeftCoord={ -462, -598 }, imageDimensions={ 1832, 2059 }, },	["stronghold 1"]={ imageClass="minimap-stronghold-1", imageScale=0.08562019758507135, topLeftCoord={ -465, -598 }, imageDimensions={ 2312, 2113 }, },	["stronghold 2"]={ imageClass="minimap-stronghold-2", imageScale=0.0439642324888227, topLeftCoord={ -409, 3 }, imageDimensions={ 3166, 1330 }, },

-- Mining Islands ["gold mine"]={ imageClass="minimap-gold-mine", imageScale=0.0623287671232877, topLeftCoord={ -86.2, -398.3 }, imageDimensions={ 2096, 2080 }, },	["deep caverns"]={ imageClass="minimap-deep-caverns", imageScale=0.06202898550724637681159420289855, topLeftCoord={ -83.193, -63.193 }, imageDimensions={ 2572, 2492 }, },	["lapis quarry"]={ imageClass="minimap-lapis-quarry", imageScale=0.036340038935756, topLeftCoord={ -61.3945, -30.413 }, imageDimensions={ 3407, 2481 }, },	["gunpowder mines"]={ imageClass="minimap-gunpowder-mines", imageScale=0.0361565131253096, topLeftCoord={ -41.129, -43.258 }, imageDimensions={ 2863, 2781 }, },	["pigmans den"]={ imageClass="minimap-pigmans-den", imageScale=0.0359453630481668, topLeftCoord={ -28.08, -33 }, imageDimensions={ 2454, 2938 }, },	["slimehill"]={ imageClass="minimap-slimehill", imageScale=0.0366620111731844, topLeftCoord={ -49.66, -49 }, imageDimensions={ 3174, 3468 }, },	["diamond reserve"]={ imageClass="minimap-diamond-reserve", imageScale=0.0361565131253096, topLeftCoord={ -66.22, -37.3 }, imageDimensions={ 3437, 3001 }, },	["obsidian sanctuary"]={ imageClass="minimap-obsidian-sanctuary", imageScale=0.0362752430815258, topLeftCoord={ -79.45, -31.386 }, imageDimensions={ 3848, 2837 }, },	["dwarven mines"]={ imageClass="minimap-dwarven-mines", imageScale=0.25, topLeftCoord={ -217.5, -178.25 }, imageDimensions={ 1708, 1909 }, },

-- Farming Islands ["the barn"]={ imageClass="minimap-barn", imageScale=0.0626151012891344, topLeftCoord={ 82.477, -322.49 }, imageDimensions={ 2125, 2045 }, },	["mushroom desert"]={ imageClass="minimap-mushroom-desert", imageScale=0.05812028692, topLeftCoord={ 84, -616 }, imageDimensions={ 5437, 5402 }, },

-- Event Islands ["winter island"]={ imageClass="minimap-winter-island", imageScale=0.1041514930808449, topLeftCoord={ -95.7, -100.89 }, imageDimensions={ 2015, 2120 }, }, }