[Tool] FTL Error Checker

Discuss and distribute tools and methods for modding. Moderator - Grognak
User avatar
kartoFlane
Posts: 1470
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Error Checker - v 1.02

Postby kartoFlane » Sat Jan 17, 2015 7:30 pm

Glad to know that it's working better than the old version :P I've had similar experience, CE gets parsed within 5 seconds max, whereas with the old one, it could take well over a minute.

Anyhow, I've been fiddling with Javascript for the past few weeks, and it didn't really work out; it feels very limited outside of a web browser. I guess I'll stick to Beanshell.

Also, today I've finished the search functionality, and I'm pretty happy with how it turned out.
New version available here.
Superluminal2 - a ship editor for FTL
User avatar
kartoFlane
Posts: 1470
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Error Checker - v 1.02

Postby kartoFlane » Wed May 06, 2015 7:11 pm

For some reason I revisited this program and fixed a couple bugs / added more validation scripts. Still got a long way to go, though.
Download: https://www.dropbox.com/s/cqahb9xhm91er ... t.zip?dl=0 (link's the same as above)

What I did:

Code: Select all

- fixed search dialog to allow empty fields
- fixed the search functionality crashing when using empty field for attribute values
- added a bunch of scripts to the validation database:
  * simple attribute type checking
  * event references verification
  * autoReward tag verification
  * environment tag verification
  * item in <item_modify> tag verification
  * fleet background tag verification
  * event augment tag verification
  * imageList references verification
  * textList references & text tag verification
  * ship event references & tag verification
  * checking for empty list references
Superluminal2 - a ship editor for FTL
User avatar
kartoFlane
Posts: 1470
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Error Checker - v 1.02

Postby kartoFlane » Thu May 07, 2015 11:17 pm

Another day, another update. I've fixed an annoying bug that would cause the wrong errors to become highlighted in the file viewer when selected. Also added a bunch of scripts, mostly pertaining to events and anims.

Since the program now does a lot more stuff during validation, this phase takes noticeably more time to complete -- though it's still blazingly fast compared to the old version.

Download same as above: https://www.dropbox.com/s/cqahb9xhm91er ... t.zip?dl=0
Superluminal2 - a ship editor for FTL
LehGogh
Posts: 38
Joined: Tue Jun 02, 2015 4:16 pm

Re: [Tool] FTL Error Checker

Postby LehGogh » Fri Nov 27, 2015 8:21 pm

EDIT: I used the wrong argument. It's <fleet>battle</fleet>, not <fleet>both</fleet>.

A quick bug for v0.2 alpha:

events.xml (code)

Code: Select all

<event name="TEST_TEST">
   <fleet>both</fleet>
   <text>test</text>
   <choice>
      <text>test</text>
      <event/>
   </choice>
</event>


Those aren't the actual names/text items, but close enough.

That gives the following error for what would be line 2 of the above code:

Code: Select all

The value of this tag or argument is not valid. (both)


Am I doing something wrong? As far as I can tell, this should be correct.
Manters
Posts: 62
Joined: Thu Jul 17, 2014 2:28 pm
Contact:

Re: [Tool] FTL Error Checker

Postby Manters » Wed Feb 17, 2016 10:46 am

The Dropbox link is now dead. (As far as I can tell) Ehich is disappointing... I could really use this error chekcer about now.
User avatar
kartoFlane
Posts: 1470
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Error Checker

Postby kartoFlane » Wed Feb 17, 2016 2:35 pm

Sorry, I've been cleaning up my Dropbox recently, and forgot to update the link. Now it's fixed.
Superluminal2 - a ship editor for FTL
Manters
Posts: 62
Joined: Thu Jul 17, 2014 2:28 pm
Contact:

Re: [Tool] FTL Error Checker

Postby Manters » Wed Feb 17, 2016 3:10 pm

kartoFlane wrote:Sorry, I've been cleaning up my Dropbox recently, and forgot to update the link. Now it's fixed.


Thanks! :D
sul
Posts: 120
Joined: Sat Jan 30, 2016 4:22 pm

Re: [Tool] FTL Error Checker

Postby sul » Thu Feb 18, 2016 3:47 pm

I have a two little questions:
- I see you post new versions in the forum discussion. Should I download the one on first post or thoses ?
- Is it possible to launch FTL Error Checker without GUI ? I am on linux (FTL Error Checker is a shell script), and I would like to only prompt results in the terminal to increase productivity a little.
Btw that program is really unvaluable, thanks so much !
Last edited by sul on Thu Feb 18, 2016 4:11 pm, edited 2 times in total.
User avatar
kartoFlane
Posts: 1470
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Error Checker

Postby kartoFlane » Thu Feb 18, 2016 3:59 pm

sul wrote:I see you post new versions in the forum discussion. Should I download the one on first post or thoses ?

The first post always contains the most up-to-date link. The posts below are from back when I was still actively working on this program

sul wrote:Is it possible to launch FTL Error Checker without GUI ? I am on linux (FTL Error Checker is a shell script), and I would like to only prompt results in the terminal to increase productivity a little.

Not really, the checker is not designed to be used via command line, sorry.
If you're technically inclined though, all of the rules the checker runs against FTL mods are exposed in a scripted database, so it is possible to add your own rules and error checks.
Superluminal2 - a ship editor for FTL
sul
Posts: 120
Joined: Sat Jan 30, 2016 4:22 pm

Re: [Tool] FTL Error Checker

Postby sul » Thu Feb 18, 2016 4:12 pm

Thanks !
- ok so I got the latest version
- I found a way for no GUI on linux, with xvfb. It seems to work:
http://stackoverflow.com/questions/3215 ... u/32156776
Like you say, its not really appropriate, you cant change options without GUI or check thoroughly if their is a mistake in the .xml files. It may be helpful as a first check, do quickly look if everything is fine, and if not rerun with GUI to find mistakes.

Who is online

Users browsing this forum: Google [Bot] and 7 guests