Custom icons - any way to resize them?
Avatar

Trying to figure this out but I'm way out of my depth when it comes to Payday modding. I've created myself some custom objective icons; problem is they don't show up in game, most likely because they're five times bigger than the originals. Is there any way to get the game to display them correctly? Help would be greatly appreciated.

Info
Avatar

I mean, just make them five times smaller then, duh.

But seriously, it would be much easier if you just told me the names of the textures you need.

Avatar

I have the texture file already - pd2_waypoints.texture

I extracted it with Diesel Bundle Viewer, converted it to a .dds file, and edited it with Paint.NET.

I made it into asset_override mod but it doesn't show up properly - the icons completely disappear.

Avatar

Can you share your file through Google Drive or something?

I mean, I made a similar retexture for myself back in the day, and it works perfectly fine. So maybe I can do something about it. I'm not that good with graphic editors, but still...


If anything, make sure that the resolution of the file stays the same, i.e., 256×128. When I started experimenting with that file, I tried to make it at a higher resolution, which resulted in the icons being out of place and more or less invisible. Just like yours.

Avatar

Here you go: https://www.mediafire.com/file/oc2uszb5dz13uhr/pd2_waypoints.texture/file

The idea was to redo the icons from scratch in a higher resolution. They look pretty crusty on anything higher than 1080p so I figured bumping the resolution would help.

If I have to keep the original size then all of my work is pointless ☹

Avatar

Yep, simply increasing the resolution won’t work here, as it's not just a regular texture, it’s a texture atlas. The game uses fixed UV coordinates (or atlas data) to read specific regions from it. When you upscale the texture without adjusting those coordinates, everything gets misaligned.

Fixing this would require editing the atlas layout / UV data, which is likely stored somewhere in the game files rather than in the DDS itself.
So, basically, this is not something that can be achieved without using Lua-scripting.

But that’s unfortunately beyond my comprehension, sorry.

Avatar

I see, damn. Well, I appreciate your help regardless!

45 1328