Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: 1 2 [3]

Author Topic: [0.97a] Ship Editor v0.7.6  (Read 7589 times)

nathan67003

  • Commander
  • ***
  • Posts: 151
  • Excellent imagination, mediocre implementation.
    • View Profile
Re: [0.96a] Ship Editor v0.7.5
« Reply #30 on: January 20, 2024, 05:56:53 AM »

Mind posting screenshots to your folders? Your distro's Java version is unrelated to the one the .sh should run - if you're using CLI, you should be able to just do jre/bin/java -jar ship_editor.jar from within your Ship Editor folder.

This may also fix your issue - I'm not quite sure why the linebreaks would be like this since I wrote the .sh on Mac in .txt mode with TextEdit, but I'll likely need to fix this when I get some time to do so on my own Linux distro.
« Last Edit: January 20, 2024, 05:59:08 AM by nathan67003 »
Logged
I have some ideas but can't sprite worth a damn and the ideas imply really involved stuff which I've no clue how to even tackle.

CHK

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.96a] Ship Editor v0.7.5
« Reply #31 on: January 24, 2024, 05:38:28 AM »

Sorry it took me this long t see your reply.

jre/bin/java -jar command worked for me. The editor finally opens and seems to be working better than the old one.

Thank you for your time.
Logged

Princess_of_Evil

  • Captain
  • ****
  • Posts: 459
    • View Profile
Re: [0.96a] Ship Editor v0.7.5
« Reply #32 on: January 27, 2024, 02:56:03 AM »

The editor doesn't seem to play nice with `width` and `height` - very noticeable if you try to edit vanilla stations.
Also, why in the [redacted] is undo Ctrl+U?
Logged
Proof that you don't need to know any languages to translate, you just need to care.

Ontheheavens

  • Commander
  • ***
  • Posts: 134
    • View Profile
Re: [0.96a] Ship Editor v0.7.5
« Reply #33 on: January 30, 2024, 06:22:18 AM »

The editor doesn't seem to play nice with `width` and `height` - very noticeable if you try to edit vanilla stations.

It is implicitly assumed, just like in Trylobot's editor, that the width and height dimensions will be identical to that of sprite; in other words, editing functionality for width and height is not implemented (again, like in old editor) as hardly anyone would use the feature. If you had some other width/height issue in mind, feel free to provide a visual example and steps to reproduce. If you have a reasonable use case for the additional functionality, you can share that as well and we'll see what can be done.

As for vanilla station - so far my understanding is that all of them have conventional dimensions equal to that of sprites, and I looked at said vanilla stations constantly when implementing module editing and similar stuff. What exactly was the noticeable issue?

Also, why in the [redacted] is undo Ctrl+U?

There are a number of reasons as to why the hotkey layout is not satisfactory; and I, indeed, should like to implement keybinds as they were present in the old editor, since it had a pretty comprehensive scheme. However, Swing has some pretty deeply coded functionality tied to ALT (focusing file menu), and so I was inclined to do ad-hoc solutions throughout development process. Should you have a more streamlined keybind scheme figured out (that would take into account all emergent constraints like number of editor mode tabs and so on), I would be happy to discuss it.

Edit:

If you're using CLI, you should be able to just do jre/bin/java -jar ship_editor.jar from within your Ship Editor folder.
This may also fix your issue - I'm not quite sure why the linebreaks would be like this since I wrote the .sh on Mac in .txt mode with TextEdit, but I'll likely need to fix this when I get some time to do so on my own Linux distro.

While I'm at it - thanks for providing assistance for those Linux issues!
« Last Edit: January 30, 2024, 06:27:37 AM by Ontheheavens »
Logged
   

Princess_of_Evil

  • Captain
  • ****
  • Posts: 459
    • View Profile
Re: [0.96a] Ship Editor v0.7.5
« Reply #34 on: January 30, 2024, 07:51:51 AM »

It is implicitly assumed, just like in Trylobot's editor, that the width and height dimensions will be identical to that of sprite; in other words, editing functionality for width and height is not implemented (again, like in old editor) as hardly anyone would use the feature. If you had some other width/height issue in mind, feel free to provide a visual example and steps to reproduce. If you have a reasonable use case for the additional functionality, you can share that as well and we'll see what can be done.

As for vanilla station - so far my understanding is that all of them have conventional dimensions equal to that of sprites, and I looked at said vanilla stations constantly when implementing module editing and similar stuff. What exactly was the noticeable issue?
After checking it a bit more, the only station that actually has that is station1 - small lowtech. I swear i saw it somewhere else, but i guess that's the only one i can find.

There are a number of reasons as to why the hotkey layout is not satisfactory; and I, indeed, should like to implement keybinds as they were present in the old editor, since it had a pretty comprehensive scheme. However, Swing has some pretty deeply coded functionality tied to ALT (focusing file menu), and so I was inclined to do ad-hoc solutions throughout development process. Should you have a more streamlined keybind scheme figured out (that would take into account all emergent constraints like number of editor mode tabs and so on), I would be happy to discuss it.
The general undo keybind on most systems is Ctrl+Z, which has an upside of being two keys next to each other.
Logged
Proof that you don't need to know any languages to translate, you just need to care.

Ryxsen1421

  • Captain
  • ****
  • Posts: 397
    • View Profile
    • Twitter
Re: [0.96a] Ship Editor v0.7.5
« Reply #35 on: March 05, 2024, 06:44:47 PM »

Hi hi, I wonder if its possible to add colored background to the ship editor? It's so that it doesn't burn my eyes all the time.

EDIT: Just saw my friend checking out the ship editor with me watching his stream. It's there alright, thanks for the brand new modern ship editor! Time to migrate to the new one.
« Last Edit: March 05, 2024, 07:11:28 PM by Ryxsen1421 »
Logged

starficz

  • Ensign
  • *
  • Posts: 18
    • View Profile
Re: [0.96a] Ship Editor v0.7.5
« Reply #36 on: March 10, 2024, 04:36:34 PM »

This ship editor is really nice. Used it a bunch on KoL. One thing though, typically I needed to manually align several ship layers with modules in each one to another layer with a parent ship, as you cannot edit the module ships themselves when loading a variant data. when loading a variant data could you put an option to also load the module ship on separate layers in the correct place in global coordinates? It would save me from having to manually pixel line them up every time.
« Last Edit: March 10, 2024, 04:38:58 PM by starficz »
Logged

Ontheheavens

  • Commander
  • ***
  • Posts: 134
    • View Profile
Re: [0.97a] Ship Editor v0.7.6
« Reply #37 on: March 11, 2024, 05:22:47 AM »

Hi hi, I wonder if its possible to add colored background to the ship editor? It's so that it doesn't burn my eyes all the time.

EDIT: Just saw my friend checking out the ship editor with me watching his stream. It's there alright, thanks for the brand new modern ship editor! Time to migrate to the new one.

Yes, there are options for color and checkered background, which can be combined together. Thanks.

This ship editor is really nice. Used it a bunch on KoL. One thing though, typically I needed to manually align several ship layers with modules in each one to another layer with a parent ship, as you cannot edit the module ships themselves when loading a variant data. when loading a variant data could you put an option to also load the module ship on separate layers in the correct place in global coordinates? It would save me from having to manually pixel line them up every time.

That's a comprehensive suggestion, thanks. Updated to v0.7.6:
  • Options for quick module-to-layer loading: both selective from module list right-click option and bulk loading through button widget.
  • Fast layer selection, handy when working with dozens of layers: hold ALT and move mouse to select closest layer to mouse point (compared by layer sprite center point).
  • Performance tweaks.

Module to layer widgets, background options
[close]

Edit:
should you already have the editor on your machine, it is possible to just swap the JAR and peruse the new additions.

Edit 2: might as well revisit the hotkey issue:

]
After checking it a bit more, the only station that actually has that is station1 - small lowtech. I swear i saw it somewhere else, but i guess that's the only one i can find.

I looked into the custom width/height stuff - it would be a sizable bit of effort to try and accomodate this feature. Considering that Alex himself doesn't seem to use this, and hardly anyone in community does (you can just modify the sprite itself, right?), I don't think benefits justify the development effort here. For what it's worth, I would be willing to consider incoming pull requests should someone write the implementation, but I won't be working on it myself.

]
The general undo keybind on most systems is Ctrl+Z, which has an upside of being two keys next to each other.

After fiddling a bit and comparing behaviour with the Trylobot's editor, I figured out some wonkyness from ALT's focus behaviour does not outweigh benefits of old streamlined scheme.

Just went ahead and realigned hotkey arrangement: undo/redo is CTRL-Z/CTRL-X, layer drag/rotate is middle mouse button with SHIFT/CTRL, various instrument action hotkeys now only use SHIFT/CTRL/ALT and mouse buttons and gestures, while keyboard buttons like C, S, B and so on are now used with ALT to quickly switch between instrument tabs.

I shouldn't like to release another update with a change so trifling, so anyone wishing to test this has to swap the JAR: https://github.com/Ontheheavens/Ship-Editor/blob/master/ship_editor.jar

Feel free to post your feedback and suggestions. Thanks.
« Last Edit: March 11, 2024, 09:34:19 AM by Ontheheavens »
Logged
   

nathan67003

  • Commander
  • ***
  • Posts: 151
  • Excellent imagination, mediocre implementation.
    • View Profile
Re: [0.97a] Ship Editor v0.7.6
« Reply #38 on: March 12, 2024, 05:56:07 AM »

Edit: should you already have the editor on your machine, it is possible to just swap the JAR and peruse the new additions.
Would probably be a nice QoL thing to have this spelled out in the release descriptions on GitHub as well as a link (or something) directly to the .jar as a standalone download in said release. A very minor thing, admittedly but when the changes are very minor, knowing you just have to swap out the .jar definitely makes me update immediately if I'm not in the middle of a large project.
Logged
I have some ideas but can't sprite worth a damn and the ideas imply really involved stuff which I've no clue how to even tackle.
Pages: 1 2 [3]