My Lightmap Setup & Images Saver scripts for Blender

What material is it, and how did you create it ?
Could you post the full traceback ?