Ok, since my error itself is very generic, a bi more detail.
I in essence added two ships of my own to the Mayorate mod to increase their roster. One works perfectly, one doesn't
The issue is pretty weird. It essentially messes up the planetary market for ship buying when I add ship variants to CombatCapital of Mayorate fleets and crashes the game with the NullPointer exception. I went through the JSON code but thus far couldn't find anything overtly weird so maybe I have something which is outdated with this Starsector version.
Which makes debugging worse is that it doesn't always crash and sometimes I find one variant in the ship lists to buy without any glitch but later on a different market it crashes. I assumed one variant might be bugged but if I make all variants the same (aka they are the same but for their designation) the glitch still happens even after going through all three.
I generally add this to the mayorate faction:
"combatCapital": {
"ilk_ravana_pursuit": 8,
"ilk_ravana_CS": 12,
"ilk_shiva_standard": 8,
"ilk_shiva_heavy": 5,
"ilk_shiva_artillery": 5, "fallback": {
"combatLarge": 2
}
},
ilk_shiva_heavy
{
"displayName": "bulkwark",
"fluxCapacitors": 30,
"fluxVents": 21,
"hullId": "ilk_shiva",
"hullMods": [
"stabilizedshieldemitter",
"heavyarmor",
"extendedshieldemitter"
],
"variantId": "ilk_shiva_heavy",
"weaponGroups": [
{
"autofire": false,
"mode": "LINKED",
"weapons": {"WS0022": "ilk_thermal_lance_big"}
},
{
"autofire": false,
"mode": "ALTERNATING",
"weapons": {
"WS0009": "ilk_nuke_large",
"WS0010": "ilk_nuke_large"
}
},
{
"autofire": false,
"mode": "LINKED",
"weapons": {
"WS0019": "ilk_fluxtorp",
"WS0011": "heavymauler",
"WS0012": "heavymauler",
"WS0013": "heavymauler",
"WS0014": "heavymauler"
}
},
{
"autofire": true,
"mode": "LINKED",
"weapons": {
"WS0001": "irpulse",
"WS0002": "irpulse",
"WS0003": "ilk_graser_light",
"WS0004": "ilk_graser_light",
"WS0005": "ilk_graser_light",
"WS0006": "ilk_graser_light",
"WS0020": "irpulse",
"WS0021": "irpulse"
}
},
{
"autofire": true,
"mode": "LINKED",
"weapons": {
"WS0007": "ilk_graser_pd",
"WS0008": "ilk_graser_pd",
"WS0015": "ilk_graser_pd",
"WS0016": "ilk_graser_pd",
"WS0017": "ilk_graser_pd",
"WS0018": "ilk_graser_pd",
}
},
]
}
ilk_shiva_standard
{
"displayName": "ship of the wall",
"fluxCapacitors": 30,
"fluxVents": 21,
"hullId": "ilk_shiva",
"hullMods": [
"stabilizedshieldemitter",
"unstable_injector",
"targetingunit"
],
"variantId": "ilk_shiva_standard",
"weaponGroups": [
{
"autofire": false,
"mode": "LINKED",
"weapons": {"WS0022": "ilk_thermal_lance_big"}
},
{
"autofire": false,
"mode": "ALTERNATING",
"weapons": {
"WS0009": "ilk_laserhead",
"WS0010": "ilk_laserhead"
}
},
{
"autofire": false,
"mode": "LINKED",
"weapons": {
"WS0019": "gauss",
"WS0011": "heavyneedler",
"WS0012": "heavyneedler",
"WS0013": "heavyneedler",
"WS0014": "heavyneedler"
}
},
{
"autofire": true,
"mode": "LINKED",
"weapons": {
"WS0003": "ilk_graser_light",
"WS0004": "ilk_graser_light",
"WS0005": "ilk_graser_light",
"WS0006": "ilk_graser_light",
"WS0007": "ilk_graser_light",
"WS0008": "ilk_graser_light",
"WS0020": "ilk_graser_light",
"WS0021": "ilk_graser_light"
}
},
{
"autofire": true,
"mode": "LINKED",
"weapons": {
"WS0001": "pdburst",
"WS0002": "pdburst",
"WS0015": "ilk_graser_pd",
"WS0016": "ilk_graser_pd",
"WS0017": "ilk_graser_pd",
"WS0018": "ilk_graser_pd",
}
},
]
}
ilk_shiva_artillery
{
"displayName": "longarm",
"fluxCapacitors": 33,
"fluxVents": 20,
"hullId": "ilk_shiva",
"hullMods": [
"stabilizedshieldemitter",
"extendedshieldemitter",
"pointdefenseai",
"targetingunit"
],
"variantId": "ilk_shiva_artillery",
"weaponGroups": [
{
"autofire": false,
"mode": "LINKED",
"weapons": {"WS0022": "ilk_thermal_lance_big"}
},
{
"autofire": false,
"mode": "LINKED",
"weapons": {
"WS0009": "atropos",
"WS0010": "atropos"
}
},
{
"autofire": false,
"mode": "LINKED",
"weapons": {
"WS0001": "ilk_driver",
"WS0002": "ilk_driver",
"WS0019": "tachyonlance"
}
},
{
"autofire": true,
"mode": "LINKED",
"weapons": {
"WS0003": "ilk_graser_light",
"WS0004": "ilk_graser_light",
"WS0005": "ilk_graser_light",
"WS0006": "ilk_graser_light",
"WS0007": "ilk_graser_light",
"WS0008": "ilk_graser_light",
"WS0015": "ilk_graser_light",
"WS0016": "ilk_graser_light",
"WS0017": "ilk_graser_light",
"WS0018": "ilk_graser_light",
"WS0020": "ilk_graser_light",
"WS0021": "ilk_graser_light"
}
},
{
"autofire": true,
"mode": "LINKED",
"weapons": {
"WS0011": "dualflak",
"WS0012": "dualflak",
"WS0013": "dualflak",
"WS0014": "dualflak"
}
},
]
}