安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
 
											 
													







I'm new to script, but i don't understand why you tell me to do won't work
Some times it's easier to start fresh rather than to add to existing code. The idea is pretty simple. Program() is called only when the script initializes, so you should get the references to the doors in there. to avoid unnecessary CPU usage. You can reuse findBlockOfTypeWithName. Main() runs periodically, so that's where you need to check the door status. You can use IMyDoor.Status and do something similar to my DoorEventWatcher.tick() to detect a status change.
Best of luck!
This is a simple script. It doesn't handle vents for depressurization. There's a way you can minimize the loss of oxygen. You should stick the two doors together and set the airlock to automatically close. You can also set the AUTO_CLOSE_INTERVAL_CYCLES variables lower to decrease the wait time till the door closes. Then, all you have to do is wait for the door to close before opening the other one. The wait time is not as high as with air vents.
One other thing that was quick and easy to do: I updated the script to make it possible to chain up 3 or more doors in one airlock system. With 3 doors, there's no need for automatic close delays. Example::
airlockManager.createAirlock("AIRLOCK03 DOOR A", "AIRLOCK03 DOOR B", "AIRLOCK03 DOOR C");
I hope this helps to some extent.
Sorry my english, i hope someone understand my problem, maybe im doing something worng.
And thanks for your work!!
I made a small update to the script. Now you have the option to specify the names of the doors that you don't want to set up as auto-closing. You can do that by writing
autoClosingDoorsManager.excludeDoor("door name");
just above the call to addAllDoorsNotPartOfAirlocks() in the config method InitAutoClosingDoors().
The script is already set up to ignore any door named "TEST EXCLUDED DOOR".
Have fun!