Page 5 of 49

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

Posted: Fri Apr 05, 2013 12:47 pm
by SilverCloud
<?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?

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

Posted: Fri Apr 05, 2013 2:17 pm
by Vhati
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.

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

Posted: Fri Apr 05, 2013 9:36 pm
by SilverCloud
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. -_-

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

Posted: Sat Apr 06, 2013 3:22 am
by Vhati
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".

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

Posted: Sat Apr 06, 2013 2:37 pm
by SilverCloud
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

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

Posted: Sat Apr 06, 2013 5:04 pm
by Vhati
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.

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

Posted: Fri Apr 12, 2013 11:51 pm
by striking panda
where is the .exe file i need to run i can't find it anywhere. please help :)

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

Posted: Sat Apr 13, 2013 3:01 am
by Vhati
striking panda wrote:where is the .exe file?
There isn't one.

With Java installed, you can double-click FTLProfileEditor-v15.jar.

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

Posted: Sat Apr 13, 2013 7:26 pm
by eldon
awesome tool thx a lot !

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

Posted: Sat May 18, 2013 10:17 pm
by TheFurryOne
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?