Survival game issue
Hello, engineers!
I've encountered a problem in a survival game with a very simple script. Here's the deal: I have something like an airlock (two doors, air vent, and three button panels). The buttons are set to toggle the vent's state (pressurized/depressurized), so the script turns the door on or off depending on the vent's state (pressurized/depressurized). In creative mode, everything works perfectly. BUT in survival mode something's wrong. The outer door works as expected, BUT the inner door only works while it closed. The door turning off about a second after attempting to open it. Furthermore, pressing the button still toggles the vent and turning on the door, but turning it off after a split second, so it can't be closed while the outer door always remains on. My main game is quite old, and the script used to work. Now it doesn't.
I have airlock in the main game, I recreated it the in a new world now — nothing changed. Please help. Here's the script:
public Program()
{
Runtime.UpdateFrequency = UpdateFrequency.Update10;
}
public void Main(string argument, UpdateType updateSource)
{
IMyAirVent LandingExit = GridTerminalSystem.GetBlockWithName("Air Vent Fan Full") as IMyAirVent;
IMyDoor LandingDoorOut = GridTerminalSystem.GetBlockWithName("Sliding Door") as IMyDoor;
IMyDoor LandingDoorIn = GridTerminalSystem.GetBlockWithName("Sliding Door 2") as IMyDoor;
var LandingExitStatus = LandingExit.Status;
if (LandingExitStatus != VentStatus.Pressurized)
{
LandingDoorOut.ApplyAction("OnOff_On");
LandingDoorIn.ApplyAction("OnOff_Off");
}
else
{
LandingDoorOut.ApplyAction("OnOff_Off");
LandingDoorIn.ApplyAction("OnOff_On");
}
}
I have the same bug
Hello,
Thank you for contacting us. Since this is a bug report, I'm moving your ticket to our support page, where our QA team will take care of you.
Kind Regards,
Keen Software House
Hello,
Thank you for contacting us. Since this is a bug report, I'm moving your ticket to our support page, where our QA team will take care of you.
Kind Regards,
Keen Software House
Hello Engineer,
Thank you for reaching out to us.
Could you please share some more information about this issue?
Are there any other MODs/Scripts active in the world where this script is no longer working? If so, please try making a blueprint of the grid using the script, paste it into a new vanilla/unmodded world, and check whether the issue still occurs there.
If the issue persists in the vanilla world, please send us:
You can change the game version by, Right-click Space Engineers in Steam → Properties → Betas/Game Versions and select the game version where the script previously worked.
For testing on the current version, please use the Default/Public game version.
These details would really help us investigate the issue further on our side.
Kind regards,
Keen Software House: QA Department
Hello Engineer,
Thank you for reaching out to us.
Could you please share some more information about this issue?
Are there any other MODs/Scripts active in the world where this script is no longer working? If so, please try making a blueprint of the grid using the script, paste it into a new vanilla/unmodded world, and check whether the issue still occurs there.
If the issue persists in the vanilla world, please send us:
You can change the game version by, Right-click Space Engineers in Steam → Properties → Betas/Game Versions and select the game version where the script previously worked.
For testing on the current version, please use the Default/Public game version.
These details would really help us investigate the issue further on our side.
Kind regards,
Keen Software House: QA Department
Hello Engineer,
As there has been no reply to this thread in some time, we will close it. If you're experiencing this issue, please create a new thread.
Kind regards,
Keen Software House: QA Department
Hello Engineer,
As there has been no reply to this thread in some time, we will close it. If you're experiencing this issue, please create a new thread.
Kind regards,
Keen Software House: QA Department
Replies have been locked on this page!