Is it possible to check if a hullmods is s-modded?
Edit: Also, are default_ship_roles loaded on each start-up, or are they per-save?
If I remove the file from a mod, will that ship's mods stop spawning?
variant.getSMods().contains(mod id)
I believe it's loaded on each startup!
Spoiler
5338348 [Thread-3] INFO com.fs.starfarer.api.impl.campaign.intel.SurveyPlanetMissionIntel - Created SurveyPlanetMissionIntel: Bhelxiope, faction: Mayasura
5340199 [Thread-3] INFO sound.oo0O - Cleaning up music with id [Seeking_Answers.ogg]
5340207 [Thread-7] INFO sound.oo0O - Cleaning up music with id [Sovereignty.ogg]
5340314 [Thread-9] INFO sound.oo0O - Creating streaming player for music with id [Ambush.ogg]
5340319 [Thread-9] INFO sound.OooO - Playing music with id [Ambush.ogg]
5341292 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.api.impl.campaign.fleets.RouteManager$RouteSegment.isInSystem(RouteManager.java:141)
at com.fs.starfarer.api.impl.campaign.fleets.RouteManager$RouteData.getInterpolatedHyperLocation(RouteManager.java:379)
at com.fs.starfarer.api.impl.campaign.fleets.RouteManager.shouldSpawn(RouteManager.java:651)
at com.fs.starfarer.api.impl.campaign.fleets.RouteManager.spawnAndDespawn(RouteManager.java:617)
at com.fs.starfarer.api.impl.campaign.fleets.RouteManager.advance(RouteManager.java:577)
at com.fs.starfarer.api.impl.campaign.CoreScript.advance(CoreScript.java:128)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
got the above error when the bounty i was after was about to show up in campaign
i cant tell by looking what may be causing the error
was hoping someone else could point me in the right direction
i have a LOT of mods so......shot in the dark
Ahh, can't really say what mod it might be from. This looks like it's caused by a RouteSegment whose "from" entity was removed from the Sector entirely, which means it was probably a non-permanent object such as a fleet. Fixed up that particular crash on my end, but, right, impossible to tell from the stack trace what mod might've caused it, or, indeed, if it was a combination of mods, or a mod plus vanilla. For example, it looks like a mod doing seeming something unrelated (such as dynamically removing a planet) could cause this.
Is it possible to check if a hullmods is s-modded?
ShipVariantAPI has a getSMods() method, so you could presumably do a check against that.
(Right! Ninja'ed - I appreciate you taking the time to answer, that really helps me a lot.)