Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: SirHartley on April 11, 2021, 09:29:33 AM

Title: S-Mod dialogue re-sets in built modular hullmods
Post by: SirHartley 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:
(https://i.imgur.com/7PgYQbu.png)

The S-Mod screen when pressing the "build in" button:
(https://i.imgur.com/XXa6MNx.png)

And after exiting that screen:
(https://i.imgur.com/GaX6nso.png)

I think this is a bug. If it isn't - anything I can do to prevent that?
Title: Re: S-Mod dialogue re-sets in built modular hullmods
Post by: Alex 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);
Title: Re: S-Mod dialogue re-sets in built modular hullmods
Post by: SirHartley 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.
Title: Re: S-Mod dialogue re-sets in built modular hullmods
Post by: Alex on April 11, 2021, 11:14:56 AM
Ahh, ok - looks like this is currently unsupported. Made a note to take a look.
Title: Re: S-Mod dialogue re-sets in built modular hullmods
Post by: SirHartley on April 11, 2021, 11:59:32 AM
Alright - Thank you!