Generate a new scratch codes set
@@gen_errmsg@@