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.

Beginners > How to convert .h to .bin?

#107488 - paint panic - Mon Oct 30, 2006 4:14 am

I'm using the tutorial here:

http://www.patatersoft.info/manual.html

and it mentions a program called hConvert used to convert images in .h format to .bin. Unfortunately, hConvert doesn't seem to work for me as the "Convert" button does nothing that I can see and there is little to no documentation provided. Is there any other program or method I can use to convert the file or do I really need to do it at all?

#107524 - stepfresh - Mon Oct 30, 2006 3:08 pm

I had the same problem... use hconvert-win on the command line, it works from there

#108282 - Peter - Tue Nov 07, 2006 2:03 pm

Not really sure if hConvert modifies gfx2gba's output for nds usage (e.g. alpha bit), but in case it doesn't, you can let gfx2gba output binary data diectly. It's the "-fraw" switch. gfx2gba readme

#108326 - wintermute - Tue Nov 07, 2006 8:41 pm

Or people could start using a proper image conversion tool instead :P

http://coranac.com/projects.php#git
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#110667 - mysteryegg - Thu Nov 30, 2006 7:03 am

Also, the Mac GUI is only for PowerPC chips... you'll have to run hconvert-mac-intel from the command line if you have an Intel based Mac. (It is hidden on my machine.)

I've had problems using hConvert with 8-bit header files exported from Graphic Converter, as it doesn't seem to export a palette with the binary data. Using 16-bit, I can't get it looking right, either... on any platform. So I'm still doing gfx2gba -t8 -c256 until I can figure out the problem.