Hello!
This thread seems to me that it's the best place to post a request for HELP with fixing a (somewhat?) basic modding mistake. If this isn't the best place to ask for aid, I apologize.
*Chronology*
The Sf-Edit ship editor program is great way to add, remove, alter, relocate, etc. weapon slots on ships. I made several slot changes to the Venture cruiser, and am cautiously optimistic with the result. I've used Sf-Edit dozens of times to make conceptually simple changes to ships, and it's never let me down yet.
I then made multiple, manually-typed performance tweaks (installed refits, altered the slot contents, reorganized the weapon groups) to
venture_Balanced.variant .
After slowly checking my code syntax, I saved the file and went to open the game and review my changes from inside the game's Refit Screen.
But before I even got to the main menu, boom! Crash to desktop!
*The most relevant quote from starsector.log* :
10679 [Thread-4] INFO com.fs.starfarer.loading.SpecStore - Loading variant [C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\data\variants\venture\venture_Balanced.variant]
10679 [Thread-4] INFO com.fs.starfarer.loading.LoadingUtils - Loading JSON from [C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\data\variants\venture\venture_Balanced.variant]
10684 [Thread-4] INFO com.fs.profiler.Profiler - ID Calls Duration Percent
10684 [Thread-4] INFO com.fs.profiler.Profiler - --------------------------------
10685 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - org.json.JSONException: Expected a ':' after a key at 462 [character 10 line 21]
org.json.JSONException: Expected a ':' after a key at 462 [character 10 line 21]
at org.json.JSONTokener.syntaxError(JSONTokener.java:423)
at org.json.JSONObject.<init>(JSONObject.java:208)
at org.json.JSONTokener.nextValue(JSONTokener.java:352)
at org.json.JSONArray.<init>(JSONArray.java:125)
at org.json.JSONTokener.nextValue(JSONTokener.java:356)
at org.json.JSONObject.<init>(JSONObject.java:210)
at org.json.JSONObject.<init>(JSONObject.java:311)
at com.fs.starfarer.loading.LoadingUtils.????00(Unknown Source)
at com.fs.starfarer.loading.LoadingUtils.?0000(Unknown Source)
at com.fs.starfarer.loading.SpecStore.????00(Unknown Source)
at com.fs.starfarer.loading.SpecStore.????00(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)
*Why this error code is such a problem for me* :
1) I have no idea what com.fs.starfarer.combat.CombatMain is & why it's important, nor what an org.json.JSONException is & why it's important. What these have to do with making very simple changes to installed refits & contents of weapon slots in a single ship variant file is completely opaque to me.
2) My text-editor (Notepad++; it's awesomely useful) shows absolutely nothing amiss inside of venture_Balanced.variant at character 10 line 21! I don't know why Starsector thinks I needed a colon typed there, or anywhere in that neighborhood.
Would someone kindly point out what I did wrong, why the game can't deal with it, and how I can fix the error? I would be grateful.