[Tool] Superluminal 2.2.1 - FTL Ship Editor

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
User avatar
5thHorseman
Posts: 1665
Joined: Sat Mar 02, 2013 2:29 am

Re: [Tool] Superluminal 2.1.0

Post by 5thHorseman »

kartoFlane wrote: With that update, I'm finally done with the program -- I've implemented everything I had planned :P It's likely I'll have to fix something pertaining to one of the new features, but it's unlikely I'll be adding anything new.
Congrats! Very well achieved! Looking forward to actually getting my glows lined up on my ships because you know I'm too lazy to do it in an image editor. :D
My Videos - MY MOD HUB
Simo-V - The Potential - Automated Scout - "Low O2" Icons
The Black Opal - The Asteroid - The Enforcer - The Pyro

"Every silver lining has a cloud..."
User avatar
NarnKar
Posts: 778
Joined: Thu Jun 19, 2014 4:24 pm

Re: [Tool] Superluminal 2.1.0

Post by NarnKar »

I especially like the floor generation feature--I've been ecstatically making arbitrary layouts and generating floors for them for the past few minutes. Thank you so much!
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] Superluminal 2.1.0a

Post by kartoFlane »

Thank you people :)

Here's a small update to fix some issues I've found:

Download: [ Superluminal 2.1.0a ]

Code: Select all

2.1.0a:
- Fixed a bug that would prevent the editor from loading some of the default settings when the program was started for the first time.
- Fixed a crash when assigning activation glow image to cloaking system
- Fixed several bugs related to system/glow assignment
- Improved database browse search -- search terms can now be partial
- Added crash-save feature -- should the editor crash, your ship will be saved as an .ftl file in the editor's directory
Superluminal2 - a ship editor for FTL
bcarp
Posts: 1
Joined: Mon Oct 13, 2014 8:06 am

Re: [Tool] Superluminal 2.1.0a

Post by bcarp »

Hi! Nice tool you have here :)

In a new version crashed when shift clicked in stations mode (0 stations placed)

Also crashed before when shift right clicking already placed door, but failed to understand a warning that log will be erased upon relaunch /facepalm

Code: Select all

15:19:09.516 [main] TRACE com.kartoflane.superluminal2.ui.EditorWindow - User exited save dialog, ship was not saved.
15:21:58.651 [main] TRACE com.kartoflane.superluminal2.ui.EditorWindow - Saving ship as C:\Users\Igor\Downloads\Superluminal Win-64 v2.1.0a\crash_1413188518651.ftl
15:21:58.700 [main] TRACE com.kartoflane.superluminal2.ui.EditorWindow - Ship saved successfully.
15:21:58.700 [main] ERROR com.kartoflane.superluminal2.Superluminal - An error has occured and the editor was forced to terminate. java.lang.IllegalStateException: Model is disposed.
	at com.kartoflane.superluminal2.mvc.models.ObjectModel.getGameObject(ObjectModel.java:24)
	at com.kartoflane.superluminal2.mvc.controllers.DoorController.getGameObject(DoorController.java:65)
	at com.kartoflane.superluminal2.mvc.controllers.DoorController.isHorizontal(DoorController.java:83)
	at com.kartoflane.superluminal2.mvc.controllers.DoorController.updateBoundingArea(DoorController.java:224)
	at com.kartoflane.superluminal2.mvc.controllers.AbstractController.updateFollower(AbstractController.java:567)
	at com.kartoflane.superluminal2.ui.ShipContainer.setShipOffset(ShipContainer.java:569)
	at com.kartoflane.superluminal2.mvc.controllers.ShipController.handleEvent(ShipController.java:346)
	at com.kartoflane.superluminal2.components.EventHandler.sendEvent(EventHandler.java:118)
	at com.kartoflane.superluminal2.ui.ShipContainer.handleEvent(ShipContainer.java:1399)
	at com.kartoflane.superluminal2.components.EventHandler.sendEvent(EventHandler.java:118)
	at com.kartoflane.superluminal2.ui.EditorWindow$46.execute(EditorWindow.java:1797)
	at com.kartoflane.superluminal2.components.Hotkey.executeRelease(Hotkey.java:56)
	at com.kartoflane.superluminal2.components.KeybindHandler.notifyReleased(KeybindHandler.java:87)
	at com.kartoflane.superluminal2.core.Manager.notifyKeyReleased(Manager.java:420)
	at com.kartoflane.superluminal2.core.KeyboardInputDispatcher.keyReleased(KeyboardInputDispatcher.java:18)
	at com.kartoflane.superluminal2.core.KeyboardInputDispatcher.handleEvent(KeyboardInputDispatcher.java:27)
	at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Display.filterEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Unknown Source)
	at org.eclipse.swt.widgets.Widget.wmKeyUp(Unknown Source)
	at org.eclipse.swt.widgets.Control.WM_KEYUP(Unknown Source)
	at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
	at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(Unknown Source)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
	at com.kartoflane.superluminal2.Superluminal.main(Superluminal.java:301)

15:22:00.692 [main] INFO  com.kartoflane.superluminal2.Superluminal - Exiting...
https://dl.dropboxusercontent.com/u/528 ... 518651.ftl
win8 java build 1.8.0_20-b26 if that matters
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] Superluminal 2.1.0a

Post by kartoFlane »

Hey, thanks for the report :)
bcarp wrote:Also crashed before when shift right clicking already placed door, but failed to understand a warning that log will be erased upon relaunch /facepalm
I've encountered this error prior to the recent release, but dismissed it as very rare, since I couldn't reproduce it... It's an odd one at that -- basically the program tries to access an element that's supposed to have been deleted. I should be able to get it fixed without too much trouble, though.
bcarp wrote:In a new version crashed when shift clicked in stations mode (0 stations placed)
Now that one I'm not familiar with, and my brief attempts at reproducing it have failed. Could you tell me exactly what you did that caused the crash?
Superluminal2 - a ship editor for FTL
OneShot17
Posts: 35
Joined: Fri Apr 18, 2014 3:54 am

Re: [Tool] Superluminal 2.1.0a

Post by OneShot17 »

I noticed a bug with the floor generator feature, it is slightly offset, about 2 or 3 pixels to the left, and maybe one pixel above, the rooms. It's not that big of a problem, but I thought you might like to know about it. As a programmer, I can't stand it when my programs aren't just right. Thought I would let you know.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] Superluminal 2.1.0a

Post by kartoFlane »

Well, the floor generator does just that: it generates the floor image, but doesn't align it to match the room layout. You have to do that last bit of work yourself :P

Unless you mean that part of the image is missing / cropped -- that would be a troublesome issue, because I've never noticed anything like that on my end...
Superluminal2 - a ship editor for FTL
OneShot17
Posts: 35
Joined: Fri Apr 18, 2014 3:54 am

Re: [Tool] Superluminal 2.1.0a

Post by OneShot17 »

Ok thanks. Wasn't sure about that. It's not like I was complaining, but I thought that might have been a bug.
1412
Posts: 14
Joined: Thu Oct 16, 2014 10:12 pm

Re: [Tool] Superluminal 2.1.0a

Post by 1412 »

Ok! So, this is kind of a bump, but I'm having some annoying bugs with this that seem to have allegedly been fixed in the past.Namely I'm having difficulties with saving. Suddenly, when I try to save something, it doesn't save. Unless I save it under a different name, in which case it works fine, until I try to open it, in which case it won't let me.
Log:

Code: Select all

21:19:15.999 [main] DEBUG com.kartoflane.superluminal2.Superluminal - Superluminal v2.1.0a
21:19:16.001 [main] DEBUG com.kartoflane.superluminal2.Superluminal - Windows 7 6.1
21:19:16.001 [main] DEBUG com.kartoflane.superluminal2.Superluminal - Java HotSpot(TM) Client VM, 1.7.0_55, x86
21:19:16.004 [main] DEBUG com.kartoflane.superluminal2.Superluminal - SWT v4335
21:19:16.068 [main] TRACE com.kartoflane.superluminal2.Superluminal - Loading properties from config file...
21:19:16.111 [main] INFO  com.kartoflane.superluminal2.Superluminal - Using FTL dats path from config: C:\Program Files (x86)\Steam\steamapps\common\FTL Faster Than Light\resources
21:19:16.389 [main] TRACE com.kartoflane.superluminal2.Superluminal - Loading dat archives...
21:19:16.491 [main] TRACE com.kartoflane.superluminal2.Superluminal - Loading database...
21:19:16.714 [Thread-3] WARN  com.kartoflane.superluminal2.core.DatabaseEntry - DatabaseCore: could not load weapon: CRYSTAL_1: could not find animation 'crystal_shard'.
21:19:17.140 [Thread-3] TRACE com.kartoflane.superluminal2.core.DatabaseEntry - DatabaseCore was loaded successfully.
21:19:17.162 [main] INFO  com.kartoflane.superluminal2.Superluminal - Checking for updates...
21:19:18.614 [main] INFO  com.kartoflane.superluminal2.Superluminal - Program is up to date.
21:19:18.614 [main] INFO  com.kartoflane.superluminal2.Superluminal - Running...
21:19:36.828 [main] WARN  com.kartoflane.superluminal2.ui.ShipLoaderDialog - An error has occured while loading PLAYER_SHIP_HARD: java.lang.IllegalArgumentException: Argument must not be null.
	at com.kartoflane.superluminal2.ftl.GlowObject.setGlowSet(GlowObject.java:48)
	at com.kartoflane.superluminal2.utils.ShipLoadUtils.loadShipXML(ShipLoadUtils.java:267)
	at com.kartoflane.superluminal2.ui.ShipLoaderDialog$7.widgetSelected(ShipLoaderDialog.java:300)
	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.superluminal2.Superluminal.main(Superluminal.java:301)

21:19:57.902 [main] WARN  com.kartoflane.superluminal2.ui.ShipLoaderDialog - An error has occured while loading PLAYER_SHIP_HARD: java.lang.IllegalArgumentException: Argument must not be null.
	at com.kartoflane.superluminal2.ftl.GlowObject.setGlowSet(GlowObject.java:48)
	at com.kartoflane.superluminal2.utils.ShipLoadUtils.loadShipXML(ShipLoadUtils.java:267)
	at com.kartoflane.superluminal2.ui.ShipLoaderDialog$7.widgetSelected(ShipLoaderDialog.java:300)
	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.superluminal2.Superluminal.main(Superluminal.java:301)

21:20:01.357 [main] WARN  com.kartoflane.superluminal2.ui.ShipLoaderDialog - An error has occured while loading PLAYER_SHIP_HARD: java.lang.IllegalArgumentException: Argument must not be null.
	at com.kartoflane.superluminal2.ftl.GlowObject.setGlowSet(GlowObject.java:48)
	at com.kartoflane.superluminal2.utils.ShipLoadUtils.loadShipXML(ShipLoadUtils.java:267)
	at com.kartoflane.superluminal2.ui.ShipLoaderDialog$7.widgetSelected(ShipLoaderDialog.java:300)
	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.superluminal2.Superluminal.main(Superluminal.java:301)

21:20:07.162 [main] INFO  com.kartoflane.superluminal2.Superluminal - Exiting...
21:20:07.235 [main] INFO  com.kartoflane.superluminal2.Superluminal - Bye
I tried loading my mod of the kestrel once, before loading the actual Kestrel and succeeding, and then loading the mod another two times and failing on both tries.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: [Tool] Superluminal 2.1.0a

Post by kartoFlane »

It would seem that you've used a custom interior image for cloaking room, but didn't supply a glow image with the matching name. So when the editor tries to load that image, it can't find it and fails... I'll get that fixed for the next minor release.

For now, you'll have to add a glow image for your cloaking interior image; the glow has to be placed in the same folder as the interior, and must be named exactly like the interior image itself, except with the '_glow' suffix before extension.
Superluminal2 - a ship editor for FTL
Post Reply