Splitting CHR files from a giant CHR file for use in project

A place for your artistic side. Discuss techniques and tools for pixel art on the NES, GBC, or similar platforms.

Moderator: Moderators

Post Reply
User avatar
Hamtaro126
Posts: 818
Joined: Thu Jan 19, 2006 5:08 pm

Splitting CHR files from a giant CHR file for use in project

Post by Hamtaro126 »

Besides the file splitters that are already there, I want to keep the CHR extentions intact, So I need a new file splitter.

Instead of ''GAMENAME.(number)'' ,etc. I want to know how to split it like ''GAMENAME_(number).CHR''

If it is not that hard to make that happen, is anyone is up to doing it?
AKA SmilyMZX/AtariHacker.
User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: Splitting CHR files from a giant CHR file for use in pro

Post by tokumaru »

Can't you just make a batch file to rename the files to the format you want? A quick online search suggests that this might work:

Code: Select all

for %%f in (GAMENAME.*) do call:renamer %%f
goto:done

:renamer
set filename=%1
ren %1 %filename:.=_%.CHR

:done
Put this in a batch file in the same folder as the split files and double click it. You could even make GAMENAME a parameter instead of hardcoding it in the file, so that you can automate the process.
User avatar
Hamtaro126
Posts: 818
Joined: Thu Jan 19, 2006 5:08 pm

Re: Splitting CHR files from a giant CHR file for use in pro

Post by Hamtaro126 »

Thanks, Just what I needed!

I also think it's a bit of an oversight on my part, I did not look enough, So I'll do better to search next time!
AKA SmilyMZX/AtariHacker.
Post Reply