Skip to content

Shutdown kOS state seems to get mangled on save/reload. #2514

@Dunbaratu

Description

@Dunbaratu

Any time you do this, a few things come out a bit wrong:

1 - Turn off the kOS power. It does not seem to matter if you use the right-click context menu to toggle power, or if you issue the the shutdown. command. The effect is the same either way.

2 - Do something that will save/reload the game. This can be F5/F9, or any sort of "leave the scene, then come back to the scene".

3 - When you reload the scene, the following effects are witnessed:

3.1 - The terminal for the kOS CPU is missing from the list of available terminals in the kOSToolbarWindow. The only way to get the terminal open is via the right-click context menu for the part.

3.2 - When you do get the terminal open, it is showing in green text as if it was powered on and working (not grey text as it should be if it was reloaded in powered off state like it should have been), but it is not behaving as if it was powered on. Typing into the terminal does nothing. Also doing a "toggle power" from the right click menu keeps the text green, and makes the terminal work again, which is what you'd expect if it was off to begin with (which it should have been), but then why has the terminal showing in green text on reload when it should have been off? The part seems to be in disagreement with itself about whether it's powered off or on.

I suspect one important variable somewhere isn't getting remembered in the save file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugWeird outcome is probably not what the mod programmer expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions