[Tool] FTL Ship Editor: Superluminal [NOT UPDATED TO AE]

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

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by kartoFlane »

So I got another update worked out; changelog:
  • Fixed:
    • Fixed a bug with undo offset operation (was moving the anchor, but didn't actually update the ship's offset values)
    • Fixed a crash that would occur if you tried to nudge an object after clicking a button (for example cloak)
    • Fixed a crash when closing room properties window when no room was selected
    • Weapon mounts will no longer get snapped to weird positions should they end up outside of visible area
    • Corrected a dumb design oversight that prevented the editor from being able to use fractional values for gib rotation. Gib animation should now be much more smooth.
    • Fixed a crash when opening Properties window on enemy ships
    • Fixed a crash when assigning station on enemy ships
  • Changed:
    • Rearranged UI - the editor can now be resized down to about 650x350 px
    • Some aesthetic modifications to Ship Browser and Ship Choice windows, plus some optimizations in functional code in Ship Choice window (may result in unexpected bugs, though I [optimistically] don't anticipate any).
    • Weapon mount tool now displays the image of the dummy mount instead of an ambiguous green box, controls are the same
  • Added:
    • Manually linked doors are now correctly loaded when loading a ship from ftl archive
      Note: it seems that vanilla ships are not all connected correctly, for example left ID links to a room on the right, and vice versa... Apparently it doesn't make a difference as long as the rooms are at all connected
    • The drop-down lists of augments, weapons and drones are now sorted alphabetically, and there's some spacing between the name and the blueprint name of the item to make it easier to read
      They should also use a monospaced font, resulting in all entries being neatly aligned, though I have tested it on a Mac, and it didn't exactly work as intended...
    • The ship list in Ship Browser can now be sorted either by blueprint names (default), or by class names of ships
    • The Ship Browser can now be resized
So yeah.

Dropbox Download Directory: Superluminal 13-07-11

Edit 2:
False alert, apparently t'was a bug with my own FTL archives... Whew.
Superluminal2 - a ship editor for FTL
Ryrion
Posts: 5
Joined: Fri Jul 12, 2013 7:37 am

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by Ryrion »

I tried to open Superluminal and an error message immediately appeared.
java.lang.IllegalStateException: C:\Program Files\Java\jre7\lib\fonts\LucidaTypewriterRegular.ttf
at com.kartoflane.superluminal.core.Main.loadMonospacedFont(Main.java:4469)
at com.kartoflane.superluminal.core.Main.open(Main.java:502)
at com.kartoflane.superluminal.core.Main.main(Main.java:405)
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by kartoFlane »

You don't have the LucidaTypewriterRegular font in your java directory. Which is weird, because as per the documentation, every JRE should have it... Perhaps some non-Oracle java distributions don't have it *shrug*
Alternatively, if you do, the editor could not load the font... And I have no idea what could cause it to fail.

...Guess I'll have to include a font with the editor if it's the former.
Superluminal2 - a ship editor for FTL
User avatar
Sleeper Service
Posts: 2275
Joined: Sun Mar 24, 2013 8:49 pm

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by Sleeper Service »

kartoFlane wrote:Fixed a crash when opening Properties window on enemy ships
Fixed a crash when assigning station on enemy ships
Thanks for fixing that so fast! Keep up the great work. :)
Image
Working on a sci-fi deckbuilder nowadays.
Other games I made.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by kartoFlane »

The font issue should be fixed now. Updated the versions in 13-07-11 dropbox folder.
Superluminal2 - a ship editor for FTL
Ryrion
Posts: 5
Joined: Fri Jul 12, 2013 7:37 am

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by Ryrion »

kartoFlane wrote:You don't have the LucidaTypewriterRegular font in your java directory. Which is weird, because as per the documentation, every JRE should have it... Perhaps some non-Oracle java distributions don't have it *shrug*
Alternatively, if you do, the editor could not load the font... And I have no idea what could cause it to fail.

...Guess I'll have to include a font with the editor if it's the former.
I checked inside Program Files\Java\jre7\lib\fonts and there was indeed only one font file in there. I uninstalled it and installed it twice with the google chrome online installer, but it failed to install the font files... So I uninstalled it and installed it with the alternate offline installer and it did properly install the font files. (I think I like the offline installer better because it doesn't try to trick you into installing Ask.com toolbars for your browser or antimalware programs.)
kartoFlane wrote:The font issue should be fixed now. Updated the versions in 13-07-11 dropbox folder.
I feel embarrassed that I made you change your program instead of fixing my own faulty Java.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by kartoFlane »

Well, you don't need any installers if you have windows 7, you can just double-click on the font file and there should be a big "Install" button present there.
Even in case of XP it's not that much harder -- you can just go to Control Panel (switch to "classic view" if you haven't already), double click on "Fonts" folder, and just drag-n-drop the font file there, and it's ready to use. No way to screw anything up, or accidentally install yourself another awesome toolbar :P
Ryrion wrote:I feel embarrassed that I made you change your program instead of fixing my own faulty Java.
It's not a problem, I was already messing around with the code anyway - might as well do something productive and fix a bug before it becomes problematic
Superluminal2 - a ship editor for FTL
Ryrion
Posts: 5
Joined: Fri Jul 12, 2013 7:37 am

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by Ryrion »

A crash!
java.lang.NullPointerException
at com.kartoflane.superluminal.elements.CursorBox.mouseUp(CursorBox.java:244)
at com.kartoflane.superluminal.core.MouseInputAdapter.mouseUp(MouseInputAdapter.java:151)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at com.kartoflane.superluminal.core.Main.open(Main.java:711)
at com.kartoflane.superluminal.core.Main.main(Main.java:405)
Here's the steps to make this crash: Open Superluminal -> New Ship -> Select Room Creation Tool; -> Shift-Click empty space.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by kartoFlane »

Fixed it, thanks for the report!
I've also fixed two other issues with enemy ship projects.

Updated the files in 7-11 release dropbox folder.
Superluminal2 - a ship editor for FTL
Exedra
Posts: 8
Joined: Fri Jul 19, 2013 11:10 pm

Re: [Tool] FTL Ship Editor: Superluminal - version 13-07-11

Post by Exedra »

If I install the mod I made, as so as I hit new game it crashes. Help please?
Post Reply