Space Engineers

Space Engineers

Toggle Stargate Iris
29 Comments
Gwindalmir  [author] 28 Nov, 2019 @ 2:56am 
I just tested this out, apparently something in the game broke. Mods can no longer call PB scripts. It just fails silently.
The only workaround is to use a Timer block as an intermediary: Group the Timer block to the gate, then have the timer block call the PB with the "Incoming" or "Idle" argument to trigger it automatically again.
Scott Dark 17 Mar, 2019 @ 8:35pm 
@Phoenix, What would be required to get this script working again?
Bodyboarder2528 10 Mar, 2019 @ 5:16am 
do you have to use a universal gate?
Spartan-118 30 May, 2018 @ 2:37am 
will this still work?
Gwindalmir  [author] 22 Jan, 2017 @ 6:15pm 
I've updated the script. It now works with the most recent Stargate mod update.
DodoTheOldOne 18 Dec, 2016 @ 12:16pm 
i think its better to post here: since last big update, the script dont work for me.
Gwindalmir  [author] 30 May, 2015 @ 5:45pm 
@Badmoon, I can't reproduce it, would you mind sending your world file?
Gwindalmir  [author] 30 May, 2015 @ 3:04pm 
@Badmoon, ah, I misunderstood what you were saying, my apologies.
Hmm, I'll take a look, that is not supposed to happen.
Badmoon 30 May, 2015 @ 1:00pm 
That's what is happening to me for some reason.
Badmoon 30 May, 2015 @ 12:59pm 
But is it suppose to close the iris on outgoing wormholes about 5 seconds after activation?
Gwindalmir  [author] 29 May, 2015 @ 11:46pm 
@badmoon, It does not work on outgoing. The main description for the wormhole mod says it only triggers the programming block on an incoming wormhole. For outgoing you can use the programming block directly, or a timer block.
Badmoon 29 May, 2015 @ 8:14pm 
anyone else having a problem with the iris engaging on outgoing wormholes. Works as expected for incoming.
bluedragnpc 6 May, 2015 @ 10:00am 
the iris problem i was having before on my large ship blocks "where they are taking damage from iris" was fixed for a few days. now its causing damage again i redownloaded mod and still receive the damage
Gwindalmir  [author] 30 Apr, 2015 @ 5:57pm 
@cryptkeeper83, game update today broke it. Stand by.
bluedragnpc 30 Apr, 2015 @ 3:51pm 
redownloaded the stargate working mod after deleting mods and gates arent working at all for me now.
Gwindalmir  [author] 30 Apr, 2015 @ 11:45am 
Ok, the version you have isn't updated. Which mod are you specifically using (standard, hardcore)?
I assume you are connected and the latest version has downloaded.
You can always go to %APPDATA%\SpaceEngineers\Mods and delete all the .sbm files there. The game will redownload them when you load the world.
bluedragnpc 30 Apr, 2015 @ 10:06am 
posted if i did it right like u wanted
Gwindalmir  [author] 30 Apr, 2015 @ 9:26am 
Can you enable physics debug draw (F11), then post a screenshot of it active?
bluedragnpc 30 Apr, 2015 @ 6:42am 
my large ship block the gate sits on still take damage ive postted a couple images to show it
Gwindalmir  [author] 29 Apr, 2015 @ 11:12pm 
@cryptkeeper83 An update has been posted for the Stargate mod, which should fix the IRIS damage issue.
bluedragnpc 23 Apr, 2015 @ 6:05pm 
no the ship doesnt move when gate is used it just damages the block with gate on it and slight damage on surrounding blocks
Gwindalmir  [author] 23 Apr, 2015 @ 3:55pm 
@cryptkeeper83, is the ship moving? Moving ships while the gate is open is not recommended. The damage has to do with the collision mesh in of the IRIS colliding with the gate itself.
bluedragnpc 23 Apr, 2015 @ 2:56pm 
was wondering why the iris does damage on a large ship block when its activated but not on a staion block? i like using the gates iris in my world against my friends on survival since we pvp, i just ask cause i use a gate on my ships for quick travel with ore mining.
KellDarkes 17 Apr, 2015 @ 11:33am 
@DERPY SMOOG
You don't need the timer block, your question piqued my interest so I decided to test it. You place your sensor where it will pick you up as you're walking through (I placed it directly above) and you put the Programable block in the first action space and set it to 'Run'. Then in your Programmable block put in a code like this:

void Main()
{
IMyDoor dhd = GridTerminalSystem.GetBlockWithName("Gate 2") as IMyDoor;

dhd.SetCustomName("DHD"); // sets the name of the DHD to DHD
}

Make sure to replace "Gate 2" with the name you are using on your DHD to Dial. Hope this helps as it is my first ever use of C#
Dracula420 14 Apr, 2015 @ 4:39pm 
i have no scripting or coding exp at all. i wish i did but i got severe ADD and have tried and failed many times to learn some form of coding. thank you for letteng me know it is possible tho. :)
Gwindalmir  [author] 14 Apr, 2015 @ 2:25pm 
I don't see why not. All the pieces are in place, you just have to build the glue.
Dracula420 14 Apr, 2015 @ 12:29am 
i was thinking a shourt range sensor just below the gate to sense when somebody walks over it. would that work to activate a timer to wipe the address?
Gwindalmir  [author] 13 Apr, 2015 @ 8:07pm 
I believe you can, yes. However you'd have to make a workaround, since the gate doesn't activate the programmable block on outgoing wormholes.
You'd have to either have the programmable block activate the gate, or use a timer block and add the gate action and programmable block events to it. You could also just use two buttons, one to dial, one to trigger the programmable block to clear the name.
Dracula420 13 Apr, 2015 @ 12:22am 
TY for the script. i only wish i could here the thump of somebody hitting that iris XD. i was wondering if there was a way to use a programable block, a timer and a sensor to make a DHD reset its address? i want to make a gate near the center of my server but when i use it i want the address to clear out so nobody outside my faction can gate to my station. if you decide to look into it. thanks in advance.