Space Engineers

Space Engineers

Whip's Auto Door and Airlock Script
此主題已被鎖定
Taegost 2016 年 9 月 14 日 下午 3:18
Can the prefix have spaces in the name?
For example, I'd like to name them "Space Station - Core Airlock Interior" and "Space Station - Core Airlock Exterior"
< >
目前顯示第 1-9 則留言,共 9
Whiplash141  [開發人員] 2016 年 9 月 19 日 下午 6:00 
Yes!
Taegost 2016 年 9 月 19 日 下午 9:01 
That's what I had thought from skimming the code, but it's not working properly for me. I'm not sure why, and I don't have time for examples tonight, but if you'd like I can get a few sampmles of exactly what I'm doing to see why it's not working
Whiplash141  [開發人員] 2016 年 9 月 21 日 下午 4:01 
Yes please, I'd like to see what the issue you are having is :)
Taegost 2016 年 9 月 22 日 下午 4:50 
Ok, here are some example door names:
Station - Station - Refinery Hallway Exterior Airlock
Station - Station - Refinery Hallway Interior Airlock

The script will close them automatically after 3 seconds or so, but it's not triggering the lock on the doors.
I have published the station that I'm using to the workshop (We have a Creative and Survival mode server, so we build the blueprints in Creative and use the projector in Survival) so you can get it from there if you want to test it in a clean world. I haven't tried putting it in a world all by itself yet to see if the issue is interference from all the other projects.
If you do try it out, not all of the doors are named properly (I found this halfway through building it) but most of the hallway airlocks are named similar to the example above.
Rizzo 2016 年 9 月 24 日 上午 11:03 
I'm having the same issue. I've used this script for along while and it always accepted multi word prefixes before. I tried shortening my prefix to 1 word as in the example on my latest creation, but that still isn't working. I also checked the [Excluded] flag and those doors are still closing too, indicating that it can't find the flag.

The output on the programmable block is showing:
===Automatic Doors===
Managed Doors: 85

===Airlock Systems===
No airlock groups found

This seems to indicate that your flag/prefix matching is not working properly
Whiplash141  [開發人員] 2016 年 9 月 24 日 上午 11:41 
Fixed the issue guys! When I cleaned up my code, I missed one line that caused the airlock code to just be ignored XD! Tell me if it works now :)

The working code is Revision 17 - 9/24/16
最後修改者:Whiplash141; 2016 年 9 月 24 日 上午 11:42
Rizzo 2016 年 9 月 24 日 上午 11:45 
I happened to have v15 of the script and did a compare. It looks like you left this critical line out of the Airlocks() function:

GridTerminalSystem.GetBlocksOfType<IMyDoor>( allDoors );

When I add this back in the script is working properly now.
Rizzo 2016 年 9 月 24 日 上午 11:45 
You beat me to it! LOL
Taegost 2016 年 9 月 25 日 下午 6:39 
It's working perfectly now, thanks! I'm loving this script
< >
目前顯示第 1-9 則留言,共 9
每頁顯示: 1530 50