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: S-Mod dialogue re-sets in built modular hullmods  (Read 1142 times)

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
S-Mod dialogue re-sets in built modular hullmods
« on: April 11, 2021, 09:29:33 AM »

I got a thing that adds modular hullmods as built ins to a variant.

If the "build-in" button in the refit screen is pressed, these built-ins show up as modular hullmods (they are not) and can be built in as S-mods.

Additionally, when exiting that screen, they are no longer built in.

Shows the built-in hullmods:


The S-Mod screen when pressing the "build in" button:


And after exiting that screen:


I think this is a bug. If it isn't - anything I can do to prevent that?
« Last Edit: April 11, 2021, 09:31:24 AM by SirHartley »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: S-Mod dialogue re-sets in built modular hullmods
« Reply #1 on: April 11, 2021, 10:18:24 AM »

Are you calling this method? If not, you need to; especially with the second parameter being true.
variant.addPermaMod(<id>, true);
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
Re: S-Mod dialogue re-sets in built modular hullmods
« Reply #2 on: April 11, 2021, 11:05:20 AM »

I do use that method, but wouldn't setting the second parameter to true add the hullmod as an S-Mod?
The goal of this is to have non-S-mod built ins.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23987
    • View Profile
Re: S-Mod dialogue re-sets in built modular hullmods
« Reply #3 on: April 11, 2021, 11:14:56 AM »

Ahh, ok - looks like this is currently unsupported. Made a note to take a look.
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 839
    • View Profile
Re: S-Mod dialogue re-sets in built modular hullmods
« Reply #4 on: April 11, 2021, 11:59:32 AM »

Alright - Thank you!
Logged