Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.9.1a is out! (05/10/19); Blog post: Skills and Story Points (07/08/19)

Pages: 1 2 [3]

Author Topic: [0.9.1a] SafariJohn's Rules Tool (v2.1.1)  (Read 6151 times)

SafariJohn

  • Admiral
  • *****
  • Posts: 1400
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.1)
« Reply #30 on: August 23, 2019, 01:36:21 PM »

Found and fixed a couple bugs. Download in the OP.

Changelog:
 Bug Fixes:
 - Fixed trigger/command/variable duplication on load.
 - Fixed silent failure when trying to open a SRT-generated rules.csv file without a corresponding rulesets/NAME.json file.
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 4815
  • naively breaking things!
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.1)
« Reply #31 on: August 25, 2019, 11:33:39 AM »

I'm getting "a Java exception has occurred" errors on startup with 2.01.

I've already copy-pasted the JRE into the application's base directory, etc.

Does SRT presume Starsector's on the C:/ drive?
Logged
Check out my SS projects :)

SafariJohn

  • Admiral
  • *****
  • Posts: 1400
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.1)
« Reply #32 on: August 26, 2019, 02:33:21 PM »

Sorry, the forum failed to notify me of your reply.

That's one of Java's error messages, not SRT's, so I would need to know more to have any hope of troubleshooting it.

SRT does not presume what drive you are using; I run it on my D drive. You don't need the JRE in SRT's directory, either, it should detect an installed version on its own.
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 4815
  • naively breaking things!
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.1)
« Reply #33 on: August 26, 2019, 05:32:07 PM »

Hmm.  The error was generic.  Does it print a log somewhere?
Logged
Check out my SS projects :)

SafariJohn

  • Admiral
  • *****
  • Posts: 1400
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.1)
« Reply #34 on: August 26, 2019, 06:19:20 PM »

I'm afraid it doesn't. You might be able to tell your JRE to log and that might show something, though.

Anyways, if 2.0.0 worked fine for you, then 2.0.1 should as well.

Some things to check:
- SRT has write permissions for where it is.
- The settings.json and rulesets/[ruleset].json files don't have invalid file paths.
- If you copied a ruleset.json from 2.0.0, make sure it doesn't have any crazy long arrays from the now-fixed duplication bug.
- Finally, see if a clean redownload/install fixes it.

If you've changed anything with your JRE lately, I would look into that, too.
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 4815
  • naively breaking things!
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.0.1)
« Reply #35 on: August 26, 2019, 06:36:19 PM »

I'll take a look at the paths; probably something silly like that...
Logged
Check out my SS projects :)

SafariJohn

  • Admiral
  • *****
  • Posts: 1400
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.1.0)
« Reply #36 on: October 08, 2019, 10:27:26 AM »

v2.1.0 released! Download in the OP.

Error logging is the new feature here, and I cleaned up a couple more bugs introduced by 2.0.

Changelog:
 New Stuff:
 - Added logging.
 
 Bug Fixes:
 - Fixed a minor settings failure when the active spellchecking language's dictionary can't be found.
 - Fixed rulesets duplicating vanilla triggers/commands/variables.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 1400
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.1.0)
« Reply #37 on: October 08, 2019, 06:08:16 PM »

The Vanilla.csv was kind of wonky, so I have hotfixed the download to 2.1.0b.

For some reason the salvage and cargo pod rules were in conversation subfolders. ???
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 1400
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.1.1)
« Reply #38 on: October 10, 2019, 08:03:42 PM »

I just discovered that there's a long-standing bug with newline symbols after a quotation mark being converted to text so that it shows up as "\n" in your rules.csv and in-game. Conversion was only supposed to happen for the script column, where each command must be on one line. A true fix is not possible at present, so I've decided to just disable conversion entirely.

That means, when you use a script command like AddText or SetTooltip and want to have multiple paragraphs, you'll have to remember to type "\n" instead of hitting enter. Thankfully, if you forget, the game gives you a helpful "unmatched quotes" error pointing to exactly where you messed up.

Additionally, you will need to fix any mistakenly converted newlines in your rules.csv yourself, which can be done in the Rules Tool (search for "\n" in the find dialog and exclude Scripts from the results).

Please download v2.1.1 in the OP.

Changelog:
Version 2.1.1
 Bug Fixes:
 - Fixed a save bug with newlines inside quotation marks.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 731
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [0.9.1a] SafariJohn's Rules Tool (v2.1.1)
« Reply #39 on: October 11, 2019, 04:31:47 PM »

Thanks I did notice that but wasn't sure if it was me or not (I had thought I typed the wrong slash or something)
Logged
Pages: 1 2 [3]