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)

Author Topic: Is there a list of functions for modding?  (Read 746 times)

jujuteux

  • Ensign
  • *
  • Posts: 43
    • View Profile
Is there a list of functions for modding?
« on: May 05, 2020, 09:06:16 PM »

i'm making hullmods and i tried to use varya's cargo->armor hullmod
i found ship.gethullspec().getCargo() and changed it to ship.gethullspec().getArmor(), hoping it'd work
sadly this isn't the case and i can't find documentation of where that function comes from
Logged

Snrasha

  • Admiral
  • *****
  • Posts: 705
    • View Profile
Re: Is there a list of functions for modding?
« Reply #1 on: May 05, 2020, 09:31:06 PM »

i'm making hullmods and i tried to use varya's cargo->armor hullmod
i found ship.gethullspec().getCargo() and changed it to ship.gethullspec().getArmor(), hoping it'd work
sadly this isn't the case and i can't find documentation of where that function comes from

Use a IDE for see all methods than you can use or just go on the javadoc:
https://fractalsoftworks.com/starfarer.api/index.html?overview-summary.html
Logged
I am pretty bad on english. So, sorry in advance.

Gladiator Society
Add battle options on Com Relay/ Framework for modders for add their own bounty.

Sanguinary Autonomist Defectors A fan-mod of Shadowyard.

jujuteux

  • Ensign
  • *
  • Posts: 43
    • View Profile
Re: Is there a list of functions for modding?
« Reply #2 on: May 05, 2020, 09:41:37 PM »

nice!
i did both, found that armor is getArmorRating
but this library is far better for any next hullmods i'll be making!
thanks a lot ;D
Logged