Generator

MindstreaM's Garment Sprite Relocator

Improved on jTynne's Robe Sprite File Renamer

README:
--------------------------------------
Expected Files in the source:
--------------------------------------
#.spr
#.act
====================================================================
>spr & act files are copied as a pair (if any of them are missing the other will not be copied).
>The target folder is created if it doesnt exist
====================================================================

===== ".$i." ====="; if(!is_readable($srcpath."/".$i.".act")) { echo "Act file missing/unreadable...skipping copy operations
"; } else { foreach($genders as $gender) { $subtgt = $target."/".$i."/".$gender; if(!is_dir($subtgt)) mkdir($subtgt,0777,1); foreach($classes as $class) { if(!copy($sprpath, $subtgt."/".$class."_".$gender.".spr")) { echo "Failed to copy spr file to ".$subtgt."/".$class."_".$gender.".spr
"; } if(!copy($srcpath."/".$i.".act", $subtgt."/".$class."_".$gender.".act")) { echo "Failed to copy act file to ".$subtgt."/".$class."_".$gender.".act
"; } } } $idluas[] = "ROBE_".$i." = ".$i.","; $nameluas[] = '[SPRITE_ROBE_IDs.ROBE_'.$i.'] = "'.$i.'",'; } } echo "

Lines for spriterobeid lua:
"; foreach($idluas as $id) { echo $id."
"; } echo "
Lines for spriterobename lua:
"; foreach($nameluas as $name) { echo $name."
"; } } } ?>

Comments