Vhati / ftl-profile-editor

Profile editor for FTL: Faster Than Light (www.ftlgame.com)
GNU General Public License v2.0
128 stars 30 forks source link

incorrect save file format error. #3

Closed ghost closed 10 years ago

ghost commented 11 years ago

im getting an error looking like this: Error reading profile: Inital int (assumed to be file version) not expected value: 2 I have read through the logs and i have only sceen errors related to internt connectiveity. my game is currently not modded.

Here are the logs.

|LOG START|

20:42:06.879 [main] DEBUG net.blerf.ftl.FTLProfileEditor - FTL Editor v16 20:42:06.880 [main] DEBUG net.blerf.ftl.FTLProfileEditor - Windows 7 6.1 x86 20:42:06.880 [main] DEBUG net.blerf.ftl.FTLProfileEditor - Java HotSpot(TM) Client VM, 1.7.0_25 20:42:06.915 [main] INFO net.blerf.ftl.FTLProfileEditor - Using FTL dats path from config: C:\Program Files (x86)\Steam\steamapps\common\FTL Faster Than Light\resources 20:42:06.989 [main] INFO net.blerf.ftl.parser.DataManager - Reading Achievements... 20:42:06.989 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/achievements.xml' 20:42:07.084 [main] INFO net.blerf.ftl.parser.DataManager - Reading Blueprints... 20:42:07.084 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/blueprints.xml' 20:42:07.328 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/autoBlueprints.xml' 20:42:07.404 [main] INFO net.blerf.ftl.parser.DataManager - Reading Events... 20:42:07.404 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events.xml' 20:42:07.439 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/newEvents.xml' 20:42:07.444 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_crystal.xml' 20:42:07.592 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_engi.xml' 20:42:07.679 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_mantis.xml' 20:42:07.752 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_rock.xml' 20:42:07.760 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_slug.xml' 20:42:07.770 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_zoltan.xml' 20:42:07.780 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_nebula.xml' 20:42:07.789 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_pirate.xml' 20:42:07.795 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_rebel.xml' 20:42:07.802 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/nameEvents.xml' 20:42:07.806 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_fuel.xml' 20:42:07.816 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_boss.xml' 20:42:07.822 [main] INFO net.blerf.ftl.parser.DataManager - Reading Crew Names... 20:42:07.822 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/names.xml' 20:42:07.831 [main] INFO net.blerf.ftl.parser.DataManager - Reading Ship Events... 20:42:07.831 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_ships.xml' 20:42:07.845 [main] INFO net.blerf.ftl.parser.DataManager - Reading Background Image Lists... 20:42:07.845 [main] DEBUG net.blerf.ftl.parser.DataManager - Reading 'data/events_imageList.xml' 20:42:07.850 [main] INFO net.blerf.ftl.parser.DataManager - Finished reading game resources. 20:42:25.535 [CheckVersion] ERROR net.blerf.ftl.ui.FTLFrame - Error checking for latest version. java.net.UnknownHostException: raw.github.com at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.protocol.https.HttpsClient.(Unknown Source) at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.URLConnection.getContent(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContent(Unknown Source) at java.net.URL.getContent(Unknown Source) at net.blerf.ftl.ui.FTLFrame.checkForUpdate(FTLFrame.java:766) at net.blerf.ftl.ui.FTLFrame.access$100(FTLFrame.java:86) at net.blerf.ftl.ui.FTLFrame$2.run(FTLFrame.java:233)

20:46:56.075 [AWT-EventQueue-0] ERROR net.blerf.ftl.ui.FTLFrame - Error reading profile. java.lang.RuntimeException: Initial int (assumed to be file format version) not expected value: 2 at net.blerf.ftl.parser.ProfileParser.readProfile(ProfileParser.java:31) at net.blerf.ftl.ui.FTLFrame$4.actionPerformed(FTLFrame.java:397) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

20:42:24.749 [AWT-EventQueue-0] ERROR net.blerf.ftl.ui.FTLFrame - Error reading profile. java.lang.RuntimeException: Initial int (assumed to be file format version) not expected value: 2 at net.blerf.ftl.parser.ProfileParser.readProfile(ProfileParser.java:31) at net.blerf.ftl.ui.FTLFrame$4.actionPerformed(FTLFrame.java:397) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)

20:42:25.536 [CheckVersion] ERROR net.blerf.ftl.ui.FTLFrame - Error checking for latest version. java.net.UnknownHostException: raw.github.com at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.protocol.https.HttpsClient.(Unknown Source) at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.URLConnection.getContent(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContent(Unknown Source) at java.net.URL.getContent(Unknown Source) at net.blerf.ftl.ui.FTLFrame.checkForUpdate(FTLFrame.java:766) at net.blerf.ftl.ui.FTLFrame.access$100(FTLFrame.java:86) at net.blerf.ftl.ui.FTLFrame$2.run(FTLFrame.java:233)

|LOG END|

ManApart commented 11 years ago

Hey nick540, I just got this email, and it's near midnight, so I'll jump on this tomorrow and look at it. Basically all FTL saves start with the int 2, and so the program is throwing an error when one of the files it's reading isn't starting properly. I'll look through the code tomorrow but if you read this in the meantime see if there are any .sav files other than prof.sav and continue.sav. If so, move them out of the folder and see if it throws the error. :)

EDIT: I'm sorry Vhati, I'm still a github Noob and I thought this comment was on my spacedock program. I got on today and couldn't find the comment, and then my email showed you had responded. Apparently since I was watching your repo, I got confused. Sorry!

Vhati commented 11 years ago

im getting an error looking like this: Error reading profile:

You are attempting to open continue.sav as if it were a profile.

(prof.sav and continue.sav are completely different.)     At the top of the editor, there's a tab called "Saved Game". Choose that. THEN open continue.sav.