QUOTE said:
[...]
I read that you tried the same and using c.exe instead of gbalzss.exe was the key to success in your case.
Here's what I've done lately (and gives me the best result so far):
- extract opening.bnr with U8Tool (by HowardC)
- extract banner.bin with U8Tool
- extract icon.bin with U8Tool
- downloaded your "c.exe to gbalzss.exe" (and copied it in my tools dir)
- copied c.exe in my tools dir
- renamed gbalzss.exe to gbalzss_orig.exe
- renamed your .exe to gbalzss.exe
- packed banner.bin with U8Tool and clicked yes in your tool to use LZ77 compression
- packed icon.bin with U8Tool and clicked yes in your tool to use LZ77 compression
- packed opening.bnr with U8Tool
This way I'm getting an opening.bnr exactly as you've mentioned 8 bytes less than the original one.
But mine doesn't work properly (confused!). The images look somehow blurred.
Would be great if you can provide me with your exact steps or tell me what parameters you use with c.exe? Maybe this helps.
Manually packing of files I created with U8Tool (no compression) through c.exe -l -o banner.bin banner_uncomp.bin doesn't work. They don't even have the LZ77 string in it if you look inside.
Haha, I feel your pain... There was 2 types of blurred that I encountered.
1. Very dark banner and hard to see.
-
This was fixed by the c.exe stuff you detailed above.
2. The image is kind of blurred/distorted, in blocks of 4 pixels almost.
-
You fix this by adding 16 null bytes to the end of the blyrt file in the item that is corrupt (icon.bin or banner.bin).
The U8tool should add this, but it looks like some files need it and some don't and the exact rules are not known.
The rule is: If it's distorted add the bytes, if it's fine leave it alone.
You can use the banner.bin and icon.bin from ANY source that has a banner. Just swap the graphics out
Getting the alpha transparencies is another challenge. The trick is to use HowardC's TPL tool, something like:
1. Open the tpl file
2. While open, go in to the temp folder for the app and copy out the TGA file
3. Open the TGA in a graphics app that supports channels (Photoshop, Paintshop Pro etc)
4. There will be a channel called "Alpha 1" or something. That's the transparency
5. Create your image and make sure the alpha channel is correct. This will allow you to have partially transparent images
6. Use the TPL tool to convert the TGA back to TPL
Let me know how you get on. I hope this helps a few people, I've been meaning to write it up for a while.
Cheers,
Nanook