I updated a mod that adds some ships (prv Starworks, specifically). Now, in my existing save, the list
List<ShipVariantAPI> targets = Global.getSector().getAutofitVariants().getTargetVariants(ship.getHullId());
can contain entries that are null, for some of the ships in the updated mod.
The null entries don't appear to exist in a new game.
How do I make the null variants go away?
How do I add a military market to an non player market? I'm asking as there are no independent military markets in game that I can find and I feel like there really probably should be one so I'm wondering how I can add one in.
To add a military market one-time in current game: Console while docked at the planet/station, then undock and redock
runcode Global.getSector().getCampaignUI().getCurrentInteractionDialog().getInteractionTarget().getMarket().addSubmarket("generic_military")
To apply this to every future game, open [starsector-core]/data/campaign/econ/<systemname>.json and add a
"militarybase" to the industries table of the relevant planet or station.