This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Blizzard has changed the texture file with POI images, so the images are no longer correct.
I've changed the code in "CorpsePOI.lua" and "Landmarks.lua" to comply with the new texture file - send me a message if you want a copy.
I'm new here and would like to see your fixes, even just the affected lines in a diff format would be good, but I don't see a way to message you from this site. thanks
in CorpsePOI.lua change all lines containing "texture:SetTexCoord" to "texture:SetTexCoord(8/16, 9/16, 0, 1/16)"
the Landmarks.lua is a bit more complicated:
I added th following at line 6:
local TEXTURE_GRID = 16
Line 13:
texture:SetTexCoord( (6 % TEXTURE_GRID)/TEXTURE_GRID ,((6+ 1) % TEXTURE_GRID)/TEXTURE_GRID ,math.floor(6 / TEXTURE_GRID)/TEXTURE_GRID ,(math.floor(6 / TEXTURE_GRID) + 1) /TEXTURE_GRID)
Lines 20-61 (the change here is some of the numbers):
local battlegroundHalfways = { { -- Horde [12] = 242.5, -- tower [14] = 242.5, -- graveyard [19] = 62.5, -- mine [24] = 62.5, -- lumber mill [29] = 62.5, -- blacksmith [34] = 62.5, -- farm [39] = 62.5, -- stables }, { -- Alliance [4] = 242.5, -- graveyard [9] = 242.5, -- tower [17] = 62.5, -- mine [22] = 62.5, -- lumber mill [27] = 62.5, -- blacksmith [32] = 62.5, -- farm [37] = 62.5, -- stables } } local battlegroundFulls = { { -- Horde [2] = true, -- mine [10] = true, -- tower [13] = true, -- graveyard [20] = true, -- mine [25] = true, -- limber mill [30] = true, -- blacksmith [35] = true, -- farm [40] = true, -- stables }, { -- Alliance [3] = true, -- mine [11] = true, -- tower [15] = true, -- graveyard [18] = true, -- mine [23] = true, -- lumber mill [28] = true, -- blacksmith [33] = true, -- farm [38] = true, -- stables } }
line 199:
poi.texture:SetTexCoord( (textureIndex % TEXTURE_GRID) / TEXTURE_GRID, ((textureIndex % TEXTURE_GRID) + 1) / TEXTURE_GRID, math.floor(textureIndex / TEXTURE_GRID) / TEXTURE_GRID, (math.floor(textureIndex / TEXTURE_GRID) + 1) / TEXTURE_GRID)
To post a comment, please login or register a new account.