Space Engineers

Space Engineers

Door Closer - Automatic
11 条留言
BIGOLBEAR  [作者] 2022 年 7 月 4 日 上午 8:58 
please be aware that i have written a new version of this script that has a configurable time delay between checks. I have kept it as a super efficient script so its still good to use on large servers. The new script can be found here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2830412518
Sir Luis 2019 年 11 月 26 日 上午 8:09 
u the man broski. let me know when u do.
BIGOLBEAR  [作者] 2019 年 11 月 26 日 上午 7:39 
Ill have to check and test - will get back to you. Honestly What Ill probably do is rewrite the script so its configurable If I do ill upload as a seperate script as this one is super lightweight on sim. This script was one I orignaly made for my self because I got sick of venting all my 02 - thats why its so simple.
Sir Luis 2019 年 11 月 24 日 上午 11:42 
i love your script but the doors close to fast... i dont want to use timer blocks // Setting script for self-update eache 100 ticks = 1.6 sec
Runtime.UpdateFrequency = UpdateFrequency.Update100; whats the exact thing i need to type in order to slow this down to about 10 seconds?
BIGOLBEAR  [作者] 2019 年 11 月 24 日 上午 11:18 
Hi Sir Luis. the relevant part of code is:
// Setting script for self-update eache 100 ticks = 1.6 sec
Runtime.UpdateFrequency = UpdateFrequency.Update100;

So what the script is doing is every 1.6 seconds its checking every door to see if it needs closing.
If you want a script that only closes doors after they have been left open for a specific amount of time - checking each door individually or a full blown airlock script I think there are other scripters that provide this (check whiplash). Additionally You can set up a Timer block to switch the prog block on, run the code, switch the prog block off - and you can set the time delay this way.

FYI: Why is my script not checking each door time individually? The reason is because i wanted it to be as light weight as possible so as not to affect sim speed on servers.
Sir Luis 2019 年 11 月 22 日 下午 10:23 
how do u edit the amount of time till it closes the dors? they close to fast???
BIGOLBEAR  [作者] 2019 年 3 月 2 日 下午 1:18 
Updated/confirmed functional in current release version of SE, if you have any problems please contact me
BIGOLBEAR  [作者] 2019 年 2 月 20 日 上午 6:55 
Ive decided to leave these comments by me here as there is some potentialy useful tops for others if they are experienceing problems.
buder28 2019 年 2 月 15 日 下午 6:46 
it do work false alarm it was owner ship issue
BIGOLBEAR  [作者] 2019 年 2 月 13 日 下午 10:40 
@buder28 I have tested this script in my current world with the up to date version of SE. As Far as I can tell there are no problems with the script.

Some thoughts on what might be causing the problems you are experiencing:
1. The script must be recompiled and rerun if you change which doors have the TAG [AutoDoor].
2. Multiple connected grids MAY possibly experience bugs if you do not use a different TAG and programable block for each grid. I recommend editing the script to change the TAG for each GRID you wish to connect to another grid. that also has automatic door closing. I recommend changing it to [GRIDNAMEAutoDoor].
3. If you wish to only close a single door or specific group just put the TAG in that doors name - the script absolutly should ignore ALL doors that are not tagged.
4. Do you have another script running that might be interfering? eg Whips airlock.

Plz let me know how you get on - if you need further assistance plz ask.
BIGOLBEAR  [作者] 2019 年 2 月 13 日 下午 10:01 
I Will look into this request for update when I can - hopefully soon(some time this week).