Does anybody know what it takes to load and display the data in the BIN files generated from ImagetoPCE with Huc?
Haven't played with ImagetoPCE, But displaying images on the pce is basically a 3 step process:
1) Load the tile data (the tile graphics). I believe load_chr() and/or load_tile() do that. Which you use depends on how the data is actually compiled in.
2) Load the palette data.
3) Load the BAT data. The are several ways to do this; Not sure what the functions are called, but there is one to load only the BAT area. Generally, I prefer the VRAM function, though. BAT is located at 0x0000.
Some words of advice on getting things to work:
Load the tile data first. Then you can look in the mednafen debugger and see a) IF it loaded correctly, and b)Where it loaded. If you don't see any tile stuff in mednafen, try hitting the [TAB] key to change palettes. You might be using an all-black palette
When you load the palette data, make sure you load the correct palette for the tiles. It's easy to load the sprite palette area instead of the tile palettes
Once you load the BAT area, you should see -something- on the screen. If you don't, check the palette. Your BAT information may be expecting a specific range of palettes, and/or a specific location for the tile data.
As for finding problems: A hex editor is invaluable for that. You can open the data files with it, and see where things are and usually figure out what went wrong. HuC has all the information you need to decode how the various data blocks should be set up. It will take some looking through the docs, but it is there.
The good news is, once you do it and get it to work, you can wrap it in a function call, and not have to worry about it too much