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)

Pages: 1 ... 42 43 [44] 45 46

Author Topic: API request thread (please read OP before posting!)  (Read 283642 times)

THEASD

  • Lieutenant
  • **
  • Posts: 57
  • *Confused Cat Noise*
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #645 on: September 01, 2024, 11:49:35 AM »

Please add:
   boolean usesAmmo();
for:
    com.fs.starfarer.api.combat.ShipSystemAPI

To clearly decides if a system uses ammo or not
Logged
Also known as AnyIDElse.

Lukas04

  • Admiral
  • *****
  • Posts: 717
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #646 on: September 01, 2024, 11:04:46 PM »

Please add:
   boolean usesAmmo();
for:
    com.fs.starfarer.api.combat.ShipSystemAPI

To clearly decides if a system uses ammo or not

Can't you just check if the maximum ammo is larger than 0?
Logged

THEASD

  • Lieutenant
  • **
  • Posts: 57
  • *Confused Cat Noise*
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #647 on: September 05, 2024, 02:04:04 AM »

Please add:
   JSONObject getEffectGroups();
for:
    com.fs.starfarer.api.characters.SkillSpecAPI

To get scriptpath/etc from a skill.
Logged
Also known as AnyIDElse.

Ruddygreat

  • Admiral
  • *****
  • Posts: 586
  • Seals :^)
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #648 on: September 25, 2024, 08:08:04 AM »

can we get a method to get the specific opengl texture id that the combat / system background uses?
I know we're also getting a method to get the sprite name, but I'm not particularly fond of the idea of semi-constantly loading duplicates(?) of a large sprite into vram

Lukas04

  • Admiral
  • *****
  • Posts: 717
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #649 on: September 25, 2024, 11:33:52 PM »

I think i requested this before somewhere, but it would be nice to get a settings.json entry that unclamps the map UI from the width & height of the sector at procgen. Would allow for putting content furher out in hyperspace. As of now you cant drag the view outside of those bounds.
Logged

NikoTheGuyDude

  • Admiral
  • *****
  • Posts: 528
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #650 on: September 30, 2024, 10:21:54 AM »

Please make orbitalstation stationFleet and stationEntity public. It makes manipulating orbital stations a lot easier.
Logged

NikoTheGuyDude

  • Admiral
  • *****
  • Posts: 528
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #651 on: October 04, 2024, 11:52:22 AM »

Please make orbitalstation stationFleet and stationEntity public. It makes manipulating orbital stations a lot easier.

Or at least add a getter.
Logged

THEASD

  • Lieutenant
  • **
  • Posts: 57
  • *Confused Cat Noise*
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #652 on: October 05, 2024, 06:51:56 PM »

Please add:
   public MutableStat getEmpDamageMult();
for:
    com.fs.starfarer.api.combat.MutableShipStatsAPI

It's the time, there should be a stat to modify EMP damage dealt by weapon.
Logged
Also known as AnyIDElse.

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #653 on: November 19, 2024, 01:42:29 PM »

please add:

MessageDisplayAPI.getMessages();

To get the currently displayed messages (also requires de-obfuscating the inner "Message" class).
Thanks!
Logged

Android9k

  • Ensign
  • *
  • Posts: 36
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #654 on: November 26, 2024, 12:53:01 PM »

removeTag(String tag) for com.fs.starfarer.api.loading.FighterWingSpecAPI
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3158
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #655 on: January 10, 2025, 06:05:52 PM »

Surprised there is not already CommMessageAPI.MessageClickAction.CARGO_TAB
Logged

banano of doom

  • Captain
  • ****
  • Posts: 378
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #656 on: February 14, 2025, 12:31:03 AM »

please add boolean ShipEngineControllerAPI.isIdle() which should return true when ship is not actively doing anything movement-related.
not strictly necessary or limiting in any way, but it is inconvenient having to manually check every single other possible state to be false, when doing any sort of thruster-related modding.

also, would it be possible to add SpecialItemPlugin.getCargoSpace() that we can override, for dynamic size of item based on data stored in it?
« Last Edit: February 14, 2025, 12:48: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

SafariJohn

  • Admiral
  • *****
  • Posts: 3158
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #657 on: February 20, 2025, 01:44:24 PM »

public MutableStat getNumBuiltInFighterBays() in MutableShipStatsAPI would be helpful
Logged

Timid

  • Admiral
  • *****
  • Posts: 659
  • Personal Text
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #658 on: February 20, 2025, 11:24:14 PM »

I would like a way for missions to have a dependency added to their descriptor.json

For example:
Code
{
"title":"Forlorn Hope",
"difficulty":"HARD",
"icon":"icon.jpg",
"background":"graphics/backgrounds/background2.jpg"
        "dependencies": [
        {"id": "mod_1", "name": "Mod 1"},
        {"id": "mod_2", "name": "Mod 2",
            "version":{
                "major":1,
                "minor":0,
                "patch":0
            }
        },
    ],
}
And if the dependencies of a mod do not appear aren't met, do not fire any code to make that mission appear. It would be a good way for mods to use modded variants or support a certain ship pack from a faction mod's perspective. The current workaround is to BLANK everything in the MissionDefinition.java which can lead to a bad experience when players when they see a mission they are unable to play.

EDIT:
...
I'd like to ask if CombatFleetManager.getGroupManager() would be exposed to use and modify?

Tranquility

  • Captain
  • ****
  • Posts: 292
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #659 on: March 01, 2025, 12:38:56 PM »

I would like the logic inside the for-loop of CoreLifecyclePluginImpl's createInitialPeople() method to be extracted as a public static method that we can use (something like createInitialPeople(MarketAPI market, Random random), perhaps?). Main reason is to allow mods to add markets mid-game (i.e., after the new-game economy load step) and then easily populate those added markets with the usual NPC people, without needing to copy the createInitialPeople() code to implement this functionality.
Pages: 1 ... 42 43 [44] 45 46