Re: Error when trying to add a Custom Weapon
Code:
AddDevice = HDFirearm
InstanceName = FNP90
AddToGroup = Weapons
AddToGroup = Automatics
AddToGroup = Subguns
Mass = 10
HitsMOs = 0
GetsHitByMOs = 1
SpriteFile = ContentFile
FilePath = Base.rte/Devices/SMGs/FNP90-WEAPON.bmp
FrameCount = 2 <--- That's it
Looks like you didn't make a firing animation/image for the gun, judging by the first error.
To fix, make it go FrameCount = 1 instead.
Oh yes, when spriting, it is DEADLY important to make it in the right palette, or else you'd
just get a fudged up sprite in game.
An easy way to do this is to copy the original sprite into the palette.bmp, and then crop
it into the right size. Or just make it in the palette.bmp image from the start
Edit: Hmm, after seeing the second error, i don't know exactly what to do. That type of
error is a real bugger, as it isn't very accurate in pointing out the line.
Wait... I see something.
Code:
AddAmmo = Magazine
InstanceName = Magazine FNP90
Mass = 2
HitsMOs = 0
GetsHitByMOs = 0
SpriteFile = ContentFile
FilePath = Base.rte/Devices/SMGs/FNP90-MAG.bmp <--- OSHI-
FrameCount = 1
Is there any sprite file in that folder named FNP90-MAG.bmp?