[Tool] Superluminal 2.2.1 - FTL Ship Editor
- Portaller
- Posts: 16
- Joined: Fri Jun 03, 2016 12:50 am
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
Ah, I see. Thank you.
“Light thinks it travels faster than anything but it is wrong." - Terry Pratchett
Creator of the DeLorean.
1:241 Win/Loss ratio.
Creator of the DeLorean.
1:241 Win/Loss ratio.
-
- Posts: 12
- Joined: Wed Jun 15, 2016 7:41 pm
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
Code: Select all
TRACE EditorWindow - Saving ship as C:\Users\Alfie\OneDrive\Documents\junkyard.ftl
ERROR EditorWindow - An error occured while saving the ship: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(Unknown Source)
at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at com.kartoflane.superluminal2.utils.IOUtils.readStream(IOUtils.java:258)
at com.kartoflane.superluminal2.utils.ShipSaveUtils.saveShip(ShipSaveUtils.java:233)
at com.kartoflane.superluminal2.utils.ShipSaveUtils.saveShipFTL(ShipSaveUtils.java:66)
at com.kartoflane.superluminal2.ui.ShipContainer.save(ShipContainer.java:381)
at com.kartoflane.superluminal2.ui.ShipContainer.save(ShipContainer.java:395)
at com.kartoflane.superluminal2.ui.EditorWindow.promptSaveShip(EditorWindow.java:1513)
at com.kartoflane.superluminal2.ui.EditorWindow$15.widgetSelected(EditorWindow.java:610)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.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:307)
I can't save my ship, it says invalid LOC header (bad signature).
This has happened before but I can fix it by restarting Superluminal. Problem is doing so would delete this ship I worked on for ages. What do I do?
- kartoFlane
- Posts: 1488
- Joined: Mon Jan 14, 2013 10:20 pm
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
Try to save the ship as a resource folder. This is virtually the same as saving as .ftl, except the mod file containing the ship is unpacked. You can then pack it back up into an .ftl file (there's plenty of explanations how to do that around the forums here).
Superluminal2 - a ship editor for FTL
-
- Posts: 12
- Joined: Wed Jun 15, 2016 7:41 pm
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
kartoFlane wrote:Try to save the ship as a resource folder. This is virtually the same as saving as .ftl, except the mod file containing the ship is unpacked. You can then pack it back up into an .ftl file (there's plenty of explanations how to do that around the forums here).
That didn't work, but just leaving Superluminal minimized for ages fixed the problem. It seems to be fixed by Superluminal reloading or whatever it is when the loading bar comes up with your ship still there.
- gentasaurus
- Posts: 67
- Joined: Mon Jun 27, 2016 1:09 pm
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
Hi kartoFlane,
Let me just say I absolutely adore your tool, and thank you so much for putting the time and effort into making it!
I have a question about something that's been confusing me lately: for enemy ships, what does the reactor power mean? The XML files call it the maximum power, but to me it seems more reasonable for it to be the minimum. Do you, or anyone else, know what this value really means? Thanks again!
Let me just say I absolutely adore your tool, and thank you so much for putting the time and effort into making it!
I have a question about something that's been confusing me lately: for enemy ships, what does the reactor power mean? The XML files call it the maximum power, but to me it seems more reasonable for it to be the minimum. Do you, or anyone else, know what this value really means? Thanks again!
- kartoFlane
- Posts: 1488
- Joined: Mon Jan 14, 2013 10:20 pm
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
Hey, welcome to the forums, and thanks for the kind words :)
My focus has always been more on the player ships side of things, so my knowledge of the game's mechanics regarding enemy ships is limited. From what I remember though, it's entirely possible that it is as you're saying. SleeperService (author of CE) has much more experience in that area, so it'd be best to ask him for confirmation and details.
You still have less than 10 posts, meaning you're unable to send PMs yet, though. If no other posters (or Sleeper) answer you here (give it a day or so), your best bet will probably be making a new topic asking this question.
Well that's really weird. Based on the save path, I assume you're running Windows10, so maybe that's why odd things are happening... That OS has caused some bugs in the past for some people.
Anyway, you could try running the editor using the _admin exe (also by right clicking on it and selecting "run as admin", to make absolutely sure that it can save files...), or saving the .ftl to a different path (eg. Desktop)
My focus has always been more on the player ships side of things, so my knowledge of the game's mechanics regarding enemy ships is limited. From what I remember though, it's entirely possible that it is as you're saying. SleeperService (author of CE) has much more experience in that area, so it'd be best to ask him for confirmation and details.
You still have less than 10 posts, meaning you're unable to send PMs yet, though. If no other posters (or Sleeper) answer you here (give it a day or so), your best bet will probably be making a new topic asking this question.
SharkmanBriton wrote:That didn't work, but just leaving Superluminal minimized for ages fixed the problem. It seems to be fixed by Superluminal reloading or whatever it is when the loading bar comes up with your ship still there.
Well that's really weird. Based on the save path, I assume you're running Windows10, so maybe that's why odd things are happening... That OS has caused some bugs in the past for some people.
Anyway, you could try running the editor using the _admin exe (also by right clicking on it and selecting "run as admin", to make absolutely sure that it can save files...), or saving the .ftl to a different path (eg. Desktop)
Last edited by kartoFlane on Thu Jun 30, 2016 12:13 am, edited 1 time in total.
Superluminal2 - a ship editor for FTL
- Stormbringer
- Posts: 247
- Joined: Mon Apr 11, 2016 7:53 am
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
dear kartoflane: your editor is good and all, but for some reason the textures for green-level glow does'nt display correctly. it shows as a yellow and black checkered thing.
- stylesrj
- Posts: 3644
- Joined: Tue Jul 08, 2014 7:54 am
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
You may want to unload all mods first before making a new ship. The glows shouldn't be like that unless you've added the mod to the game and then edited it in Superluminal and saved it again - you're telling the game to use images it cannot find and thus it comes back with checkers.
- gentasaurus
- Posts: 67
- Joined: Mon Jun 27, 2016 1:09 pm
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
Thanks for the advice, I'll try to make a topic on the questions I have
Also, might not be a priority at the moment, but it appears that trackpad users who try to scroll horizontally when choosing a ship/weapon/drone will get an instant crash. The crash log is below:

Also, might not be a priority at the moment, but it appears that trackpad users who try to scroll horizontally when choosing a ship/weapon/drone will get an instant crash. The crash log is below:
Code: Select all
11:21:36.573 [main] ERROR com.kartoflane.superluminal2.Superluminal - An error has occured and the editor was forced to terminate. java.lang.NullPointerException
at org.eclipse.swt.widgets.Scrollable.sendHorizontalSelection(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Unknown Source)
at org.eclipse.swt.widgets.Widget.scrollWheel(Unknown Source)
at org.eclipse.swt.widgets.Control.scrollWheel(Unknown Source)
at org.eclipse.swt.widgets.Composite.scrollWheel(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Unknown Source)
at org.eclipse.swt.widgets.Widget.scrollWheel(Unknown Source)
at org.eclipse.swt.widgets.Control.scrollWheel(Unknown Source)
at org.eclipse.swt.widgets.Composite.scrollWheel(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Unknown Source)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Unknown Source)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.applicationProc(Unknown Source)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at com.kartoflane.superluminal2.Superluminal.main(Superluminal.java:307)
- kartoFlane
- Posts: 1488
- Joined: Mon Jan 14, 2013 10:20 pm
Re: [Tool] Superluminal 2.1.2b - FTL Ship Editor
gentasaurus wrote:Also, might not be a priority at the moment, but it appears that trackpad users who try to scroll horizontally when choosing a ship/weapon/drone will get an instant crash. The crash log is below:
Unfortunately, it looks like this is a bug with the GUI framework itself that I used to create the editor; meaning, it's not possible for me to fix this myself (not that a new version is likely to happen at this point, anyway).
Though I suppose it could be related to the previous Win10 bug, which, oddly enough, was fixed by disabling touchscreen support.
Stormbringer wrote:dear kartoflane: your editor is good and all, but for some reason the textures for green-level glow does'nt display correctly. it shows as a yellow and black checkered thing.
Exactly what stylers said. This is covered by FAQ #4.
Although... It might also be possible that you haven't assigned the glow image set to the system in question (or an image is missing from the set).
It's been a while since I've done any FTL modding, so I don't remember exaclty, but you'll probably want to take a look at rooms.xml.append file in the ship's .ftl, and compare against vanilla entries to make sure nothing's missing. RoomLayout's name references image names in img/ship/interior (matching format room_name.png), whereas ComputerGlow's optional name references glow images (which IIRC can actually be any image in that same folder, which has 3 versions with the same name, and consecutive numbers 1,2,3 at the end. It's likely that one of the images in the sequence is missing).
Superluminal2 - a ship editor for FTL