Textures are squashed

Started by SilentDan, December 31, 2021, 06:32:06 AM

Previous topic - Next topic

SilentDan

Hello,
I'm learning about Rimworld modding by doing the PlagueGun tutorial from wiki https://rimworldwiki.com/wiki/Plague_Gun_(1.1) and I have a problem with a weapon texture. The texture is 333x102 pixels (PNG with transparent background) and when spawned the item is squashed in the width.

I didn't have this issue with a plant that I was working on earlier (just had to adjust the drawSize xml-element). Could you tell me what are the guidelines for the textures that are going for weapons?

Shinzy

It just need to be a square canvas, weapons will be resized into a 64x64 by the game

SilentDan

Yes, that was that. Thank you. Does everything is scaled to 64 by 64 pixels or there is some kind of differentiation based on the type of the thing?

Shinzy

as far as I remember it's just the weapons

SilentDan

Ok, thank you (sorry for a really late reply).