So as to play around, and fulfil my obsession with large guns, i attempted to make a mod, but for some reason it comes up with the exception:
Unable to find source for non-optional field "NameKey" in source "<C:\Program Files\Cosmoteer\Standard Mods\Mass-Driver\mod.txt>/Actions/0/ToAdd".
The three main files are:
ID = "averseaphid.MassDriver"
Name = "Mass Driver"
Version = "1.0"
CompatibleGameVersions = ["0.15.15"]
Author = "AverseAphid"
Description = "A comically large gun that is comically overpowered."
StringsFolder = "Strings"
Actions
[
{
Action = Add
AddTo = "<ships/terran/terran.txt>/terran/parts"
ToAdd = <mass__driver/mass_driver.txt>/part
}
]
art : /BASE_PART
{
NameKey = "Parts/Mass_Driver"
IconNameKey = "Parts/MassDriverIcon"
ID = averseaphid.mass_driver // Part IDs must always be in the form of "author_name.part_name". If making your own mod, do *not* use "cosmoteer" as your author name, because it may conflict with future vanilla parts.
EditorGroup = "WeaponsProjectile"
DescriptionKey = "Parts/MassDriverDesc"
Cost = 100000
TypeCategories = [weapon, uses_ammo, is_crewed]
Size = [10, 10]
PhysicalRect = [0, 1, 3, 2]
SaveRect = &PhysicalRect
SelectionPriority = 1
SelectionTypeByRotation = true
SelectionTypeID = "cannons"
MaxHealth = 210000
InitialPenetrationResistance = 5
PenetrationRectType = Normal
ProhibitAbove = 10
AllowedDoorLocations
Parts
{
Mass_Driver = "Mass Driver"
MassDriverIcon = &massdriver
MassDriverDesc = "Mass Driver for Ranged Shots"
}
If someone could help, me and my sanity would feel greatly appreciated.