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: Several Java errors (solved)  (Read 1210 times)

LtSpitfire

  • Ensign
  • *
  • Posts: 1
    • View Profile
Several Java errors (solved)
« on: October 21, 2018, 05:48:19 AM »

As most of us here I always wanted to add ships to the game of other games we may like, so I did using Trylobot & Deathfly ship editor (last version is the pre-alpha 3.0.0 for SS 0.8.1a).
I've also followed King Alfonzo's guide and other mods to see how to insert the ship into the game and in the markets (using hegemony for example).

Spoiler
If I launch the game without my mod on, all goes well, but sadly if I activate my mod, it pretty much crashes as soon as the loading screen pops up, telling me to go to the starsector.log file for more details, which nets the following error:

Quote
5897 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NumberFormatException: For input string: "   
"
java.lang.NumberFormatException: For input string: "   
"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at com.fs.starfarer.loading.ShipHullSpecLoader.super(Unknown Source)
   at com.fs.starfarer.loading.ShipHullSpecLoader.?00000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.OO0000(Unknown Source)
   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$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

If the game told me what the string is, I would go to the files to try to correct it, but sadly it tells me the string is "       ", which after looking in all the files of my mod I haven't been able to find, and due to the lack of "string", I'm at a loss.
[close]

Would anyone know how to solve this error? I'll upload my "mod" if anyone wants to see what could be wrong.

Thank you very much for your help.

-----------------------------------

Update 1:

Redefining everything again from scratch in the ship editor allowed me to solve this issue, but after giving myself the ship using console commands and trying to access the Fleet/Refit menu, "colliding" with an enemy fleet and hovering over the ship while in the "what do do/engage/run away" screen (or I guess any menu that would give access to the ship), it throws a new error:

Spoiler
Quote
[Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at com.fs.starfarer.combat.entities.Ship.<init>(Unknown Source)
   at com.fs.starfarer.loading.specs.c.o00000(Unknown Source)
   at com.fs.starfarer.title.ooOO.OO0O.super(Unknown Source)
   at com.fs.starfarer.title.ooOO.OO0O.super(Unknown Source)
   at com.fs.starfarer.coreui.Oooo.super(Unknown Source)
   at com.fs.starfarer.ui.j.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.ui.e$Oo.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.ui.OO00.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.e.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.ui.OO00.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.ui.OO00.renderImpl(Unknown Source)
   at com.fs.starfarer.coreui.refit.oOoO.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.ui.OO00.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.String.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.ui.OO00.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Oo0O.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.if.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.ui.OO00.renderImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.render(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.render(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)

https://mega.nz/#!QEdxnABK!oyNCHhnV6Tvily5zwaMV2S0DeU7Ha983OYCkdi3Gd5I
[close]

-----------------

POSSIBLE ANSWER:

Messing around I think I found that editting the csv with Excel instead of Notepad++ (or probably another notepad) adds an extra " at the start and end of some definitions, which may cause the crash, the game launches now and the ship can be summoned via commands, fight and be refitted or modified.
« Last Edit: October 21, 2018, 09:43:31 AM by LtSpitfire »
Logged