My friends and I have a bit of an LP planned, and I'm considering trying to mod to rebalance a lot of the items in the game to add more compelling choices, change the starting balance of funding and move funding from one country to another (new) one, etc; I've already hit my first snag in trying to make everything work, the solving of which would seem (to me) to be the first step towards really understanding how to work with OpenXCom's Rulesets.
Namely, I'd like to learn how to add a new ammo type for the basic rifle, if only to learn more about what all gets involved. I've managed to make a ruleset that gets the new ammo type to show up on the list, albeit on the bottom and not underneath the rifle, but, worryingly, OpenXCom crashes any time I try to open the Rifle entry in ufopaedia. What I have so far:
items:
- type: STR_RIFLE
compatibleAmmo:
- Sniper-Rifle_Clip
- type: Sniper-Rifle_Clip
size: 0.1
costBuy: 300
costSell: 225
weight: 4
bigSprite: 2
floorSprite: 2
hitSound: 13
hitAnimation: 26
power: 65
damageType: 1
clipSize: 5
battleType: 2
ufopaedia:
- id: Sniper-Rifle_Clip
type_id: 4
section: STR_NOT_AVAILABLE
Making a new sprite and changing the animation can come later, but for now I'd like to learn how to make it show up at the right spot on the list, not crash the game upon viewing the entry in UFOPaedia, etc. Any help is appreciated!
Oh, and if I'm posting this in the wrong spot, let me know.