Sorry to bother with yet another question. This time about new images.
I've been trying to add a new sprite sheet. I unpacked the XCOM_1 pck file (the Personal Armour one) using Bomb Bloke's pck2gif program. After making the alterations to the sprites I wanted to, I packed them as a pck file and then unpacked them back to gifs (otherwise I've ended up with palette issues which this seems to solve).
By the end, I have a two hundred orso gifs for the sprites, which I place in a folder in the OpenXcom data folder. In my ruleset file, I tried using code borrowed from elsewhere and adjusted to fit:
extraSprites:
- type: XCOM_3.PCK
width: 32
height: 40
files:
0: Resources/WillsModImages/ShieldedArmour/XCOM_3/
The armour I've added is set to use the XCOM_3.pck spite sheet which (should have been) created in-game.
When doing this, however, upon loading the game I get an error saying that the files are not a compatible type and the game will not load. I've had the same issue when attempting to load pre-existing mods which use image files. I tried to use the Combat Armour mod as a test, using the mod exactly as is and removing my own, and the same thing happened.
I also had the same problem with the Combat Knife mod. However, I was able to manually input the load for each file individually with the Combat Knife mod and this made it work. So, I tried this with my own sprite sheet, ending up with something like:
extraSprites:
- type: XCOM_3.PCK
width: 32
height: 40
files:
0: Resources/WillsModImages/ShieldedArmour/XCOM_3/xcom_03_000_0.gif
1: Resources/WillsModImages/ShieldedArmour/XCOM_3/xcom_03_001_0.gif
2: Resources/WillsModImages/ShieldedArmour/XCOM_3/xcom_03_002_0.gif
... all the way down to ...
274: Resources/WillsModImages/ShieldedArmour/XCOM_3/xcom_03_274_0.gif
Doing this has the positive effect of making the game load. However, when I attempt to load a battle with a soldier equipped in the armour, the game immediately crashes. I thought this might have been caused by the numbers being marked wrong, but I've checked it at least three times now and they're all correct.
Any thoughts on what the issue might be? I'm using the most up-to-date build (as of yesterday, anyway!). I've also been successful in adding other images into the game. I note, however, that all the others use existing sprite sheets rather than creating a new one. So, this seems to be the problem, but I don't understand why when other mods (apparently) create new sheets unproblematically. Any help would be - again - appreciated.