| 05-09-2005, 08:01 PM | #1 |
Guest | I have a few dozen custom interface buttons for a range of objects. They're .tga format, with both the BTN and DISBTN versions working correctly. After a while, I noticed my map was starting to grow a little too big (KB-wise). So I went on a spree and converted almost all of my .tga's to .blp's, giving them the same path (the ReplaceableTextures\CommandButtons\BTN, etc.) and changing all the object references to them from the .tga ending to the .blp. When I started up my map for a test, all of those images were empty boxes (not neon green, you could see what was behind the image on the interface), but they worked (tooltips worked, I clicked and it trained the right unit). What went wrong? I already have some images in the map that were .blp from the start, of the exact same type and size. |
| 05-13-2005, 07:41 PM | #2 |
Guest | Does nobody know?!?! |
| 05-14-2005, 02:12 AM | #3 |
try calling them just BTN\DISBTN the name.blp, save the map then open it again that should work make shure the BTN and DISBTN have the same name |
| 05-14-2005, 03:24 AM | #4 |
Guest | Nope, it isn't working. I double-checked all the names and filepaths, made sure all the references to it were changed from .tga to .blp. Im utterly confused. |
| 05-18-2005, 10:43 AM | #5 |
Guest | I had this problem too, but I fixed it by looking at the *.blp file format and using WC3ImageExtractor to look at the default buttons. Use a Hex editor on the image file and change offset 0x08 to 00 and offset 0x14 to 05. It's something about the alpha channel I imagine. |
| 05-19-2005, 09:56 PM | #6 |
Guest | What exactly do you mean by Hex editor? I don't think I have one for images. |
| 05-20-2005, 10:11 PM | #7 |
What program did you save the tga's in, and what other programs do you have that can save as tga? |
| 05-23-2005, 08:51 PM | #8 |
Guest | Hex editor's are kind of like a text editor, but for binary data. Everything on your computer is stored in binary data, so a hex editor can open any kind of file, but the user has to know whats what. Did you try to save the image as a .jpg then convert it? If that fails you can use the hex editor method I was talking about, but it's easy to screw up your images if you don't know what your doing. There's a nice free one here: http://www.kibria.de/frhed.html |
