Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.9.1a is out! (05/10/19); Blog post: Painting the Stars (02/07/20)

Author Topic: Templar Conquest Crash on character/sector generation  (Read 910 times)

Takion Kasukedo

  • Captain
  • ****
  • Posts: 486
  • A Mojito Drinker
    • View Profile
Templar Conquest Crash on character/sector generation
« on: June 17, 2017, 11:54:19 PM »

749452 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at exerelin.campaign.missions.ConquestMissionCreator.advance(ConquestMissionCreator.java:195)
   at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
   at com.fs.starfarer.ui.Oo0O.dismiss(Unknown Source)
   at com.fs.starfarer.ui.impl.J.dismiss(Unknown Source)
   at com.fs.starfarer.campaign.save.if.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.j.super(Unknown Source)
   at com.fs.starfarer.ui.I.processInput(Unknown Source)
   at com.fs.starfarer.ui.V.o00000(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$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Either it's Nexerelin or it's the Knights Templar
Logged
Y'know, Mojito's are pretty rad.

[Attempting to redo Discount Ships. Works on variants/new Gladiator Society Bounties in their past-time.]
[Unsure if rights are held for TL. Contact Thule for more info.]

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2550
    • View Profile
    • Sc2Mafia
    • Email
Re: Templar Conquest Crash on character/sector generation
« Reply #1 on: June 18, 2017, 12:19:15 AM »

I don't see "TEM_" or "templar" anywhere in there, but I do see "nexerelin".
Logged

Histidine

  • Admiral
  • *****
  • Posts: 2505
    • View Profile
    • Bitbucket profile
    • Email
Re: Templar Conquest Crash on character/sector generation
« Reply #2 on: June 18, 2017, 12:30:10 AM »

Code: java
			List<MissionAvailabilityAPI> missions = board.getMissionsCopy();
for (MissionAvailabilityAPI mission : missions) {
if (mission.getMission() instanceof ConquestMission) {
ConquestMission cm = (ConquestMission)(mission.getMission());
FactionAPI targetFaction = cm.getTarget().getFaction();
if (!targetFaction.isHostileTo(cm.issuer))
toRemove.add(cm);
else {
Set<SectorEntityToken> tokens = mission.getAvailableAt();
List<SectorEntityToken> toDelist = new ArrayList<>();
for (SectorEntityToken token: tokens) {
if (!token.getFaction().isHostileTo(targetFaction) // line 195
|| token.getFaction().isAtBest(cm.issuer, RepLevel.INHOSPITABLE))
toDelist.add(token);
}

for (SectorEntityToken token : toDelist) {
board.makeUnavailableAt(cm, token);
}
}
}
}
How would this NPE? Can the tokens returned by mission.getAvailableAt() have a null faction?
Logged

Takion Kasukedo

  • Captain
  • ****
  • Posts: 486
  • A Mojito Drinker
    • View Profile
Re: Templar Conquest Crash on character/sector generation
« Reply #3 on: June 18, 2017, 01:44:54 AM »

I haven't a clue, all I know is the game crashes when the game is creating my character/layout
Logged
Y'know, Mojito's are pretty rad.

[Attempting to redo Discount Ships. Works on variants/new Gladiator Society Bounties in their past-time.]
[Unsure if rights are held for TL. Contact Thule for more info.]