gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > Batch Compiling PCX images

#105656 - thegamefreak0134 - Tue Oct 10, 2006 5:21 pm

I need to do something very specific. I have around 100 64x64 16 color PCX type images that I need converted into C code. I need them to all end up in the same file, and since they all share a common palette I need the palettes ignored.

I can do this to some extent with usenti (in which I made the images) but since I can only have one file open at once, it poses a bit of an issue. Is there any way to batch process using usenti\'s exporter? If not, is there a tool that will let me do so with 16 color images?

Thanks in DS.

-thegamefreak0134
_________________
What if the hokey-pokey really is what it's all about?

[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]

#105677 - Lick - Tue Oct 10, 2006 9:38 pm

On Windows, you can write batch files.

FOR %%f IN (*.pcx) pcx2hot.exe %%f -option

Just replace that last part with the correct exe and options.
_________________
http://licklick.wordpress.com

#105688 - shen3 - Wed Oct 11, 2006 1:16 am

Hi Gamefreak;

I've got a pcx 2 c converter I've written.

It currently works on 1 pcx image at a time, but could probably be converted to work on a bunch of files at a time.

Would you be interested in the source code for it? I'd be happy for you to extend the program and feed the changes back for inclusion in the main code.

the program gbatile, at my website, is probably similar in terms of code.
http://shen.mansell.tripod.com/games/gba/gba.html

or if you are interested, I can look for the other program, and make it available.

Shen