UN1VeRsE_ua Posted March 12 Posted March 12 Hello dear mod developers! I’d like to ask if it would be possible to implement a mod that prevents tank icons from being scaled. When we create our own tank icon atlas (for example using Tank Icon Maker – updated for 1.25.0.0), the UI scaling process scales the icons afterwards, which makes them blurred and hard to read. My idea is to disable scaling for tank icons entirely and instead create larger icons directly in the atlas using the existing app. This would keep them sharp and readable even when UI scaling is enabled. Thanks in advance! Quote
UN1VeRsE_ua Posted March 12 Author Posted March 12 Here is a screenshot that describes my problem. I've tried a different font/setups - all look awkward Quote
Administrator Aslain Posted March 13 Administrator Posted March 13 The first and the most important step is to save icons to png instead of dds in TIM, they will not be compressed and will not look like a crap when resized up. However it matters only for the atlas files. I don't know any other methods to prevent that icons to be scaled. Maybe try to create them in higher resolution, so if you scale them up they will still looks crips. However scaling down might be issue there if you don't scale. Just my theory... 1 Quote
UN1VeRsE_ua Posted March 13 Author Posted March 13 Thank you for the reply! I’ve already tried many different configurations, but unfortunately none of them worked so far. First of all, let’s clarify the point about the PNG. As far as I understand, the game loads the vehicle icons for the left/right player panels from battleAtlas.dds, which is essentially a PNG atlas stored with a .dds extension. If we modify the atlas and add a larger icon (for example, instead of 80×24 → 320×92), and then update the coordinates and parameters in battleAtlas.xml, the game renders the icon exactly with that size (320×92), which causes it to overlap with other UI elements. I also tried another approach for testing: I downscaled the icon in battle.swf, assuming that the interfaceScale feature might later upscale it again and possibly preserve better quality. However, this did not work. After the icon is loaded from the atlas and downscaled in the SWF, it effectively becomes a rendered bitmap on the display list, not a reusable texture or vector resource. Because of this, any subsequent upscale operation simply stretches the pixels of the already downscaled image, which results in visible quality loss. My current theory is that the only viable approach would be to avoid scaling through the interfaceScale feature entirely, and instead place higher-resolution icons directly in the atlas, so the game renders them at the larger size without any runtime upscaling. Quote
UN1VeRsE_ua Posted March 17 Author Posted March 17 On 3/13/2026 at 9:43 AM, Aslain said: The first and the most important step is to save icons to png instead of dds in TIM, they will not be compressed and will not look like a crap when resized up. However it matters only for the atlas files. I don't know any other methods to prevent that icons to be scaled. Maybe try to create them in higher resolution, so if you scale them up they will still looks crips. However scaling down might be issue there if you don't scale. Just my theory... Hi! Do you have any ideas how to fix this problem regarding scaling the tanks icon? Quote
Administrator Aslain Posted March 17 Administrator Posted March 17 There is probably no simple solution to this, I have no idea, maybe you can mod some game files to prevent this behaviour. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.