Author Topic: How to change a weapon sprite?  (Read 494 times)

Offline Blazen

  • Sergeant
  • **
  • Posts: 36
    • View Profile
How to change a weapon sprite?
« on: October 25, 2024, 07:59:01 pm »
Hi, I'm completely new to modding and at the moment I'm just messing around with some of the vanilla items. I experimenting in OXCE I believe, if it's relevant.

I'm trying to change the sprite of an item, I can change it bigsprite number in the items.rul file and it will change to another sprite in the bigorbs.pck file but how do I get it to use a sprite which isn't already in that file?

I've tried copying a file from another mods bigobs folder but I can't get it to use it. The other file incidentally is listed as a .png file rather than a .pck file and there is no accompanying .tab file, which I suspect is relevant but I don't know how to fix.

Thanks for any help.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to change a weapon sprite?
« Reply #1 on: October 25, 2024, 08:31:26 pm »
You must declare the new custom sprite like this:

Code: [Select]
extraSprites:
  - type: BIGOBS.PCK
    files:
      62: Resources/Weapons_Compilation/ClassicWeapons/bigob_YourFile.png

The number file number is 62 here, but of course it can be anything; just don't go too low to avoid overriding vanilla ones.

The same applies to floorobs and handobs (FLOOROB.PCK and HANDOB.PCK respectively).

Offline Blazen

  • Sergeant
  • **
  • Posts: 36
    • View Profile
Re: How to change a weapon sprite?
« Reply #2 on: October 26, 2024, 11:52:41 am »
That's worked, thanks for the help.