Jump to content

Can't start PWCG... Error Log


Recommended Posts

Posted

I'm trying to use PWCG and I am sure I have it placed in the correct location and have changed the startup.cfg file.  However When I try to launch PWCG nothing happens except it generates another error in the error log:

 

PWCG Error
Mon Nov 27 14:27:20 MST 2017
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
at com.google.gson.Gson.fromJson(Gson.java:887)
at pwcg.campaign.io.json.JsonObjectReader.readJsonFile(JsonObjectReader.java:29)
at pwcg.campaign.plane.PlaneTypeFactory.readAsJson(PlaneTypeFactory.java:70)
at pwcg.campaign.plane.PlaneTypeFactory.initialize(PlaneTypeFactory.java:58)
at pwcg.campaign.plane.PlaneTypeFactory.getInstance(PlaneTypeFactory.java:45)
at pwcg.campaign.context.PWCGContextManager.initialize(PWCGContextManager.java:85)
at pwcg.campaign.context.BoSContextManager.initialize(BoSContextManager.java:62)
at pwcg.campaign.context.PWCGContextManager.createContextForActiveSim(PWCGContextManager.java:68)
at pwcg.campaign.context.PWCGContextManager.setRoF(PWCGContextManager.java:172)
at pwcg.gui.maingui.CampaignMainGUI.evaluateArgs(CampaignMainGUI.java:156)
at pwcg.gui.maingui.CampaignMainGUI.startPWCG(CampaignMainGUI.java:88)
at pwcg.gui.maingui.CampaignMainGUI.main(CampaignMainGUI.java:65)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
... 12 more
 
 
 
 
Any ideas?  Thanks!
 
PatrickAWlson
Posted

It is failing to read the planes config  file.  The file was either incorrectly edited or corrupted.  It can't be a generic config problem.  If it was everybody's install would be failing.

 

Most sure way:

Delete PWCG.

Download PWCG again.

Reinstall.

 

If you want to try a more gentle version:

Delete everything in PWCGCampaign\BoSData\Input\Aircraft

Pull only those files from the zip.

Posted (edited)

It is failing to read the planes config  file.  The file was either incorrectly edited or corrupted.  It can't be a generic config problem.  If it was everybody's install would be failing.

 

Most sure way:

Delete PWCG.

Download PWCG again.

Reinstall.

 

If you want to try a more gentle version:

Delete everything in PWCGCampaign\BoSData\Input\Aircraft

Pull only those files from the zip.

 

OK will do.  I actually downloaded it on a mac and transferred it over to the PC so maybe it got corrupted somehow.  

 

EDIT:  Re-downloaded, seems to be working fine.  Maybe my USB drive was bad.  Thanks for the help!

Edited by BlznSaddles

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...