Ability WeaponType
Whenever I load my mod in the Dev I get a failed assertion for weaponType == WeaponType.Beam in IBuff.cpp. Does this mean that I need to make all weapon ability buffs be beams?
Whenever I load my mod in the Dev I get a failed assertion for weaponType == WeaponType.Beam in IBuff.cpp. Does this mean that I need to make all weapon ability buffs be beams?
Are you using an ability that uses ApplyBuffTo[Something]WithTravel? You shouldn't use beam particle effects with such a structure. Rather you should use ApplyBuffToTarget combined with a cosmetic "PlayPersistientBeamEffect". Look at something like Cleansing Brilliance for an example.
Goa, I think you misunderstood, though I did not fully specify what I meant. The error I'm getting is a failed assertion that is saying that the weaponType has to be "Beam". I would like it to be "Projectile." As of now I have it using ApplyBuffToTargetNoFilterNoRange. Is that not the right structure to use? Should I use ApplyBuffToTargetWithTravelNoFilterNoRange?
ApplyBuffToTargetWithTravelNoFilterNoRange is usually used only in buff files called by ability files that use "ApplyTargetedBuffToSelf", not in ability files directly. That could be the cause of your error, and even if it isn't you probably don't want that, as it is you'd basically be able to cast that ability on anything, friend or foe, planets, stars, ships, fighters, mines etc. You should probably use ApplyBuffToTargetWithTravel if you want to make an ability work like a projectile weapon, so you can tell it what sort of targets to hit and give it a maximum range.
Ok. I'll try that. The only reason that I was not using a filter or range is that I put the filter on the ability and I have always learned in programming to "DRY" (Don't repeat yourself), so I didn't want to copy the same filter and range to each of the buffs in the sequence that would use it in case I would change it at some point.
pastebin your files. It would be easier to provide specific help.
Okay, yeah that sounds like what you are supposed to do. I agree put your files on paste bin because its hard to tell when you're talking about Abilities or buffs.
I actually figured out my problem. Thanks Goa. My main problem is that I was trying to model my ability off an ability that didn't really match what I wanted. But still, that still helped a lot. Thanks again ![]()
Welcome Guest! Please take the time to register with us.