Jump to content

Weidu commands for mass renaming


deratiseur

Recommended Posts

Posted

Hello.

 

I'm looking for a weidu action for copiing all a directory and renaming all the files from MZO2*.* to MGWO*;* (for example)

I need this because my kit mod use many animation from IWD and use the IWD slots. But in IWDEE, i cannot use the sames, so i have to uses the IWD2 slots.

Posted

You'd probably have to abuse ACTION_BASH_FOR:

 

 

ACTION_BASH_FOR ~path/to/bams~ ~^MZO2.+\.bam$~ BEGIN

  OUTER_INNER_PATCH_SAVE new "%BASH_FOR_RES%" BEGIN
    REPLACE_TEXTUALLY ~^MZO2~ ~MGWO~
  END
 
  COPY ~%BASH_FOR_FILESPEC%~ ~override/%new%.bam~

END

 

Freehand code, so there may be some syntax errors in there.

Posted

Thanks, That's work. Now my "Diablo2 Sand Maggot young" in IC_ZOMBI slot in BG2 BGT BGEE BG2EE games use the WORG slot in IWDEE. I patch the creature as well. Thanks again.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...