Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Author Topic: [0.98a] bananaLib v.20250415  (Read 4618 times)

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
[0.98a] bananaLib v.20250415
« on: February 07, 2025, 09:00:20 PM »


disclaimer
Spoiler
this is a mod in progress. it is not as clean or stable as i would wish it to be.
there may be bugs, it may delete your save, it may call KGB to invade your home and steal your cookies. proceed with caution.

there may be sweeping API changes, as necessary. i will attempt to mitigate those to a minimum, to the best of my abilities.
there is not, and will never be a github/gitlab repository. best i can offer is a pastebin page for some specific scripts by request.
all source code is included in the mod archive. additionally, as it is written in plain java 7, it can be easily decompiled. ALWAYS VERIFY

in the event of any questions/misunderstandings please do not hesitate to contact me here via DM, or on discord.
[close]


what and why
Spoiler
this is the shared assets repository for my other mods, to minimize copypasting
it is not limited to strictly code, but also includes some hullmods, abilities, graphic assets and utility frameworks i made use of.
will be sporadically updated as needed.
contains most of bananaFactory code, use it as dependency for compatibility.
[close]


key features
Spoiler
bananaFactory recipe plugins for some common scenarios
sector memory handler to control what recipes are known, can be used for other stuff
campaign target selection reticle - used for station construction recipe, may have more uses
combatInjector - for making things happen in combat based on specified conditions, beforehand combat actually starts, i.e. "after next 3 player battles, randomly spawn 900 reaper kites on all sides."
a bunch of helpful ui functions for displaying various info in tooltips.
[close]



changelog
Spoiler

20250415
- preliminary update for 0.98
- some internal rework

[close]
« Last Edit: April 16, 2025, 05:43:18 PM by banano of doom »
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.97) bananaLib v.20280208
« Reply #1 on: February 07, 2025, 09:00:30 PM »

reserved
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.97) bananaLib v.20280208
« Reply #2 on: February 07, 2025, 09:00:37 PM »

reserved
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.97] bananaLib v.202502012
« Reply #3 on: February 11, 2025, 06:59:43 AM »

update

202502012
-fixed hullmod tooltip rendering not working
-fixed canAfford always being true
-fixed prod item queue swapping not working
-fixed crash when trying to open UI while not having any production-capable ships in fleet AGAIN (for real this time)
« Last Edit: February 12, 2025, 05:49:33 AM by banano of doom »
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.97] bananaLib v.20250213
« Reply #4 on: February 13, 2025, 01:50:51 AM »

update
20250213
- added bananaLib.special.shipInBox
- added boolean bananaLib.recipes.defaultRecipe.canProgress()
- adjustments to build time and price calculation, now possible to change build time while item is being produced
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.97] bananaLib v.20250215
« Reply #5 on: February 14, 2025, 08:53:53 PM »

update

20250215
- fixed bug that caused crash when checking amount of items in null cargo/fleet, potentially making save unloadable
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.97] bananaLib v.20250217
« Reply #6 on: February 17, 2025, 02:14:20 AM »

update
20250217
- adjusted product getter in the default recipes, now can specify whether it will search for spec id or tag, keys starting with $ will be treated as tags
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.97] bananaLib v.20250302
« Reply #7 on: March 02, 2025, 06:17:23 AM »

update
20250302
- fixed price calculation to account for things that are not commodities. wtf was that?
- fixed canAfford function AGAIN
- various fixes to address random null crashes
- added data\bananaLib_stations\station_data.json. allows to easily add custom addons to customEntity stations in campaign layer.
- reworked recipe loading process, now recipe json is loaded entirely as-is and stored in the recipe plugin. as a result all values can be accessed, not just ones that were specifically parsed on load.
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned

banano of doom

  • Captain
  • ****
  • Posts: 365
    • View Profile
Re: [0.98a] bananaLib v.20250415
« Reply #8 on: April 16, 2025, 05:41:16 PM »

update
20250415
- preliminary update for 0.98
- some internal rework
« Last Edit: April 16, 2025, 05:43:28 PM by banano of doom »
Logged
my mods:


please do not ask me for permission to use my code or sprites - the answer is "yes" by default, on condition that my involvement is never mentioned