Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. Starship
  6. "Recharge Batteries" buttons disable door-powered cabin entry lights

"Recharge Batteries" buttons disable door-powered cabin entry lights

Scheduled Pinned Locked Moved Starship
3 Posts 2 Posters 110 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Magenta LineM Offline
    Magenta LineM Offline
    Magenta Line
    wrote last edited by Magenta Line
    #1

    You know how, if the main battery is off and there's no external power, there're still some lights that come on when the door is opened? That functionality stops working if either of the Recharge Batteries buttons in the engine pages of the Starship's tablet are pressed. (To be clear, what's disabled is just the "door power." The door-triggered light toggling function itself is still working and can be seen if the main battery is switched on to provide power.)

    This line in the battery recharge part of BlackSquareTablet.js seems to be what triggers it:

    SimVar.SetSimVarValue("ELECTRICAL BATTERY VOLTAGE:4", "volts", 26.0);
    

    If I change that to a number bigger than 26, like 26.1, then Recharge Batteries no longer disables the door-power.

    1 Reply Last reply
    3
    • Black SquareB Offline
      Black SquareB Offline
      Black Square
      Black Square Developer
      wrote last edited by
      #2

      That's... a really good one... Especially since the maximum voltage for that battery in the systems configuration is 26.0V. I'll look into it. I might be able to tease out whether this is something I can fix nominally, or whether it's a simulator level bug. Thanks for finding it.

      1 Reply Last reply
      2
      • Magenta LineM Offline
        Magenta LineM Offline
        Magenta Line
        wrote last edited by Magenta Line
        #3

        Oohh...system.cfg... voltage curves... so that's how that works.
        I was looking all over .xml files trying to find some reference to 26 🤣

        So maybe when the simvar gets the voltage number, it's starting from the left of the curve and finding the 0:26 entry first and setting capacity to 0? And there's some (undocumented?) behavior in MSFS that says "0 remaining capacity is automatically 0 volts," even if the voltage curve says 0 should be 26?

        But if that's the case...

        Yep, tested it and Recharge Batteries disables external power too!

        (I should note I've only been trying it in FS2024)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users