[Spoiler] FTL Profile/SavedGame Editor v27 (2018-01-12)

All your guides, strategy discussions, request for help on how to play go here. Please use [SPOILER] if relevant.
SilverCloud
Posts: 3
Joined: Fri Apr 05, 2013 12:29 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby SilverCloud » Fri Apr 05, 2013 12:47 pm

<?xml version="1.0" encoding="UTF-8"?>
<configuration status="warn">
<appenders>
<Console name="Console" target="SYSTEM_OUT">
<ThresholdFilter level="INFO" onMatch="ACCEPT" onMismatch="DENY" />
<PatternLayout>
<pattern>%-5level %logger{1} - %msg%throwable%n</pattern>
</PatternLayout>
</Console>
<File name="LogFile" fileName="ftl-profile-editor.log" append="false">
<ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY" />
<PatternLayout>
<pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%throwable%n</pattern>
</PatternLayout>
</File>
</appenders>
<loggers>
<logger name="net.blerf.ftl" level="trace" additivity="false">
<appender-ref ref="Console"/>
<appender-ref ref="LogFile"/>
</logger>
<root level="error">
<appender-ref ref="Console"/>
<appender-ref ref="LogFile"/>
</root>
</loggers>
</configuration>

------------------------

<?xml version="1.0" encoding="UTF-8"?>
<configuration status="warn">
<appenders>
<File name="LogFile" fileName="ftl-profile-editor.log" append="false">
<PatternLayout>
<pattern>%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%throwable%n</pattern>
</PatternLayout>
</File>
</appenders>
<loggers>
<logger name="net.blerf.ftl" level="trace" additivity="false">
<appender-ref ref="LogFile"/>
</logger>
<root level="error">
<appender-ref ref="LogFile"/>
</root>
</loggers>
</configuration>

------------------

There's two log thingies there that I can't make heads or tails out of. Told java to run the program and got a "java exception". Got any clue what's going on here?
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby Vhati » Fri Apr 05, 2013 2:17 pm

SilverCloud wrote:There's two log thingies there that I can't make heads or tails out of.

Uh, those are log4j2.xml and log4j2-trace.xml. Related to the logging library, but not logs themselves.
They're supposed to be hidden inside the jar.

These should be the only files in the editor's folder:
  • FTLProfileEditor-v15.jar
  • ftl-editor.cfg (created on first run)
  • ftl-profile-editor.log (created on first run)

To run the editor:
Double-click FTLProfileEditor-v15.jar.

OR if there's no log:
  • Open a command prompt
  • Type this and hit enter: cd "c:\location\of\FTLEditor"
  • Type this and hit enter*: FTLProfileEditor-v15.jar

* Edit: Should be: java -jar FTLProfileEditor-v15.jar but the prompt might not be able to find java. See my next post below for a tool that ensures java is found and the error recorded.

SilverCloud wrote:Told java to run the program and got a "java exception".
What was the exception?
If it was UnsupportedClassVersionError, you need Java 1.6 or higher to run the editor.
Last edited by Vhati on Sat Apr 06, 2013 3:43 am, edited 2 times in total.
SilverCloud
Posts: 3
Joined: Fri Apr 05, 2013 12:29 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby SilverCloud » Fri Apr 05, 2013 9:36 pm

It just says "A java exception has occured". Also, I opened the cmd prompt and entered the location but it spit out the line "The system cannot find the path specified". I know I'm probably making a really stupid mistake somewhere. -_-
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby Vhati » Sat Apr 06, 2013 3:22 am

SilverCloud wrote:I know I'm probably making a really stupid mistake somewhere. -_-
Oh, I just remembered, I made a tool for this...

It searches for Java, then generates a script that launches the editor and should produce a log.

Put "FTLEditor_LauncherGen_v1.exe" wherever your jar is, and double-click the exe.
Then double-click the generated script, "FTLEditor_Emergency.bat".
Then let me know what's inside "emergency_log.txt".
SilverCloud
Posts: 3
Joined: Fri Apr 05, 2013 12:29 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby SilverCloud » Sat Apr 06, 2013 2:37 pm

Here's the log.

java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

INFO FTLProfileEditor - FTL dats located at: C:\Program Files (x86)\Steam\steamapps\common\FTL Faster Than Light\resources
INFO DataManager - Reading Achievements...
INFO DataManager - Reading Blueprints...
ERROR MappedDatParser - Blueprints parsing failed at line 5214 (1-based) of xml: </slot>
ERROR FTLProfileEditor - Error parsing FTL data files. javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 5214; columnNumber: 5; The element type "shields" must be terminated by the matching end-tag "</shields>".]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unknown Source)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(Unknown Source)
at net.blerf.ftl.parser.MappedDatParser.unmarshalFromSequence(MappedDatParser.java:755)
at net.blerf.ftl.parser.MappedDatParser.readBlueprints(MappedDatParser.java:271)
at net.blerf.ftl.parser.DataManager.<init>(DataManager.java:97)
at net.blerf.ftl.parser.DataManager.init(DataManager.java:49)
at net.blerf.ftl.FTLProfileEditor.main(FTLProfileEditor.java:129)
Caused by: org.xml.sax.SAXParseException; lineNumber: 5214; columnNumber: 5; The element type "shields" must be terminated by the matching end-tag "</shields>".
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
... 9 more
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby Vhati » Sat Apr 06, 2013 5:04 pm

SilverCloud wrote:Here's the [emergency] log.
Strange that you never saw the normal ftl-profile-editor.log and had to resort to that...

SilverCloud wrote:
org.xml.sax.SAXParseException; lineNumber: 5214; columnNumber: 5; The element type "shields" must be terminated by the matching end-tag "</shields>".
Looks like you're using a mod with typos in it.
The game can tolerate lots of errors, but this editor is less forgiving.
You'll need to nag the mod author to correct them before you can edit savedgames which use that mod.

The "Validate" button in Grognak's Mod Manager will give you an exhaustive list of typos to copy/paste.
And it'll warn you about other mods that may not play nice with the editor.
striking panda
Posts: 4
Joined: Sun Mar 24, 2013 9:02 am

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby striking panda » Fri Apr 12, 2013 11:51 pm

where is the .exe file i need to run i can't find it anywhere. please help :)
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby Vhati » Sat Apr 13, 2013 3:01 am

striking panda wrote:where is the .exe file?
There isn't one.

With Java installed, you can double-click FTLProfileEditor-v15.jar.
eldon
Posts: 1
Joined: Sat Apr 13, 2013 7:24 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby eldon » Sat Apr 13, 2013 7:26 pm

awesome tool thx a lot !
TheFurryOne
Posts: 1
Joined: Sat May 18, 2013 9:17 pm

Re: [Spoiler] FTL Editor v15 - Unlock ships, Edit SavedGames

Postby TheFurryOne » Sat May 18, 2013 10:17 pm

So, I have a problem, I want to edit my crew and ship and all that after I've left the hanger, but when I try to load "continue.sav" it says "Error reading profile: Inital int (assumed to be file format version) not expected value :2" what do I do?