Ludeon Forums

RimWorld => Mods => Help => Topic started by: SilentDan on December 31, 2021, 06:32:06 AM

Title: Textures are squashed
Post by: SilentDan on December 31, 2021, 06:32:06 AM
Hello,
I'm learning about Rimworld modding by doing the PlagueGun tutorial from wiki https://rimworldwiki.com/wiki/Plague_Gun_(1.1) (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?
Title: Re: Textures are squashed
Post by: Shinzy on December 31, 2021, 09:36:37 AM
It just need to be a square canvas, weapons will be resized into a 64x64 by the game
Title: Re: Textures are squashed
Post by: SilentDan on December 31, 2021, 12:19:00 PM
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?
Title: Re: Textures are squashed
Post by: Shinzy on January 01, 2022, 12:58:46 PM
as far as I remember it's just the weapons
Title: Re: Textures are squashed
Post by: SilentDan on January 08, 2022, 04:47:07 AM
Ok, thank you (sorry for a really late reply).