Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2 3 ... 6

Author Topic: [0.97a] Fleet Journal v1.1.3  (Read 51412 times)

Ontheheavens

  • Commander
  • ***
  • Posts: 137
    • View Profile
[0.97a] Fleet Journal v1.1.3
« on: February 15, 2023, 09:37:19 AM »



Requires LazyLib for Kotlin runtime library.
Can be safely added to existing save games.
Cannot be removed from games in which it was already used.

Important: consider leaving a star for the repo if you appreciate this project.

Description:

Some years ago when I was playing the game, lack of note-taking feature was something that bothered me quite a bit. Oh, but then I found Captain's Log, which adds custom notes!.. as a console command. That was a bummer.

Correcting this now with Fleet Journal - note taking with proper a basic UI.

Features:
  • Write your own fleet log entries in vanilla-adjacent Fleet Journal UI.
  • Add instant log entries for mouseovered entities with a hotkey (J or J-Ctrl).
  • Toggle automatic creation of log entries for discoverable entities, untapped ruins and salvageables.
  • Outfit your log entries with custom icons.
  • Rewrite your log entries back into journal drafts
  • Optional: enable special UI for manual deletion of any intel entry.

Content:

Main Tab
[close]
Entries Removal
[close]
« Last Edit: April 10, 2024, 07:44:37 AM by Ontheheavens »
Logged
   

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #1 on: February 15, 2023, 09:48:17 AM »

Awesome!! Excited to see more stories in the Stories subthread because of this mod!

TimeDiver

  • Captain
  • ****
  • Posts: 355
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #2 on: February 15, 2023, 10:17:25 AM »

Any plans to expand the functionality of this mod to outright delete already-present entries that are in the Intel tab?

Far too often, I end up with duplicate entries that are an absolute pain to remove via editing the save's .xml file.
Logged

Ontheheavens

  • Commander
  • ***
  • Posts: 137
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #3 on: February 15, 2023, 10:26:45 AM »

Any plans to expand the functionality of this mod to outright delete already-present entries that are in the Intel tab?

Far too often, I end up with duplicate entries that are an absolute pain to remove via editing the save's .xml file.

Fairly easy to implement in terms of API, but I'm not sure which specific kind of intel you have in mind - would need to delete intel entries by given class, since blanket remove everything wouldn't be desirable, I presume. Do you mean vanilla fleet log entries, like cargo pods and distress beacons?
« Last Edit: February 15, 2023, 10:29:33 AM by Ontheheavens »
Logged
   

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #4 on: February 15, 2023, 11:04:39 AM »

Hmmm, do you have a tutorial?

I'm having problems adding paragraphs at all.



Not sure what I am supposed to click to add entries since the Add Paragraph doesn't seem to work.

TimeDiver

  • Captain
  • ****
  • Posts: 355
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #5 on: February 15, 2023, 11:25:20 AM »

Fairly easy to implement in terms of API, but I'm not sure which specific kind of intel you have in mind - would need to delete intel entries by given class, since blanket remove everything wouldn't be desirable, I presume. Do you mean vanilla fleet log entries, like cargo pods and distress beacons?
Precisely that, as well as occasional 'quest' entries that persist even after they've been completed (less frequent of an issue, but it occurs on occasion for me, even with me keeping my list of mods as current/updated as possible).

EDIT: Alternatively, due to poor Java coding, there could be doubled entries for a single 'quest', with only one of them being removed from the Intel tab after completion.
« Last Edit: February 15, 2023, 11:27:09 AM by TimeDiver »
Logged

WhisperDSP

  • Commander
  • ***
  • Posts: 148
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #6 on: February 15, 2023, 02:05:12 PM »

Very interesting. Will be handy for special notes that I want for particular systems.

Ontheheavens

  • Commander
  • ***
  • Posts: 137
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #7 on: February 15, 2023, 08:53:26 PM »

Hmmm, do you have a tutorial?

I'm having problems adding paragraphs at all.

Not sure what I am supposed to click to add entries since the Add Paragraph doesn't seem to work.

Before adding a paragraph you need to write something in the text field right above the add/remove buttons. I see why that could be a bit confusing; will add a default prompt to the text field.

Precisely that, as well as occasional 'quest' entries that persist even after they've been completed (less frequent of an issue, but it occurs on occasion for me, even with me keeping my list of mods as current/updated as possible).
EDIT: Alternatively, due to poor Java coding, there could be doubled entries for a single 'quest', with only one of them being removed from the Intel tab after completion.

No promises, but I'll look into it.
« Last Edit: February 15, 2023, 09:06:15 PM by Ontheheavens »
Logged
   

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #8 on: February 16, 2023, 11:58:51 AM »

Before adding a paragraph you need to write something in the text field right above the add/remove buttons. I see why that could be a bit confusing; will add a default prompt to the text field.

Ahh I confused it for a UI header. Thanks!

Crilltic

  • Ensign
  • *
  • Posts: 13
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #9 on: February 18, 2023, 09:01:14 PM »

Got this error when trying to open the Journal in a system (actually happened twice in two different systems), when trying to record the location of a derelict. Literally the first time I've had an issue across multiple runs, so figured I'd report it.

Spoiler
2184536 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.IllegalStateException: shipVariant must not be null
java.lang.IllegalStateException: shipVariant must not be null
   at fleetjour.scripts.panel.Common.getHullClassOfDerelict(Common.kt:41)
   at fleetjour.scripts.objects.SelectableEntity.createContainer(SelectableEntity.kt:31)
   at fleetjour.scripts.panel.EntitySelectorPanel.createEntitiesSelector(EntitySelectorPanel.kt:127)
   at fleetjour.scripts.panel.WriterPanelAssembly.renderEntitiesContainer(WriterPanelAssembly.kt:180)
   at fleetjour.scripts.panel.WriterPanelAssembly.assemblePanel(WriterPanelAssembly.kt:92)
   at fleetjour.scripts.EntryWriter.createLargeDescription(EntryWriter.kt:94)
   at com.fs.starfarer.campaign.comms.v2.EventsPanel.Ò00000(Unknown Source)
   at com.fs.starfarer.campaign.comms.v2.EventsPanel.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.OoO0.buttonPressed(Unknown Source)
   at com.fs.starfarer.ui.oooO.Ò00000(Unknown Source)
   at com.fs.starfarer.ui.oooO.processInput(Unknown Source)
   at com.fs.starfarer.ui.OoO0.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.e$Oo.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.e.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.campaign.comms.v2.EventsPanel.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.campaign.comms.F.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.o0OO.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.N.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.OO0O.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:748)
[close]
Logged

Ontheheavens

  • Commander
  • ***
  • Posts: 137
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #10 on: February 18, 2023, 09:28:22 PM »

Got this error when trying to open the Journal in a system (actually happened twice in two different systems), when trying to record the location of a derelict. Literally the first time I've had an issue across multiple runs, so figured I'd report it.

Spoiler
2184536 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.IllegalStateException: shipVariant must not be null
java.lang.IllegalStateException: shipVariant must not be null
   at fleetjour.scripts.panel.Common.getHullClassOfDerelict(Common.kt:41)
   at fleetjour.scripts.objects.SelectableEntity.createContainer(SelectableEntity.kt:31)
   at fleetjour.scripts.panel.EntitySelectorPanel.createEntitiesSelector(EntitySelectorPanel.kt:127)
   at fleetjour.scripts.panel.WriterPanelAssembly.renderEntitiesContainer(WriterPanelAssembly.kt:180)
   at fleetjour.scripts.panel.WriterPanelAssembly.assemblePanel(WriterPanelAssembly.kt:92)
   at fleetjour.scripts.EntryWriter.createLargeDescription(EntryWriter.kt:94)
[close]
Thank you for the bugreport! Need to put some additional checks in the method, will hopefully post a hotfix in a few minutes, since the issue is fairly critical. Please hold onto that save and that system, there might be some specific config of ship derelict data (perhaps caused by mods), which needs testing.

Edit: uploaded an altered version, you might want to try that system once again. I'm not normally in the habit of posting unfinished work, but this one contains currently-not-working entries management feature - don't mind it, save-compatible.

Should the error still persist, I will need more specifics (derelict ship class, modlist, etc).
« Last Edit: February 19, 2023, 08:46:36 AM by Ontheheavens »
Logged
   

Crilltic

  • Ensign
  • *
  • Posts: 13
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.0
« Reply #11 on: February 19, 2023, 08:28:04 AM »

Cool, the update seems to have fixed the issue.
Logged

Ontheheavens

  • Commander
  • ***
  • Posts: 137
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.2
« Reply #12 on: February 21, 2023, 12:02:37 AM »

Updated to 1.0.2: save-compatible.
  • New feature: intel entries removal widget. WARNING - use at your own discretion, I am not liable for your corrupted saves as a result of use of this functionality. It should be generally safe, but there's no guarantee some mods do not use certain intel items for their features. Use only if you are sure the entry isn't going to be important in the future.
  • Added default prompt to main text field.
  • Fixed NPE with derelict ship data.

Preview
[close]
« Last Edit: February 21, 2023, 12:11:58 AM by Ontheheavens »
Logged
   

Kris_xK

  • Ensign
  • *
  • Posts: 27
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.2
« Reply #13 on: February 21, 2023, 11:39:10 AM »

This is great, thank you!
Logged

Trinary0

  • Ensign
  • *
  • Posts: 9
    • View Profile
Re: [0.95.1a] Fleet Journal v1.0.2
« Reply #14 on: February 21, 2023, 12:34:40 PM »

Received this fatal exception when trying to use the fleet log.

Spoiler
4332950 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at fleetjour.scripts.panel.EntitySelectorPanel.createSortingButtons(EntitySelectorPanel.kt:183)
   at fleetjour.scripts.panel.WriterPanelAssembly.assemblePanel(WriterPanelAssembly.kt:89)
   at fleetjour.scripts.EntryWriter.createLargeDescription(EntryWriter.kt:97)
   at com.fs.starfarer.campaign.comms.v2.EventsPanel.?00000(Unknown Source)
   at com.fs.starfarer.campaign.comms.v2.EventsPanel.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.OoO0.buttonPressed(Unknown Source)
   at com.fs.starfarer.ui.oooO.?00000(Unknown Source)
   at com.fs.starfarer.ui.oooO.processInput(Unknown Source)
   at com.fs.starfarer.ui.OoO0.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.e$Oo.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.e.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.campaign.comms.v2.EventsPanel.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.campaign.comms.F.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.o0OO.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.N.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.newui.OO0O.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.ui.v.dispatchEventsToChildren(Unknown Source)
   at com.fs.starfarer.ui.v.processInputImpl(Unknown Source)
   at com.fs.starfarer.ui.Q.processInput(Unknown Source)
   at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
   at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:748)
[close]
Logged
Pages: [1] 2 3 ... 6