Fractal Softworks Forum

Starsector => Mods => Topic started by: SafariJohn on December 02, 2019, 12:40:54 PM

Title: [0.96a] Logistics Notifications 1.4.5
Post by: SafariJohn on December 02, 2019, 12:40:54 PM
(https://i.imgur.com/OmonWE1.png)

Logistics Notifications

(https://i.imgur.com/q5mmRUl.png)

Download v1.4.5 (https://github.com/SafariJohn/Misc-Starsector-Mods/raw/main/Logistics%20Notifications%201.4.5.zip)

This utility mod shows how many days you have until you run out of supplies.

It also plays an alarm if your supplies or fuel fall below a threshold specified in the config.json.

Changelog:
Version 1.4.5
- Updated to 0.96a

Version 1.4.4
- Fixed crash from IndexOutOfBoundsException

Version 1.4.3
- If you have slowdown with this version, stop flying around with hundreds of ships

Version 1.4.2
- Fixed crash with lingering hint display cleanup

Version 1.4.1
- Fixed slowdown with large fleets
- Fixed lingering display after mod is disabled

Version 1.4.0
- Approximate days of supply is now shown in real time using hints area
  - can be disabled in config.json
- Notifications style is disabled, but can be reenabled in config.json
  - still used for alarms

Version 1.3.3
- Updated to 0.95a

Version 1.3.2
- Added config.json options for alarm sounds

Version 1.3.1
- Migrated version file to github.com

Version 1.3
- Added "LogNot" console command to check days of supply and ly of fuel

Version 1.2
- Fixed FPS drop with large fleets
- Supply calculation now accounts for being over capacity in fuel and personnel
 
Version 1.1
- Moved alarm settings to config.json
- Added alarm as soon as alarm level of supplies or fuel reached
- Fixed on-load logistics notification

Version 1.0a
- Added missing version checker files.

Version 1.0
- Initial release
[close]
Title: Re: [0.9.1a] Logistics Notifications 1.1
Post by: Zoro89 on December 13, 2019, 11:25:18 PM
Hello

Before I test the mod I have some questions:

1. Can you post some screenshots?
2. New game required?
3. Can I remove the mod without problems?

Thx :)
Title: Re: [0.9.1a] Logistics Notifications 1.1
Post by: SafariJohn on December 14, 2019, 07:17:36 AM
Utility mods like this one can be added and removed at will.

I didn't include screenshots because all the mod does is periodically put text notifications on the left side of the screen like intel messages. It is low-key on purpose.
Title: Re: [0.9.1a] Logistics Notifications 1.1
Post by: Kulverstukass on December 14, 2019, 11:10:44 AM
There is a tiny bit of a trouble with Tartiflette's SCY Nation mod, as their ships has dynamical maintenance, that depends on fleet state "stands still"/"on move", which leads to quite heavy performance issue.
But it's easy to overcome - if player has SCY-ships in fleet and took performance hit after adding this mod, said player need to drop said SCY-ships into storage, get on system screen, witness performance return and voila, SCY-ships can be taken back from storage.
I've found it on practice when after adding mod FPS dropped to ~25 on speeding time, from 60+, but as soon as I've done aforesaid it went better.
 :-X
Title: Re: [0.9.1a] Logistics Notifications 1.1
Post by: SafariJohn on December 14, 2019, 12:08:01 PM
Thank you for the report. I don't think this has anything to do with SCY and I have no idea why your fix has any effect, however, I know why this mod could cause some FPS trouble and I'll fix it up.
Title: Re: [0.9.1a] Logistics Notifications 1.2
Post by: SafariJohn on December 15, 2019, 12:49:26 PM
Logistics Notifications v1.2!

Download in the OP.

I made a suggestion to show days of supply, etc., in vanilla. If you find the information this mod shows useful, please pop over there and voice your support.
Suggestion Thread (https://fractalsoftworks.com/forum/index.php?topic=17467.0)

Changes:
- Fixed FPS drop with large fleets
- Supply calculation now accounts for being over capacity in fuel and personnel
Title: Re: [0.9.1a] Logistics Notifications 1.1
Post by: SafariJohn on December 23, 2019, 04:22:28 PM
1. Can you post some screenshots?

I thought about it some more and you are right - even if it's boring, people like to see what they're getting. So, I added a screenshot.
Title: Re: [0.9.1a] Logistics Notifications 1.3
Post by: SafariJohn on January 10, 2020, 09:02:56 PM
Updated to version 1.3

Added "LogNot" console command so you can see your days of supply and ly of fuel whenever you want!

Download in the OP.
Title: Re: [0.9.1a] Logistics Notifications 1.3
Post by: Rasip on January 15, 2020, 07:32:15 PM
Your screenshot is throwing a bit of a red flag. 412 supplies using 10 a day will last 510 days? Shouldn't that be 41? Or is it calculating based on the normal usage and not the current usage which spikes for repairs and regening CR?
Title: Re: [0.9.1a] Logistics Notifications 1.3
Post by: SafariJohn on January 15, 2020, 07:36:37 PM
Or is it calculating based on the normal usage and not the current usage which spikes for repairs and regening CR?

Even better: it accounts for the cost of repairing and the transition back to normal maintenance.

Edit: you make a good point though, I'll add the CR UI to show why there's a discrepancy.
Title: Re: [0.9.1a] Logistics Notifications 1.3.1
Post by: SafariJohn on August 30, 2020, 02:07:56 PM
BitBucket broke Version Checker, so I have moved my files to github.com

Grab v1.3.1 from the OP so VC can notify you of future updates.
Title: Re: [0.9.1a] Logistics Notifications 1.3.1
Post by: Barracuda on September 02, 2020, 10:16:38 AM
Does this mod take into account supplies being used for repairs and combat readiness?
Title: Re: [0.9.1a] Logistics Notifications 1.3.1
Post by: SafariJohn on September 02, 2020, 11:03:45 AM
Does this mod take into account supplies being used for repairs and combat readiness?

Yes.

The only thing that is not accounted for AFAIK is when you have too much cargo. I didn't feel like figuring out the math for that.
Title: Re: [0.9.1a] Logistics Notifications 1.3.1
Post by: adimetro00 on September 12, 2020, 06:02:30 AM
Can you make it so that i can change what sound will play when the alarm sounds?
Title: Re: [0.9.1a] Logistics Notifications 1.3.2
Post by: SafariJohn on September 13, 2020, 07:37:38 PM
Updated to v1.3.2! Download in the OP.

Can you make it so that i can change what sound will play when the alarm sounds?

Sure can! Download the new version and go to data/config/Logistics Notifications/config.json to change what sounds play. You can find the sound ids in vanilla's data/config/sounds.json
Title: Re: [0.95a] Logistics Notifications 1.3.3
Post by: SafariJohn on March 28, 2021, 04:43:15 PM
Updated to v1.3.3! Download in the OP.

Simply updating to 0.95a!

EDIT: missed a comma in the mod_info.json, please redownload
Title: Re: [0.95a] Logistics Notifications 1.3.3
Post by: cardgame on April 27, 2021, 12:14:02 PM
Thanks! This looks good.
Title: Re: [0.95a] Logistics Notifications 1.3.3
Post by: Arcagnello on May 04, 2021, 10:20:11 AM
....why do I not have this?

At the top of the modlist you go!
Title: Re: [0.95a] Logistics Notifications 1.3.3
Post by: peco5bi11 on July 08, 2021, 02:06:48 AM
There doesn't happen to be anywhere to get the pre-0.95a, is there? I'm still on 0.9.1a cause most of my favorite faction mods haven't updated yet and this seems like a really help tool I could use.
Title: Re: [0.95a] Logistics Notifications 1.3.3
Post by: Damienov on July 08, 2021, 04:55:36 AM
There doesn't happen to be anywhere to get the pre-0.95a, is there? I'm still on 0.9.1a cause most of my favorite faction mods haven't updated yet and this seems like a really help tool I could use.

try the 1.3.2 on the mod github page (https://github.com/SafariJohn/Logistics-Notifications)

- just click on the green button top right and "Download as zip"
- when inside should be 2 zip file version (1.3.1 and 1.3.2)
- use the 1.3.2

that should be the last 0.9.1a version for the mod

this should work
Title: Re: [0.95a] Logistics Notifications 1.3.3
Post by: darkond2100 on February 13, 2022, 01:48:00 PM
I hate this mod because I don't want to know when I'm going to run out of supplies. I'd much rather play in ignorance.
Title: Re: [0.95.1a] Logistics Notifications 1.4.0
Post by: SafariJohn on April 14, 2022, 02:54:05 PM
Updated to v1.4.0! Download in the OP!

In a pique of rage I have found a way to do real time display of supply days without figuring out OpenGL. Now you can see approximately how many days of supply you have at any time on the main campaign screen!
Title: Re: [0.95.1a] Logistics Notifications 1.4.1
Post by: SafariJohn on April 16, 2022, 05:11:04 PM
Updated to v1.4.1! Download in the OP!

Fixed slowdown with large fleets and lingering display after disabling the mod.
Title: Re: [0.95.1a] Logistics Notifications 1.4.1
Post by: Algoul on April 17, 2022, 08:50:59 AM
1363 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
   at scripts.LogisticsNotifications_ModPlugin.beforeGameSave(LogisticsNotifications_ModPlugin.java:26)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
   at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
   at com.fs.starfarer.ui.N.dismiss(Unknown Source)
   at com.fs.starfarer.ui.impl.K.dismiss(Unknown Source)
   at com.fs.starfarer.campaign.save.if.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.V.o00000(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)
Title: Re: [0.95.1a] Logistics Notifications 1.4.2
Post by: SafariJohn on April 17, 2022, 11:30:22 AM
Fix is up! Sorry about that.
Title: Re: [0.95.1a] Logistics Notifications 1.4.2
Post by: Algoul on April 17, 2022, 02:08:34 PM
Totally not problem. You made a great work, very helpfull vidget
Title: Re: [0.95.1a] Logistics Notifications 1.4.2
Post by: Algoul on April 18, 2022, 01:24:11 AM
I dont see anymore data for fuel. Its a bug or feature?
Title: Re: [0.95.1a] Logistics Notifications 1.4.2
Post by: SafariJohn on April 18, 2022, 05:46:46 PM
I didn't put in a real time fuel display and the regular notifications are turned off by default, but it will still warn you when you are low on fuel. You can turn the notifications back on in data/config/Logistics Notifications/config.json.
Title: Re: [0.95.1a] Logistics Notifications 1.4.3
Post by: SafariJohn on April 20, 2022, 03:47:53 PM
Version 1.4.3 now available!

If you have slowdown with this version, stop flying around with hundreds of ships.
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: SafariJohn on April 21, 2022, 02:03:32 PM
Updated to v1.4.4! Download in the OP

Fixed an IndexOutOfBoundsException crash. :-[ Was supposed to be caught already, but I put ArrayIndexOutOfBoundsException instead...
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: Son of Man on April 22, 2022, 06:42:32 AM
Updated to v1.4.4! Download in the OP

Fixed an IndexOutOfBoundsException crash. :-[ Was supposed to be caught already, but I put ArrayIndexOutOfBoundsException instead...

Thanks a ton! Just encountered this and was very confused as to why I was suddenly crashing whenever I select a ship in my fleet, lol.
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: Damienov on June 11, 2022, 02:24:10 PM
Hmm the logistic notification looks different on mine
(https://i.imgur.com/9KJQFek.png)
while the sample image on your first post is this
(https://i.imgur.com/q5mmRUl.png)
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: SafariJohn on June 11, 2022, 04:04:16 PM
1.4 changed it. You can turn on that old display in the settings if you want, but it is not as useful.
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: TheHZDev on June 12, 2022, 03:26:00 AM
Sir, can you allow me to translate this mod into Chinese and update it to the Chinese Starsector Forum(https://fossic.org)?
Thank you very much.
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: SafariJohn on June 12, 2022, 06:03:06 AM
Yeah. Go ahead.
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: Mysterius on August 14, 2022, 07:36:49 AM
Hello SafariJohn,

Can the size of the hint message be changed ? As seen on the above screenshot, it's quite big a bit too big to my liking.

If not, that's not really a problem. I'll get used to it quickly !
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: SafariJohn on August 14, 2022, 01:42:25 PM
Sorry, nothing I can do. It's a bit of a hack already as it is.
Title: Re: [0.95.1a] Logistics Notifications 1.4.4
Post by: Mysterius on August 14, 2022, 03:02:24 PM
Thanks anyway  ;)
Title: Re: [0.96a] Logistics Notifications 1.4.5
Post by: SafariJohn on May 06, 2023, 04:30:31 PM
Updated to 0.96a
Title: Re: [0.96a] Logistics Notifications 1.4.5
Post by: lobosan on May 08, 2023, 09:25:40 PM
thx for the update - love your mods!
Title: Re: [0.96a] Logistics Notifications 1.4.5
Post by: Argonaut on May 31, 2023, 04:29:41 PM
Agreed, love SafariJohn's mods (and tool)!
Title: Re: [0.96a] Logistics Notifications 1.4.5
Post by: Shogouki on March 01, 2024, 01:23:40 PM
Anyone know if this functions fine in 0.97?
Title: Re: [0.96a] Logistics Notifications 1.4.5
Post by: Jimminy Crimbles on March 01, 2024, 02:08:04 PM
Anyone know if this functions fine in 0.97?

it does.