Three bugs to report,
I loaded a ship mod created with the previous version of Superluminal (arfy's
Hazmatian) into Superluminal via File -> Mod Management. When I tried to save the ship as an .ftl file, I got the following error log,
Code: Select all
TRACE ModDatabaseEntry - hazmatian_cruiser_fedB.ftl was loaded successfully.
TRACE Database - hazmatian_cruiser_fedB.ftl reordered to position 1
TRACE EditorWindow - Saving ship as C:\Users\bob\Documents\Superluminal Win-64 v2.2\arfy-hazmatian.ftl
ERROR EditorWindow - An error occured while saving the ship: java.lang.UnsupportedOperationException
at com.kartoflane.superluminal2.ftl.VerbatimText.getTextId(VerbatimText.java:31)
at com.kartoflane.superluminal2.utils.ShipSaveUtils.createNamedTextSourceElement(ShipSaveUtils.java:371)
at com.kartoflane.superluminal2.utils.ShipSaveUtils.generateTextXML(ShipSaveUtils.java:381)
at com.kartoflane.superluminal2.utils.ShipSaveUtils.saveShip(ShipSaveUtils.java:154)
at com.kartoflane.superluminal2.utils.ShipSaveUtils.saveShipFTL(ShipSaveUtils.java:84)
at com.kartoflane.superluminal2.ui.ShipContainer.save(ShipContainer.java:410)
at com.kartoflane.superluminal2.ui.EditorWindow.promptSaveShip(EditorWindow.java:1670)
at com.kartoflane.superluminal2.ui.EditorWindow$15.widgetSelected(EditorWindow.java:665)
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:324)
I assume this is because the 1.6 editor saves text in the new text_blueprints.xml.append file, but doesn't recognize text in the old format i.e. directly in the tag (which still works).
----------
the other bug
Let's say I open Superluminal, create a custom ship that'll replace the kestrel a, save it as an ftl file, and close the ship. If I then use Mod Management to load the mod in, and then create another custom ship that'll replace the kestrel b, save it as an ftl file and include mod files from the mod I loaded in (the ship that replaces kestrel a), it'll save and all looks well.
However, upon opening the blueprints.xml.append file, I noticed that the ship replacing kestrel a will lack its opening and closing <shipBlueprint> tags, which is problematic. I presume this happens because Superluminal sees it as a "root" tag when loading mod files containing only one ship.
----------
;edit; another bug
When using Edit -> Generate Floor Image and selecting a color for the border or floor, picking a color via the visible color picker or setting HSB values works fine, however trying to set RGB values causes Superluminal to crash (the error makes it pretty obvious the problem, with the range only being able to be between 0 and 1.0, though it doesn't auto-max either like when setting HSB values
Code: Select all
ERROR Superluminal - An unexpected error has occured and the editor was forced to terminate. java.lang.IllegalArgumentException: 0 < 119.7647 < 1.0
at com.kartoflane.common.ui.widgets.HuePicker.setSelection(HuePicker.java:119)
at com.kartoflane.common.ui.SquareColorPickerDialog.setInput(SquareColorPickerDialog.java:521)
at com.kartoflane.common.ui.SquareColorPickerDialog.access$600(SquareColorPickerDialog.java:47)
at com.kartoflane.common.ui.SquareColorPickerDialog$8.modifyText(SquareColorPickerDialog.java:377)
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.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Text.wmCommandChild(Unknown Source)
at org.eclipse.swt.widgets.Control.WM_COMMAND(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.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(Unknown Source)
at org.eclipse.swt.widgets.Text.callWindowProc(Unknown Source)
at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
at org.eclipse.swt.widgets.Text.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.common.ui.SquareColorPickerDialog.open(SquareColorPickerDialog.java:121)
at com.kartoflane.superluminal2.ui.FloorgenDialog$7.widgetSelected(FloorgenDialog.java:252)
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.ui.FloorgenDialog.open(FloorgenDialog.java:330)
at com.kartoflane.superluminal2.ui.EditorWindow$24.widgetSelected(EditorWindow.java:792)
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:324)
as does a hex triplet (e.g. #FFFFFF), for the same reason (range only being able to be between 0 and 1.0, doesn't auto-max either like when setting HSB values)
Code: Select all
TRACE EditorWindow - Saving ship as C:\Users\bob\Documents\Superluminal Win-64 v2.2\crash_1518624405925.ftl
TRACE EditorWindow - Ship saved successfully.
ERROR Superluminal - An unexpected error has occured and the editor was forced to terminate. java.lang.IllegalArgumentException: 0 < 60.0 < 1.0
at com.kartoflane.common.ui.widgets.HuePicker.setSelection(HuePicker.java:119)
at com.kartoflane.common.ui.SquareColorPickerDialog.setInput(SquareColorPickerDialog.java:499)
at com.kartoflane.common.ui.SquareColorPickerDialog.access$600(SquareColorPickerDialog.java:47)
at com.kartoflane.common.ui.SquareColorPickerDialog$8.modifyText(SquareColorPickerDialog.java:377)
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.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Text.wmCommandChild(Unknown Source)
at org.eclipse.swt.widgets.Control.WM_COMMAND(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.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(Unknown Source)
at org.eclipse.swt.widgets.Text.callWindowProc(Unknown Source)
at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
at org.eclipse.swt.widgets.Text.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.common.ui.SquareColorPickerDialog.open(SquareColorPickerDialog.java:121)
at com.kartoflane.superluminal2.ui.FloorgenDialog$8.widgetSelected(FloorgenDialog.java:271)
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.ui.FloorgenDialog.open(FloorgenDialog.java:330)
at com.kartoflane.superluminal2.ui.EditorWindow$24.widgetSelected(EditorWindow.java:792)
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:324)
oh unrelated, but it looks like the error message, "An unexpected error has occured and the editor was forced to terminate." has a typo on the word 'occured', should be 'occurred'.