I was getting both errors you posted before I removed the ... from the Starter.

starter mat_overlay_init
{
...
mat_overlay.skill1=pixel_for_vec(vector(127,0,0),0,8888);
}

action matoverlay
{
my.material = mat_overlay;
}

Good luck!