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: Planet Search Overhaul (07/13/24)

Pages: 1 [2] 3 4

Author Topic: [0.95.1a] SafariJohn's Rules Tool v2.4.0  (Read 52801 times)

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v0.2.0)
« Reply #15 on: November 27, 2018, 12:09:26 PM »

Added to openFolder(), openFolderRecursive().
Code
files.addAll(Arrays.asList(rootDirectory.listFiles()));
Collections.sort(files); // Sort file collection.

Do not believe listFiles() guarantees any order so have to be sorted somehow, handling files is always weird between OS', Windows gave you in order I suppose.
Works now.


Awesome! Thank you for finding that. I suspect it would have taken me a long while. The next version will include your fix.

Running it natively, just added SRT.sh with this to folder.
Code
java -jar ./bin/SRT.jar

But really doesn't save much typing.

That is simpler than I thought. So if I understand this correctly, a .zip for Linux would just replace the SRT.exe with SRT.sh; otherwise identical to Windows? Been a while since I've done anything with Linux.
Logged

Armithaig

  • Lieutenant
  • **
  • Posts: 54
    • View Profile
    • Amaranth
Re: [0.9a] SafariJohn's Rules Tool (v0.2.0)
« Reply #16 on: November 27, 2018, 12:50:04 PM »

No trouble, project's pretty well organised.

Some java applications bundle the JRE they're built against in case it can't be found on the target machine, Starsector's in ./jre_linux, but's ~130mb by default for 1.7.
Not reasonable for smaller apps. Modding Starsector, they'll have Java installed anyhow. Simple shell file will be fine.

Linux version of this game also runs through a shell file, but slightly different approach. Some hotspot VM options, -classpath with all the jars to reference, defines some paths and then shoves it on with com.fs.starfarer.StarfarerLauncher.

EDIT: Shot pull request your way. Added directory conditions.
Spoiler
[close]

Only works one way currently (export), will get around to muffin' with the imports as well but've gotta cook dinner.
« Last Edit: November 28, 2018, 07:36:33 AM by Armithaig »
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v0.3.0)
« Reply #17 on: December 01, 2018, 10:09:09 AM »

New version up! Download in the OP.

Changelog:
Version 0.3.0
New Stuff:
   Now officially supports Linux!

Bug Fixes:
   Opening rule sets in Linux now properly respects file order. (Thanks, Armithaig!)
   Opening/saving/importing/exporting consistently use UTF-8 now. For example, Chinese will work correctly.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v1.0.0)
« Reply #18 on: January 09, 2019, 09:11:01 AM »

Version 1.0! Download in the OP.

As the number implies, SRT is 100% done. I'll fix any bugs that crop up and update for new versions of Starsector, but development on new features will be even more sporadic than it has been.

Changelog:
 New Stuff:
 - To change which rule you are editing, you must now double-click the rule you want to edit.
 - Forcing/Blocking linked rules can now be done from the main interface. Drag rules from the rules tree to force them; select rules on the right and hit delete to block them.
 - Minor improvements to linked rules detection.
 - Close [Rule Set] menu button now has a shortcut: ctrl-b.

 Bug Fixes:
 - Fixed potential bug in trigger/command/variable drag-and-drop code.
 - Fixed typo - triggers now load correctly.
 - Moved vanilla "Remnant battlestation", "SALVAGE", and "CARGO PODS" folders out of "Smuggling investigation inspector" folder.
 - Double clicking a linked rule now changes the selection in the rules tree, as you would expect.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v1.0.1)
« Reply #19 on: January 19, 2019, 10:13:46 AM »

New version - 1.0.1 - patches up some problems. Download in the OP, per usual.

Changelog:
 New Stuff:
 - Can now cancel when exiting the program or closing a rule set.
 
 Bug Fixes:
 - Undo/Redo now works for the root folder of rule sets.
 - Now remembers a rule set between sessions if you change its name but don't save the change.
 - The Exit button in the File menu now exits correctly.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v1.0.1)
« Reply #20 on: February 23, 2019, 10:40:44 AM »

I've had some time to extensively use this tool, and thank you so much for making it so easy to add and edit rules!

This greatly reduces my development time to get rules content out there and wow is it useful to find bugs. :)

There were some conflicts I didn't even realize I had until the tool highlighted them for me.


I'd say this tool is now as essential as the Ship Editor for me. The downtime between updates that break the ship editor and the time it takes to get it compatible is truly felt.
« Last Edit: February 23, 2019, 12:03:22 PM by Morrokain »
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v1.0.1)
« Reply #21 on: February 23, 2019, 11:27:12 AM »

A request:

Not sure if this is a bug or not, but I would really like to be able to copy paste the "Dialog Options:" field under the "Text" tab.

Not the worst thing to have to type all that out, so no worries if that would be a pain, just figured I'd request it. :)

Great job!
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v1.0.1)
« Reply #22 on: February 23, 2019, 11:59:42 AM »

Thanks! I'm glad it's useful.

Not sure if this is a bug or not, but I would really like to be able to copy paste the "Dialog Options:" field under the "Text" tab.

It is a bug. Not sure when I'll get around to fixing it, but I've put it on the todo list.

The downtime between updates that break [the ship] editor and the time it takes to get it compatible is truly felt.

Unlike ship_data.csv, I don't think rules.csv has ever changed, so no worries :)
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: [0.9a] SafariJohn's Rules Tool (v1.0.1)
« Reply #23 on: March 13, 2019, 10:55:46 AM »

I remember back in the day, having to hack the Dialogs from scratch in Java.  When Rules were introduced, I remember having to code around that. 

This is a big improvement, merely being able to parse through Rules without too much mess and being able to see the relationships clearly.
Logged
Please check out my SS projects :)
Xeno's Mod Pack

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v1.1.0)
« Reply #24 on: May 21, 2019, 10:34:36 AM »

Version 1.1.0 updates SRT with 0.9.1's vanilla rules and some other stuff. Download in the OP.

Changelog:
 New Stuff:
 - Updated vanilla rules to 0.9.1a.
 - The enter key can now be used in the rules tree to select a rule/folder for editing.
 
 Bug Fixes:
 - Copy/Paste now works in Dialog Options text box.
 - Collapsing a rules tree folder that contains the active rule/folder using the arrow keys sets it as the active rule/folder.
 - Fixed an infinite loop when trying to save to a non-existent directory.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v1.1.0)
« Reply #25 on: July 24, 2019, 05:04:33 PM »

I am adding an options menu to SRT. Does anyone have any ideas for options they'd like to see?
Logged

chancoco

  • Ensign
  • *
  • Posts: 13
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v1.1.0)
« Reply #26 on: July 24, 2019, 05:52:45 PM »

I only just started using SRT so there's a lot I don't know about it yet, but could I ask for the option to open rules with a single-click instead of a double-click? I spend a lot of time looking at the rules and how they branch out to get a better idea of how things work. That extra millisecond saved per click adds up.

Fantastic tool btw. Thanks for working on it.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v1.1.0)
« Reply #27 on: July 24, 2019, 07:13:11 PM »

I only just started using SRT so there's a lot I don't know about it yet, but could I ask for the option to open rules with a single-click instead of a double-click? I spend a lot of time looking at the rules and how they branch out to get a better idea of how things work. That extra millisecond saved per click adds up.

Fantastic tool btw. Thanks for working on it.

Thanks! I've been feeling the double-click delay, too. I might be able to swing single-click, depending on behind-the-scenes stuff.

In the meantime, try using the arrow keys/enter key and see if that feels better.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3079
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.0)
« Reply #28 on: August 05, 2019, 01:07:16 PM »

2.0!

That's right, the Rules Tool is now 2.0! This is a big big big update! Streamlined saving/loading, find/replace, spellchecking, and more are all now included!

Download in the OP, see the changelog for details.

Changelog:
 New Stuff:
 - Simplified loading/saving. SRT now saves your changes directly to your rules.csv!
   - Use the Convert option in the File menu to convert your pre-2.0 data.
 - Added find & replace!
 - Added spellchecking!
 - You can now edit the included vanilla rules.
 - Editing has been enabled on the Summary tab.
 - Added Safe Mode, which protects your original rules.csv from in-progress changes.
 - Lowered minimum supported resolution from 1024x768 to 800x600.
 - Selecting a rule to edit is once again a single click.
 - SRT-generated CSV files now have #END lines marking the end of folders.
 
 Bug Fixes:
 - Added a confirmation dialog if you try to save a ruleset with the same name as another.
 - Fixed a save bug when a folder has a comma in its name.
 - The rules tree now focuses on the selected rule when changed from elsewhere.
 - Old files left when a ruleset is renamed are now cleaned up automatically.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.0)
« Reply #29 on: August 10, 2019, 03:47:05 PM »

Yay! Just in time for me to use it for my next dev sprint. I'll let you know if any bugs show up!
Logged
Pages: 1 [2] 3 4