Float index issue in img2map.y
It might be my setup (ubuntu) but I had to wrap the defines array in int() in order to run the script. It was returning a float and breaking the script.
result += " #define " + defineName(i) + " (" + str(defines[i][0]) + " | SFG_TILE_PROPERTY_" + propertyTypes[int(defines[i][1])] + ")\n"