Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Batch Code For Automating Animation Swapping - A Config Script for Super Smash Bros. (Wii U).

36 1 kb Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
echo Please make sure the folders are the name of the characters in the files!
set /p char=What character are you looking for?
set dir=%char%
setlocal enabledelayedexpansion
set String=%char%
for /L %%x in (1,1,1000) do ( if "!String:~%%x!"=="" set charlength=%%x && goto 'rest_of_code' )

: 'rest_of_code'
Set "Ext=Fit%char%*.omo"
set Count=0

for /R %%F in (%dir%\%Ext%) do (
    SET /a Count+=1
    set "file=%%~nxF"
)
set skipinitial=3
CALL SET charname=%%file:~%skipinitial%,%charlength%%%
set /a lengthtoskip = %charlength% + 14 
CALL SET charattackname=%%file:~%lengthtoskip%%%
goto 'return'

: 'return'
set /p moveswap=What move from the first character are you giving?
set /p charswap=To which character?
set dirswap=%charswap%
set "Ext=Fit%char%BodyMain*%moveswap%.omo"
for /R %%F in (%dir%\%Ext%) do (
    set "therightthing=%%~nxF"
)
set /a skipamount = 11 + %charlength%
set letterskip=3
CALL SET theletters=%%therightthing:~%skipamount%,%letterskip%%%
xcopy "%dir%\Fit%char%BodyMain%theletters%%moveswap%.omo" "%dirswap%\Fit%char%BodyMain%theletters%%moveswap%.omo*" /R /F && cd %dirswap% && del "Fit%charswap%BodyMain%theletters%%moveswap%.omo" && ren "Fit%char%BodyMain%theletters%%moveswap%.omo" "Fit%charswap%BodyMain%theletters%%moveswap%.omo"
pause
goto 'return'

To Be Paired With PACKMANAGER and this scripts sister code 'Batch File To Automate Dumping Animations'

Got sick of having to drag every characters move I wanted to swap to the main folder, finding the particular move in the long, long list of files, renaming the character part, dragging into the new folder, saying yes, waiting, it was super obnoxious. Please note this must be paired with PACKMANAGER to work which can be downloaded here (note: It also includes the batch file with this script and two others in it!)

All you have to do with this code is say what character you're taking the first move from, what the first move is, what the character you're moving it to is and the amount of letters in it's name. So it saves probably around 15-30 seconds per file, and is much, MUCH quicker for doing them in bulk.

No comments yet