1
Work In Progress / Re: [HELP] Developing my first mod, could use some guidance
« on: June 11, 2015, 06:27:54 pm »
Alright, thanks, all this has really given me some framework to work with, and I'm much further along than I was when I started. However, I've hit another snag that I can't easily figure out on my own and could use some more guidance.
To try to ensure I fully understood the nuances of the sprite engine, I tried porting over XOp's Knife, to get the basics of each of the different sprite and sound types. I troubleshooted a few different things and managed to get it close to working... but openXcom always seems to crash on hit, when I swing at any target.
To try to ensure I fully understood the nuances of the sprite engine, I tried porting over XOp's Knife, to get the basics of each of the different sprite and sound types. I troubleshooted a few different things and managed to get it close to working... but openXcom always seems to crash on hit, when I swing at any target.
Code: [Select]
items:
- type: STR_KNIFE
size: 0.02
costBuy: 75
costSell: 50
weight: 1
bigSprite: 1000
floorSprite: 1000
handSprite: 1000
power: 21
strengthApplied: true
damageType: 7
clipSize: -1
tuMelee: 15
accuracyMelee: 90
battleType: 3
invWidth: 2
invHeight: 1
meleeSound: 1000
meleeHitSound: 999
meleeAnimation: 1000
skillApplied: true
listOrder: 2001
extraSprites:
- type: BIGOBS.PCK
files:
1000: resources/harumod/BIG/knife.gif
- type: FLOOROB.PCK
files:
1000: resources/harumod/FLOOR/knife.gif
- type: HANDOB.PCK
files:
1000: resources/harumod/HAND/knife/
- type: HIT.PCK
width: 128
height: 40
subX: 32
subY: 40
files:
1000: Resources/harumod/HIT/knife.gif
extraSounds:
- type: BATTLE.CAT
files:
1000: Resources/harumod/SOUND/knifeswing.ogg
999: Resources/harumod/SOUND/knifehit.ogg
I've checked several times, and all of the different files point to the right spots, and as well, the sounds (likely) aren't the issues, as the crash happens (mind you, at the END of the animation) even if I revert the sounds to the default. Notably, though, I don't think it ever gets to start playing knifehit.ogg. Any insight? Am I missing something? Thanks!