Help a new Modder-Modding Weapon Sizes

Started by Nachtmahr112, June 06, 2019, 06:03:29 PM

Previous topic - Next topic

Nachtmahr112

I'm trying to make a custom weapon, a big two handed sword, and I want to oversize the weapon so that it can be larger than 64X64 pixels. I know that Jec's tools contains an OversizedWeapon Comp, but I don't know how to implement it. Does anyone know how to do this, using Jec's tools or not?

Kirby23590

#1
I think you should add a <Comps> first. Then put the OversizedWeapon Comp inside it... Like this.


<comps>
      <li Class="CompOversizedWeapon.CompProperties_OversizedWeapon"/>
</comps>


Just copy and paste that code to your Big Sword. And put a <drawSize>1.0</drawSize> inside of <graphicData> like this.


<graphicData>
      <texPath>Things/Item/Equipment/WeaponMelee/LongSword</texPath> --> You should probably Change it to your own Sword's Graphic that you made
      <graphicClass>Graphic_Single</graphicClass>

      <drawSize>(1.0)</drawSize> --> Smaller Numbers will make the weapon smaller, and Bigger numbers makes the Weapon bigger.
</graphicData>


Sorry if it sounds a bit confusing. But also check out Roxxploxx's Modding guide and The Official Rimworld Wiki Modding Tutorial for some tips...

One "happy family" in the rims...
Custom font made by Marnador.



Nachtmahr112

That worked like a charm. I didn't realize it would be so simple. Thanks a ton!

Razzoriel

As of today, I've tried using Jec's Oversized Weapon with the latest version of Harmony and it did not work. Just a heads-up.