Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Perma Hullmod Removed by Build-In Menu  (Read 525 times)

SafariJohn

  • Admiral
  • *****
  • Posts: 3023
    • View Profile
Perma Hullmod Removed by Build-In Menu
« on: March 22, 2022, 07:29:12 PM »

I added a normal hullmod as a non-s-mod built-in via ShipVariantAPI.addPermaMod("hullmodId", false). Everything seems fine, but when the s-mod build-in menu is opened, the perma mod can be de-permafied. Even if the player doesn't interact with the mod, it is still de-permafied when they close the build-in menu.
Logged

SirHartley

  • Global Moderator
  • Admiral
  • *****
  • Posts: 840
    • View Profile
Re: Perma Hullmod Removed by Build-In Menu
« Reply #1 on: March 23, 2022, 12:33:09 PM »

Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3023
    • View Profile
Re: Perma Hullmod Removed by Build-In Menu
« Reply #2 on: March 24, 2022, 05:55:40 AM »

I think I've managed to make my hullmod heal itself when this bug occurs. Doesn't work in the general case, but for mine it does.
Logged

Yunru

  • Admiral
  • *****
  • Posts: 1560
    • View Profile
Re: Perma Hullmod Removed by Build-In Menu
« Reply #3 on: March 24, 2022, 08:12:56 AM »

A note that this only applies to hullmods that aren't marked as Hidden (or Hidden Everywhere, of course).