Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Crash on viewing ship with commander (Archean order) [SOLVED]  (Read 1458 times)

Rino07

  • Ensign
  • *
  • Posts: 3
    • View Profile
Crash on viewing ship with commander (Archean order) [SOLVED]
« on: November 11, 2019, 01:33:53 PM »

226272 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at data.scripts.skills.ArcheusHelmsmanship$Level3.apply(ArcheusHelmsmanship.java:68)
   at com.fs.starfarer.campaign.CharacterStats.applyPersonalToStats(Unknown Source)
   at com.fs.starfarer.campaign.CharacterStats.applyPersonalToShip(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.setCaptain(Unknown Source)
   at com.fs.starfarer.combat.entities.Ship.<init>(Unknown Source)
   at com.fs.starfarer.loading.specs.oooo.super(Unknown Source)
   at com.fs.starfarer.coreui.refit.A.updateFromCurrentVariant(Unknown Source)
   at com.fs.starfarer.coreui.refit.A.setFleetMember(Unknown Source)
   at com.fs.starfarer.coreui.refit.W.setFleetMember(Unknown Source)
   at com.fs.starfarer.coreui.refit.G.dialogDismissed(Unknown Source)
   at com.fs.starfarer.coreui.refit.G.showMember(Unknown Source)
   at com.fs.starfarer.coreui.refit.G.Ò00000(Unknown Source)
   at com.fs.starfarer.coreui.refit.G.tabOpened(Unknown Source)
   at com.fs.starfarer.ui.newui.O0oO$4.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.newui.O0oO.setCurrentTab(Unknown Source)
   at com.fs.starfarer.ui.newui.O0oO.setCurrentTab(Unknown Source)
   at com.fs.starfarer.coreui.D.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.newnew.buttonPressed(Unknown Source)
   at com.fs.starfarer.ui.I.Ò00000(Unknown Source)
   at com.fs.starfarer.ui.I.processInput(Unknown Source)
   at com.fs.starfarer.ui.O0Oo.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)


Mods: Archean Order -That is it.
At first I thought it was just a specific ship, but it seems no matter where my commander is is the issue.
If my Captain/Commander is piloting a ship, and I click to view it, immediate CtD.

Not sure on what actions to take solve the issue. No previous saves to go to. Start a new game?
Dunno. Either way, aid is greatly appreciated.

« Last Edit: November 13, 2019, 09:59:33 AM by Rino07 »
Logged

Sundog

  • Admiral
  • *****
  • Posts: 1723
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #1 on: November 11, 2019, 04:43:23 PM »

Quote
at data.scripts.skills.ArcheusHelmsmanship$Level3.apply(ArcheusHelmsmanship.java:68)
This line makes me suspect that a character skill called "Archeus Helmsmanship" is to blame. You can use Console Commands to respec and get rid of that skill. That should prevent the issue from occurring any more, as long as you don't take level 3 of the skill again. To respec, load your game with console commands active, press Ctrl+Backspace, type "respec" and press enter.



namphonia

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #2 on: November 12, 2019, 02:15:50 AM »

Hi all, i have the same problem. i don't know why but if one commander (enemi or allies) are this skills the game crash.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #3 on: November 12, 2019, 11:42:53 AM »

Hey everyone Sundog just let me know about this. I'll look into it today and get a fix out as soon as I can.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #4 on: November 12, 2019, 12:22:48 PM »

Is this just when viewing the ship in the refit screen or in combat?
Logged

namphonia

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #5 on: November 12, 2019, 01:38:35 PM »

It appear when you select the officer that have hullmans skill lvl 3. ( if enemi has this skill it s instant)
Logged

Rino07

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #6 on: November 12, 2019, 02:01:08 PM »

For me it occurs in combat, refit, and ship selection.
If it involves my character it will crash.

Going to attempt using the console command mod to reverse the skill, and see if that will solve the problem.

I had made a second captain as well, just to see if it would occur again.
Which it did. So it is not some fluke from perhaps having done something else in game.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #7 on: November 12, 2019, 02:40:25 PM »

^ Ok understood.

Hmm, its weird because I am not getting this error. It is especially weird because the line of code the error points to is:

Code
            stats.getZeroFluxMinimumFluxLevel().modifyFlat(id, ZERO_FLUX_LEVEL * 0.01f);

The only way that would cause a nullpointer is if stats or getZeroFluxMinimumLevel() is coming back null- which should never happen afaik.

Something that may work:

https://www.dropbox.com/sh/jlzot1micrs80vq/AABPBw6JvDuJU16GFDAkVHTCa?dl=0

Download and replace the jar in the main mod directory (same place as mod_info) and see if this fixes it. I strongly recommend keeping the jar you have backed up until you know its fixed though.

A side note: I didn't realize modifying the flux boost is additive so I reduced the amount from the skill to 35%. This means for frigates the actual threshold is somewhere around 75% before you loose the speed boost. Anything above frigates will be around 40%.
Logged

Rino07

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: Crash on viewing ship with commander (Archean order)
« Reply #8 on: November 13, 2019, 09:58:13 AM »

Hey, great news!

It is working. I can view the ship, refit it, the whole kit-n-caboodle.
Kind of strange to me you did not encounter the error.
But that is just curiosity at this point.
The new jar worked fantastic.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: Crash on viewing ship with commander (Archean order) [SOLVED]
« Reply #9 on: November 13, 2019, 01:56:18 PM »

Awesome I'm glad that did the trick! I'll release a formal update in a bit.

Yeah it isn't the first time I've run into an error like that. I don't know if operating system or dev mode has anything to do with it, but at least this one ended up being easy to fix. The last one like this took me forever to find and I essentially had to logic it out. Based on the changes I made it had to be one of two things:

1) I didn't make the variable that edits the zeroFluxBoost a final variable. Not sure why this would cause a nullpointer, but just to be safe I corrected it.

2) Since zeroFluxBoost modifications stack based on my implementation and I didn't realize it, maybe for that skill the value went above 100% in some cases which in turn sets it to null and causes a nullpointer on further modification attempts?

No idea, really, but either way thanks for the feedback and confirmation of the fix. I really appreciate it!
Logged