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); In-development patch notes for Starsector 0.98a (2/8/25)

Author Topic: [API Request] It's the yearly inane item begging thread!  (Read 421 times)

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 943
    • View Profile
[API Request] It's the yearly inane item begging thread!
« on: December 15, 2023, 01:18:24 PM »

As is (almost) tradition, here I am with another row of stuff I'd like to ask for.

I would like to request the addition of a "plugin" field to commodities.csv specifying the commodity plugin and deobfuscation of the vanilla commodity item plugin implementation.
Custom commodity plugins would open the way towards super fun stuff like render effects on commodity items, something that's currently impossible due to the lack of accessibility.

thanks for considering it!
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25148
    • View Profile
Re: [API Request] It's the yearly inane item begging thread!
« Reply #1 on: December 15, 2023, 01:40:33 PM »

Ah! Unfortunately, this... actually does not exist in the core game, at least if I understand what you're asking. To the extent that it does - in supporting custom blueprint/hullmod rendering, and other special items - it's already exposed in the API.

But for e.g. commodities, this isn't implemented as a plugin in the core code, it's just a mess of case statements for different types ("commodity" vs "ship weapons" etc), special rendering code for a bunch of crew icons, and so on. It grew let's say "organically".

This would possibly be a nice thing to have at some point, but it'd be a pretty major undertaking/refactoring of the code, too.
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 943
    • View Profile
Re: [API Request] It's the yearly inane item begging thread!
« Reply #2 on: December 15, 2023, 01:45:29 PM »

Oh that explains... a lot of the issues I ran into.
It was worth a try :)

Thank you for taking the time!
Logged