Object spawning badguys at the edge of culling margin errors out on mte.getTileObj()

Here’s a video to explain the problem: http://screencast.com/t/tmAoVlT8

Thanks Guys

Hello steve67,

This appears to be caused by a small error in MTE 0v927. MTE 0v943 corrected this problem. If you’d like to stay with 0v927, you should be able to fix it by changing the “locToGrid” algorithm in mte.convert, starting at line 1087. 

In 0v927 the code block looks like this. Notice the “tempX < 0” and “tempY < 0” on lines 1091 and 1094.

elseif operation == "locToGrid" then --Loc to Grid \*WORKS 3D\* local tempX = arg1 - rect1LocX[layer] + 1 local tempY = arg2 - rect1LocY[layer] + 1 if tempX \> rectsWidth[layer] or tempX \< 0 then tempX = nil tempY = nil elseif tempY \> rectsHeight[layer] or tempY \< 0 then tempY = nil tempX = nil end value = {x = tempX, y = tempY} end

Change both those zeroes into 1’s as follows. 

elseif operation == "locToGrid" then --Loc to Grid \*WORKS 3D\* local tempX = arg1 - rect1LocX[layer] + 1 local tempY = arg2 - rect1LocY[layer] + 1 if tempX \> rectsWidth[layer] or tempX \< 1 then tempX = nil tempY = nil elseif tempY \> rectsHeight[layer] or tempY \< 1 then tempY = nil tempX = nil end value = {x = tempX, y = tempY} end

That should fix the problem.

Hello steve67,

This appears to be caused by a small error in MTE 0v927. MTE 0v943 corrected this problem. If you’d like to stay with 0v927, you should be able to fix it by changing the “locToGrid” algorithm in mte.convert, starting at line 1087. 

In 0v927 the code block looks like this. Notice the “tempX < 0” and “tempY < 0” on lines 1091 and 1094.

elseif operation == "locToGrid" then --Loc to Grid \*WORKS 3D\* local tempX = arg1 - rect1LocX[layer] + 1 local tempY = arg2 - rect1LocY[layer] + 1 if tempX \> rectsWidth[layer] or tempX \< 0 then tempX = nil tempY = nil elseif tempY \> rectsHeight[layer] or tempY \< 0 then tempY = nil tempX = nil end value = {x = tempX, y = tempY} end

Change both those zeroes into 1’s as follows. 

elseif operation == "locToGrid" then --Loc to Grid \*WORKS 3D\* local tempX = arg1 - rect1LocX[layer] + 1 local tempY = arg2 - rect1LocY[layer] + 1 if tempX \> rectsWidth[layer] or tempX \< 1 then tempX = nil tempY = nil elseif tempY \> rectsHeight[layer] or tempY \< 1 then tempY = nil tempX = nil end value = {x = tempX, y = tempY} end

That should fix the problem.