OpenXcom Forum
Modding => Help => Topic started by: Blazen 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.
-
You must declare the new custom sprite like this:
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).
-
That's worked, thanks for the help.