Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: 1 ... 33 34 [35] 36 37 ... 42

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

SafariJohn

  • Admiral
  • *****
  • Posts: 3010
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #510 on: March 09, 2022, 09:12:46 AM »

Please expose "descriptionPrefix" in .ship files.
Logged

tomatopaste

  • Captain
  • ****
  • Posts: 306
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #511 on: March 13, 2022, 10:53:58 PM »

RENDER_OVER_SHIPS layer for combat layered rendering plugins (above ships and below weapons/engines)

Also RENDER_OVER_ENGINES, same as above but above engines instead (still below weapons)
Logged

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #512 on: March 15, 2022, 03:27:12 AM »

I would like a rulecmd implemented in vanilla or an OR operator for Rule Scripting.

It seems rather inconvenient that this never existed in the current rulecmd packages. I see 5 major mods that use a custom rulecmd just use an OR operator for certain conditions.

Code
EitherOr <memkey> <memkey> <memkey> <memkey> ...
return true if any of the memory key return true or something like that really...

Might be really useful for modders when they want a rule check for $player.fuel >= 50 or $player.supplies >= 100
...
 :-[

shoi

  • Admiral
  • *****
  • Posts: 650
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #513 on: April 01, 2022, 09:03:34 AM »

Could we get a tag that'd make ships incapable of capturing points?
Logged

Schaf-Unschaf

  • Ensign
  • *
  • Posts: 8
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #514 on: April 06, 2022, 05:04:06 AM »

Would it be possible to expose a Setter for the field
Code
cargoSpacePerUnit
via
Code
CargoStackAPI
? So we can dynamically change the size of items.
Logged

theDragn

  • Captain
  • ****
  • Posts: 305
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #515 on: April 25, 2022, 03:31:16 AM »

Can we get FluxTrackerAPI's ventflux() method exposed? Use case is currently a "burst vent" system.

Also MissileAPI.setSprite(), if possible. (Or ideally a setSprite() for all projectiles, but I don't know how feasible that is). Use case is missiles that would require animation, and repeated projectile swaps to achieve that is less than ideal.

edit with a third request- is it possible to add a method to manipulate a beam's endpoint? ie, BeamAPI.setTo()? it's for this:
Spoiler
[close]
« Last Edit: May 30, 2022, 02:40:13 AM by theDragn »
Logged

Liral

  • Admiral
  • *****
  • Posts: 717
  • Realistic Combat Mod Author
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #516 on: April 26, 2022, 06:22:42 AM »

Move the files and folders in java/com/fs/starfarer/api/impl into the appropriate folders of java/data to let modders easily modify them and unify file storage.

  • Move the hullmod files inside impl/hullmods into the data/hullmods folder and delete the impl/hullmods folder.
  • Move the impl/campaign and impl/combat folders into the scripts folder into the data/scripts folder.
  • Move the two loose scripts, MusicPlayerPluginImpl.java and PlayerFleetPersonnelTracker.java, into the moved campaign folder
« Last Edit: April 26, 2022, 06:26:10 AM by Liral »
Logged

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #517 on: May 04, 2022, 12:57:48 AM »

I'd like to assume CommandGroup is an int (I'm assuming if that's how the current Starsector's Command Group works) from 0-9.

CombatTaskManagerAPI.getCommandGroupFor(ShipAPI ship) returning a CommandGroup if assigned at all or null if not assigned.
CombatTaskManagerAPI.setCommandGroupFor(ShipAPI ship, int CommandGroup) assigns a CommandGroup or unassigns if CommandGroup is left null to the ship.
CombatTaskManagerAPI.getCommandGroup(int CommandGroup) returning a List of ShipAPI in that CommandGroup or null if there are no ships assigned at all (possibly if dead or retreated).

I'd like to know if these method requests are possible at all or Command Groups aren't even in the CombatTaskManagerAPI to be manipulated at all...

I'd like to do some Main Menu missions where ships arrive in reinforcement when some enemies are defeated and then reinforcement ships are instantly deployed (doable) and assigned orders immediately (without the player's commitment to action, doesn't seem to be doable at the moment). While also if players wanted to see who is part of that reinforcement they could always press a number to see.

THEASD

  • Ensign
  • *
  • Posts: 42
  • *Confused Cat Noise*
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #518 on: June 01, 2022, 11:27:10 PM »

please expose enum "missileType"(in .proj files,) like MissileType getType() for MissileSpecAPI
and enum "behavior"(in .proj files), like BehaviorType getBehaviorType() for MissileSpecAPI/ProjectileSpecAPI

and please add something like getBehaviorSpec(), setBehaviorSpec(), getProximityExplosionEffect() and setProximityExplosionEffect() for MissileSpecAPI and ProjectileSpecAPI
« Last Edit: June 01, 2022, 11:46:05 PM by THEASD »
Logged
Also known as AnyIDElse.

SafariJohn

  • Admiral
  • *****
  • Posts: 3010
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #519 on: June 11, 2022, 07:22:53 PM »

Being able to do custom colors for jump points would be nice. Could you expose a color override for JumpPointAPI?

Color getColorOverride();
void setColorOverride(Color colorOverride);
Logged

THEASD

  • Ensign
  • *
  • Posts: 42
  • *Confused Cat Noise*
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #520 on: June 14, 2022, 03:09:10 AM »

It'd be strange if there are only getProgress and no setProgress, setters are actually useful, so please add:
void setAmmoReloadProgress(float progress); for ShipSystemAPI
void setReloadProgress(float progress); for AmmoTrackerAPI
Logged
Also known as AnyIDElse.

Timid

  • Admiral
  • *****
  • Posts: 640
  • Personal Text
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #521 on: June 24, 2022, 09:43:13 PM »

Asking for MarketConditionSpecAPI to have setters as well, they are really useful.

Strange for it to have setDecivRemove and setIcon, but not
Code
void setDesc(string desc); for MarketConditionSpecAPI

THEASD

  • Ensign
  • *
  • Posts: 42
  • *Confused Cat Noise*
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #522 on: June 26, 2022, 01:35:22 AM »

It'd be strange if there is no getRange/setRange in FighterWingSpecAPI, since there already has getAttackRunRange/setAttackRunRange, and I believe that the core have tracked range. Range getter is useful in Fighter AI, so please add:
float getRange(); for FighterWingSpecAPI
void setRange(float range); for FighterWingSpecAPI
Logged
Also known as AnyIDElse.

NuclearStudent

  • Ensign
  • *
  • Posts: 20
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #523 on: June 28, 2022, 12:18:41 PM »

SectorEntityTokens have setCustomDescriptionId as a method.

Would it be possible for ships to have a setCustomDescriptionId for their class, to be renamed dynamically? It's possible to jank one's way having all skins, but that's more awkward than a setCustomDescriptionId equivalent. It'd also be nice if we could write custom strings to a mod's descriptions.csv specifically, but it'd be understandable if file write access can't be loosened in that way. Thank you very much.
Logged

PureTilt

  • Lieutenant
  • **
  • Posts: 54
    • View Profile
Re: API request thread (please read OP before posting!)
« Reply #524 on: July 12, 2022, 11:09:59 AM »

Asking for setReloadProgress() in AmmoTrackerAPI, currently no way to stall reload progress only reset by setting ammoPerSecond to 0
Logged




Pages: 1 ... 33 34 [35] 36 37 ... 42