There seems to be nothing wrong with the code. However, what do you want to do with this code? If you want to replace the Artillerbarrage#1, you shouldn't rename it (Enum is just hardcoded, but it doesn't affect the use and behaviour of a SW AT ALL...although it won't allow custom entries).
But you need to define the science as well, don't forget that. And sciences need to be defined in the Science.ini file, otherwise the entire thing will crash your comp...
VisiblePayloadTemplateName = TomahawkMissileWeapon ;Created when payload is dropped.
This causes my game to crash when ever i use it... :cry:
VERY true indeed. Just look at the one tiny bit I quoted from your quote. That is the very source of your problem. If you looked correctly in the original artillery code, it had ArtilleryBarrageShells which you replaced with TomahawkMissileWeapon. However, that is NOT a valid entry for that bit. Anything with the suffix Weapon behind it, should only be used to replace other entries with the suffix Weapon (like in this case, ArtilleryBarrageDamageWeapon).
Anyways, to be short, just replace TomahawkMissileWeapon with TomahawkMissile and you'll be fine (seeing as I messed around with the same bit heavily and I learned a lot from it. It works for me now ) Check my attachment to see a screenie of the TomahawkBarrage weapon I was able to create by using hte artilleryweapon template (although this is a new SW, not a replacement for the Artillery itself...)
Hey,post the code(maybe pack them in a ZIP file) and everyone can have a look at it.