Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: JsonArray[0] Not Found [Solved]  (Read 7326 times)

Veronw

  • Ensign
  • *
  • Posts: 16
    • View Profile
JsonArray[0] Not Found [Solved]
« on: August 26, 2012, 01:25:51 AM »

3901 [Thread-6] ERROR com.fs.starfarer.combat.String  - org.json.JSONException: JSONArray[0] not found.
org.json.JSONException: JSONArray[0] not found.
   at org.json.JSONArray.get(JSONArray.java:204)
   at org.json.JSONArray.getDouble(JSONArray.java:243)
   at com.fs.starfarer.loading.J.Ó00000(Unknown Source)
   at com.fs.starfarer.loading.ShipHullSpecLoader.o00000(Unknown Source)
   at com.fs.starfarer.loading.ShipHullSpecLoader.new(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.super(Unknown Source)
   at com.fs.starfarer.loading.G.o00000(Unknown Source)
   at com.fs.oOOO.A.new(Unknown Source)
   at com.fs.starfarer.combat.String.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:619)


 I am now getting this error if I add ANY weapons to any ship with the sf editor.. The ships work perfectly in game so long as I do not add any weapons of any kind.

Edit: I have traced the problem back to the new release of the sf editor, 2.4.2, for some reason it jsonarray errors out on me, rolled back to a previous version and now it works.
« Last Edit: August 26, 2012, 10:57:43 AM by Veronw »
Logged

Apophis

  • Captain
  • ****
  • Posts: 466
    • View Profile
Re: JsonArray[0] Not Found [solved first problem]
« Reply #1 on: August 26, 2012, 01:58:48 AM »

The weapon is defined in the variant file
Logged

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: JsonArray[0] Not Found [Solved]
« Reply #2 on: August 26, 2012, 08:36:00 PM »

Many apologies for this, 2.4.3 fixes this also. It was a last minute change that led to a bug.
Logged