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

SavedGame Parser Error #55

Closed Malanius closed 10 years ago

Malanius commented 10 years ago

[code] SavedGame Parser Error

Exception: java.io.IOException: Unexpected first byte (9) for a SAVED GAME.

Stack Trace... net.blerf.ftl.parser.SavedGameParser.readSavedGame(SavedGameParser.java:87) net.blerf.ftl.ui.FTLFrame$11.actionPerformed(FTLFrame.java:778) javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)

Editor Version: 24 OS: Windows 7 6.1 VM: Java HotSpot(TM) 64-Bit Server VM, 1.8.0_05, amd64 [/code]

File ("continue.sav")... [code] 090000000100000000000000000000000100000000000000030000000b000000 546865204b65737472656c10000000504c415945525f534849505f4841524401 000000000000000000000010000000504c415945525f534849505f484152440b 000000546865204b65737472656c070000006b65737472616c03000000050000 0068756d616e080000004d61676d61726f730500000068756d616e070000004d 6f6e7376696b0500000068756d616e060000004d61726b656c01000000084c01 0000000000000000001e0000001000000002000000080000001e000000030000 00080000004d61676d61726f730500000068756d616e0000000064000000fb01 00009d00000000000000000000000100000000000000ffffffff020000000000 0000020000000000000000000000000000000000000000000000000000000000 0000000000000000000001000000000000000000000000000000000000000000 00000000000000000000ffffffffe80300000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000001000000000000000000000000000000e803 0000000000000000000000000000070000004d6f6e7376696b0500000068756d 616e000000006400000034000000c00000000e00000002000000010000000000 0000ffffffff02000000000000000300000000000000020000000e0000000000 0000000000000000000000000000000000000000000001000000000000000000 00000000000000000000000000000000000000000000ffffffffe80300000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000010000000000 00000000000000000000e8030000000000000000000000000000060000004d61 726b656c0500000068756d616e0000000064000000c00000009d0000000a0000 00010000000100000000000000ffffffff020000000000000000000000000000 00010000000a0000000000000000000000000000000000000000000000000000 0001000000000000000000000000000000000000000000000000000000000000 00ffffffffe80300000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 000000000001000000000000000000000000000000e803000000000000000000 0000000000080000000200000002000000000000000000000000000000000000 0000000000000000000000000000000000e80300000000000001000000020000 0001000000000000000000000000000000000000000000000000000000000000 0000000000e80300000000000001000000010000000100000000000000000000 00000000000000000000000000000000000000000000000000e8030000000000 0001000000030000000000000000000000000000000000000000000000000000 00000000000000000000000000e8030000000000000100000000000000010000 0001000000000000000000000000000000000000000000000000000000000000 0000000000e80300000000000001000000010000000100000000000000000000 00000000000000000000000000000000000000000000000000e8030000000000 0001000000010000000100000000000000000000000000000000000000000000 00000000000000000000000000e8030000000000000100000001000000010000 0000000000000000000000000000000000000000000000000000000000000000 00e8030000000000000100000000000000000000000000000000000000000000 0000000000000000000100000000000000000000000000000000000000000000 0001000000e80300000000000000000000000000000000000064000000000000 0000000000ffffffff0000000000000000ffffffff0000000001000000640000 000000000000000000ffffffff0000000000000000ffffffff00000000000000 00ffffffff0000000000000000ffffffffffffffff0400000064000000000000 0000000000ffffffff0000000000000000ffffffff0100000002000000640000 000000000000000000ffffffff0000000000000000ffffffff01000000000000 00640000000000000000000000ffffffff0000000000000000ffffffff000000 0000000000ffffffff0000000000000000ffffffffffffffff04000000640000 000000000000000000ffffffff0000000000000000ffffffff00000000000000 00ffffffff0000000000000000ffffffff000000000300000064000000000000 0000000000ffffffff0000000000000000ffffffffffffffff04000000640000 000000000000000000ffffffff0000000000000000ffffffff00000000000000 00ffffffff0000000000000000ffffffffffffffff0400000064000000000000 0000000000ffffffff0000000000000000ffffffff0000000000000000ffffff ff0000000000000000ffffffffffffffff040000006400000000000000000000 00ffffffff0000000000000000ffffffffffffffff0400000064000000000000 0000000000ffffffff0000000000000000ffffffff0000000000000000ffffff ff0000000000000000ffffffff01000000020000006400000000000000000000 00ffffffff0000000000000000ffffffffffffffff0400000064000000000000 0000000000ffffffff0000000000000000ffffffffffffffff04000000640000 000000000000000000ffffffff0000000000000000ffffffffffffffff040000 00640000000000000000000000ffffffff0000000000000000ffffffff000000 0000000000ffffffff0000000000000000ffffffff0200000000000000640000 000000000000000000ffffffff0000000000000000ffffffffffffffff040000 00640000000000000000000000ffffffff0000000000000000ffffffffffffff ff04000000000000000400000004000000040000000000000000000000000000 0000000000040000000400000004000000000000000000000000000000000000 0004000000040000000400000000000000000000000000000000000000040000 0004000000040000000000000000000000000000000000000004000000040000 0004000000000000000000000000000000000000000400000004000000040000 0000000000000000000000000000000000040000000400000004000000000000 0000000000000000000000000004000000040000000400000000000000000000 0000000000000000000400000004000000040000000000000000000000000000 0000000000040000000400000004000000000000000000000000000000000000 0004000000040000000400000000000000000000000000000000000000040000 0004000000040000000000000000000000000000000000000004000000040000 0004000000000000000000000000000000000000000400000004000000040000 0000000000000000000000000000000000040000000400000004000000000000 0000000000000000000000000004000000040000000400000000000000000000 0000000000000000000400000004000000040000000000000000000000000000 0000000000040000000400000004000000000000000000000000000000000000 0004000000040000000400000000000000000000000000000000000000040000 0004000000040000000000000000000000000000000000000004000000040000 0004000000000000000000000000000000000000000400000004000000040000 0000000000000000000000000000000000040000000400000004000000000000 0000000000000000000000000004000000040000000400000000000000000000 0000000000000000000400000004000000040000000000000000000000000000 0000000000040000000400000004000000000000000000000000000000000000 00000000000000000002000000110000004d495353494c45535f325f504c4159 4552000000000d0000004c415345525f42555253545f33000000000000000000 00000000000000830b00000b03000041fcffff84000000000000000100000000 000000ffffffff00000000000000000000000000000000000000000000000000 0000001400000001000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000018 0000000000000001000000000000000000000000000000000000000100000017 00000073746172732f62675f6461726b6e6562756c612e706e67160000007374 6172732f706c616e65745f70656163682e706e67cc0300002401000000000000 0100000000000000000000000000000000000000000000000100000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000010000000000000000000000000000000000000000000000 0100000000000000000000000000000000000000000000000100000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000054010000546865206461746120796f7520636172 727920697320766974616c20746f207468652072656d61696e696e6720466564 65726174696f6e20666c6565742e20596f75276c6c206e65656420737570706c 69657320666f7220746865206a6f75726e65792c20736f206d616b6520737572 6520746f206578706c6f7265206561636820736563746f72206265666f726520 6d6f76696e67206f6e20746f20746865206e6578742e20427574206765742074 6f207468652065786974206265666f726520746865207075727375696e672052 6562656c20666c6565742063616e20636174636820757021200a200a5449503a 204175746f66697265202d20204175746f666972652077696c6c206c65742061 20776561706f6e206d61696e7461696e20697473207461726765742e204a7573 74206b65657020616e20657965206f6e20796f7572206d697373696c6520636f 756e7421ffffffff010000000000000000000000000000000000000000000000 0200000000000000000000000000000000000000000000000200000000000000 f82a000000000000000000000000000000000000000000000000000000000000 00000000ffffffff01000000000000000000000000000000e803000000000000 00000000000000000000000000000000ffffffff000000000000000000000000 00000000e803000018fcffff18fcffffffffffff0000000000000000e02e0000 0000000000000000000000000000000000000000000000000000000000000000 ffffffff01000000000000000000000000000000e80300000000000000000000 000000000000000000000000ffffffff00000000000000000000000000000000 e803000018fcffff18fcffffffffffff00000000000000000800000800000000 0000000001000000307500000000000000000000 [/code]

Vhati commented 10 years ago

That... should not be possible in v24.

Did you get the source off GitHub early and compile it yourself before I fixed that error?

The official binaries can be downloaded here: http://sourceforge.net/projects/ftleditor/

Malanius commented 10 years ago

Downloaded and compiled about 5mins before got that error. But it works fine from binaries.

Vhati commented 10 years ago

To try and recreate your problem, I just downloaded GitHub's source as of the v24 release and as of the latest commit. Both compiled and gave no error opening that saved game.

There was a window of time (May 18 - Jun 04) when the source called itself v24 (as mentioned in the bug report)... before I'd added all the features/fixes which ultimately were present in the released binaries. Your particular error was addressed at he end of that period.

Since then, the source has had this if-else block which should only complain if the first byte is something other than 2, 7, 8, or 9.

Vhati commented 10 years ago

Oh, I see. You made your own fork during that window.

I made a few more commits since then, which weren't fetched/merged into your repository. ; ) https://github.com/Malanius/ftl-profile-editor/network

Malanius commented 10 years ago

Ah, I see. Thanks for addressing that. I'm still quite new to this (and still can't find how to update my fork, lot of learning to do...)

Vhati commented 10 years ago

I'm still quite new to this (and still can't find how to update my fork

https://help.github.com/articles/fork-a-repo

Malanius commented 10 years ago

fund that too, also a way to do it from github website, but thanks anyway.

Vhati commented 10 years ago

The link mentions the merge commands, after the fork has been made...

git fetch upstream
# Fetches any new changes from the original repository
git merge upstream/master
# Merges any changes fetched into your working files

If there's a way to do that from the website, I'm not aware of it.

Malanius commented 10 years ago

http://stackoverflow.com/questions/20984802/how-can-i-keep-my-fork-in-sync-without-adding-a-separate-remote/21131381#21131381 this is bit confusing but it works ;)