Posted by: SIMON
« on: Today at 07:07:21 am » Insert Quote
Not sure if this is the right place Ivan but was wondering if u cud help me on this one. I wanted to add just the BlasterPack from ur mod into my current game but I've run into problems. First of all I had to copy in the resources the blasterpack.gif file and rename the copy HandOb_blasterpack.gif otherwise it wasn't loading. Then I had to tweak the rul file in the handob section. After that I tested it on an Ethereal Terror site and all seemed well til OPXC crashed with this error message "invalid vector<T> subscript". Attached below is my alterations, thanks in advance. Very good series of videos so far as I'm halfway thru episode 98 atm.
Hi Simon! Thanks for the feedback on the BlasterPack!
A couple things:
When you copied the BlasterPack.gif to HandOb_blasterpack.gif you were just copying the Big Object. This won't work as hand ob for the soldiers.
The other issue is that the Handob is now a spritesheet, not a folder of sprites (This is an oversight on my part). This needs a different format in the ruleset:
- type: HANDOB.PCK
width: 256
height: 40
subX: 32
subY: 40
files:
308: Resources/BlasterPack/HandOb_BlasterPack.png
This tells OpenXcom how large the image is, and where to slice it up (32x40 px). If you replace this back into your ruleset, you should be good to go.
Cheers, Ivan