I was running out of space for resources in my GameFont files. I have asked about it here before and people advised me that it should be possible to just plain out add icon boxes into the file and the game will recognise it, to extend the space for additional icons like some other mods have done (e.g. C2C). But whenever I try this the game has issues reading the font file, using the wrong icons in places and resulting in size errors for the game text.
I have attached the underlying bmp files for GameFont_75.tga before and after editing it, and here's an example for the resulting errors in the game:
My process to edit the files was this: open the *.tga file in DXTBmp, send the main colour channel to GIMP, add white boxes with GIMP, then import the main colour channel back into DXTBmp and save to TGA. Then open the extended fonts with GameFontEditor and move around the actual icons.
After that didn't work, I also tried to account for the magic cyan pixels in the file, adding them to the right of every non-empty icon box. But I'm still confused about what the cyan pixels are exactly needed for, because the original working fonts file I had did not have them everywhere, and I'm not sure if they need to come after every box or every non-empty box. I trial and errored multiple variations of this but all showed the above issues.
What am I doing wrong? Is something missing? I'd love to understand all of this a bit better.
I have attached the underlying bmp files for GameFont_75.tga before and after editing it, and here's an example for the resulting errors in the game:
Spoiler :
My process to edit the files was this: open the *.tga file in DXTBmp, send the main colour channel to GIMP, add white boxes with GIMP, then import the main colour channel back into DXTBmp and save to TGA. Then open the extended fonts with GameFontEditor and move around the actual icons.
After that didn't work, I also tried to account for the magic cyan pixels in the file, adding them to the right of every non-empty icon box. But I'm still confused about what the cyan pixels are exactly needed for, because the original working fonts file I had did not have them everywhere, and I'm not sure if they need to come after every box or every non-empty box. I trial and errored multiple variations of this but all showed the above issues.
What am I doing wrong? Is something missing? I'd love to understand all of this a bit better.