functionfindVectorsSized(size)localret={}localtext=GetTextRegion()fork,vinpairs(offsets.getvectors())doifGetRegionIn2(k)~=nilthen--if v>4 thenlocaltv=engine.peek(k,ptr_vector)iftv:size()==sizethenprint(string.format("%x is size %d",k,size))table.insert(ret,k)endendendreturnretendfunctionfindMaterial(mattype,matname)--currently only stoneslocaltbl=BuildMaterialTable()returntbl[matname]endfunctioniter(tbl)ifgetmetatable(tbl)~=nilthenifgetmetatable(tbl).__next~=nilthenreturngetmetatable(tbl).__next,tblelsereturngetmetatable(tbl).__pairs(tbl)orpairs(tbl)endelsereturnpairs(tbl)endend