|
发表于 2024-5-29 22:19:09
|
显示全部楼层
Hey, I was trying to remove Quality Captains from my Save File so I could respec my character. However, when I did so, at first it wasn't working at all; I still had the Milestone skills and couldn't respec.
However, eventually this happened:
151808 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException
java.lang.NullPointerException
at dal.plugins.Captains_Utils.uninstallQC(Captains_Utils.java:237)
at dal.plugins.qcDynamicSettings.reloadQualityConfig(qcDynamicSettings.java:95)
at dal.plugins.Captains_ModPlugin.onApplicationLoad(Captains_ModPlugin.java:26)
at com.fs.starfarer.loading.ResourceLoaderState.init(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)
Reviewing the Java files themselves, looks like the issues occur at these lines:
Captains_Util:
for (FleetEventListener listener : Global.getSector().getPlayerFleet().getEventListeners()) {
if (listener.equals(new CaptainsCombatListener())) {
Global.getSector().getPlayerFleet().removeEventListener(listener);
}
}
Captains_ModPlugin:
if (Global.getSettings().getModManager().isModEnabled("lunalib")) {
qcDynamicSettings temp = new qcDynamicSettings();
LunaSettings.addSettingsListener(new qcDynamicSettings());
temp.reloadQualityConfig();
}
qcDynamicSettings:
if (Captains_Utils.QCInstalled) {
if (Global.getSector() != null) Captains_Utils.installQC();
reloadQualityCombat();
reloadQualityLeadership();
reloadQualityTechnology();
reloadQualityIndustry();
if (QCCustomBattleEffects) {
reloadQualityBattleEffects();
}
if (Captains_Utils.QCMilestonesEnabled) {
reloadQualityMilestoneEffects();
}
//Mod support
if(Global.getSettings().getModManager().isModEnabled("nexerelin")) {
reloadQualityNex();
}
if(Global.getSettings().getModManager().isModEnabled("vayrashippack")) {
reloadQualityVSP();
}
if(Global.getSettings().getModManager().isModEnabled("RealisticCombat")) {
reloadQualityRealisticCombat();
}
} else {
if (Global.getSector() != null) Captains_Utils.uninstallQC();
}
Underlined segments of code are the exact location of each exception thrown.
Now I can't even boot Starsector while Quality Captains is running, much less load the save whose character I was trying to respec. Otherwise I get that same crash errors. I really hope I didn't accidentally brick the save... Some help would be appreciated!
EDIT: Did some more digging and found the QualityCaptains.jason.data file. Edited it to keep running QC and the game loaded up without issue. Even managed to respec my character! So no worries here, and thanks for all the hard work on this mod!
我在英文站,找到了和我遇到一样问题的回复。但他的解决方法说的太简略了,完全没法复制他的解决方法。 |
|