Space Engineers

Space Engineers

Stargate Script Extension
19 条留言
Bodyboarder2528 2024 年 6 月 26 日 下午 5:09 
looks like the incoming wormhole for iris doesn't work
Bodyboarder2528 2024 年 6 月 26 日 下午 5:06 
this no longer works
LunixiaLIVE 2023 年 1 月 23 日 上午 1:46 
[SG-LCD-Log] is not working for me. Not sure if i missing anything. Ive tried tweakings things I thought might be causing the issue, but i cannot figure it out. I did put an echo after the destination is fetched, but its blank :(
any ideas?
LunixiaLIVE 2023 年 1 月 22 日 下午 8:15 
Thanks! ran into another issues recently... just wanted to share what I found.

public void Main(string argument)
{
if(argument != "")

there was a space missing between argument and !
No biggie, it might have been an import issue.
Just wanted to post in case anyone else was having the same issue.

I love this script btw, hopefully future updates allow it to stay around.
Thanks again!
Sigmund Froid  [作者] 2022 年 3 月 25 日 上午 4:07 
Ok I don't know why the script broke for you, but I implemented a fallback in case the script fails to find it with string typing.
Sigmund Froid  [作者] 2022 年 3 月 24 日 上午 5:47 
This might be an API change on the Stargate Mod... I'll check it later, thanks for telling me anywas!
LunixiaLIVE 2022 年 3 月 23 日 下午 6:23 
Possible Bug, not sure if its because of the other mods im running, but this line

destination = gate.GetValue<string>("Phoenix.Stargate.Destination");

I had to change this in order to get it to work.
destination = gate.GetValue<StringBuilder>("Phoenix.Stargate.Destination").ToString();

Could be a .netFramework version issue, but I thought I would post it here instead of uploading my own "fix" when its just one like I corrected.
Bodyboarder2528 2021 年 3 月 25 日 下午 3:59 
hey i like the incoming and outgoing options but is it possible to have a idle option as i want to stop a grid on incoming and then when idle i want it to run a PB to make it continue to orbit a planet
TheMightySpud 2021 年 2 月 16 日 上午 12:42 
Duuuuude, I've been trying to write this very script for a couple of weeks now (limited c# knowledge lol.). Not played with it yet, but just that it exists is awesome.
Sigmund Froid  [作者] 2020 年 2 月 11 日 上午 10:09 
Just add the tag to the name of the block. They'll only activate when the assigned gate didn't initiate the connection
KEPLER 2020 年 2 月 11 日 上午 1:58 
Thanks for the LCD tips. Finally got them working. Struggling to get the [SG-Alarm-Incoming] working. I'm european too
Sigmund Froid  [作者] 2020 年 2 月 7 日 下午 11:25 
Thanks for the response. So for the dialing of the gates you would need a List/Array or something like that to assign the angle to every glyph. I just wondered because the Universe gate quite often hits a chevron instead of a glyph, but I guess that is the result of using a default angle for every glyph instead of the actual, resulting in disparities of 0.1~0.5 degrees which add up?
Gwindalmir  [开发者] 2020 年 2 月 7 日 下午 7:14 
The code does not handle other block screens. This feature existed years before Keen added LCDs to other blocks. I haven't updated it.

I'm not what you mean by dialing animation. If you mean the ring on the gate itself, the ring does mostly spin to the correct glyph location entered in the DHD. It's a little difficult since the glyphs aren't evenly spaced on all the gates. It does try to though.
For the LCD, no, there are no glyph support on LCDs yet. I'd like to add that in the future when I update the code for LCD sprites.
Sigmund Froid  [作者] 2020 年 2 月 7 日 上午 5:10 
Also Pheonix unrelated to this script as far as I know the gate doesn't dial the actual address in the animation or am I mistaken? I wondered why because to me it seems just a problem of assigning the angles to the glyphs, don't know the limits of the ModAPI though. (Sorry I quite like the series)
Sigmund Froid  [作者] 2020 年 2 月 7 日 上午 3:36 
@KeplerX.TTV you add the tags defined in the script to the name of the blocks that should be activated / should display informations. This is common practice in IngameScripts, as it's a easy way to identify relevant blocks of different types. For normal LCDs to display pictures you can just add Stargate to the name instead of a tag as descriped by Phoenix. Sorry for the Late answer I'm european.

@Phoenix Does the LCD script in your mod also change screens of terminal blocks? Because if it doesn't I'll stick with my system as filtering LCD screens out wouldn't be worth the effort. Also you might want to point that out on your mod page, or have I missed that. As far as I know it's only mentioned on the Wormhole Portal mod's page.
KEPLER 2020 年 2 月 6 日 下午 9:40 
Any tutorial on how to use this. Ive never worked with scripts before and would love to get it working
Gwindalmir  [开发者] 2020 年 2 月 6 日 上午 11:53 
The blocks are triggered when a state change occurs: idle, dialing, incoming, iris. Any timers or LCDs in the same block group as the gate are triggered automatically (no tagging necessary, just group them).
Tagging also works, but it uses the block name. If you add "Stargate" (not case sensitive) to the block name, it'll also be triggered even if not in a group. Allowing CustomData is planned in the future.

LCDs triggered by the gate automatically show the same images you do it seems (the predefined ones that come with the mod). So you don't need that part in your script. :-)

Regarding PB: It's supposed to be triggered at the same time as all the other blocks, however the method used to trigger it in ModAPI is broken. The workaround would be to trigger a Timer, timer calls PB, PB then reads gate state. You could also remove the timer part from your script as well if you choose.

If you'd like an example of how all that block grouping/automatic activation work, let me know.
Sigmund Froid  [作者] 2020 年 2 月 6 日 上午 5:42 
Thanks for the kind words. So when adding [stargate:dialing] the gate won't send the state as argument or did I miss something? Also when does the gate activate PBs as if it does that on every state change I could make a lightweight version of this for servers (I currently use Update10 to constantly check for the states)
Gwindalmir  [开发者] 2020 年 2 月 5 日 下午 1:51 
Nice work.
It's unfortunate this script is needed at all.
The gates used to trigger the PB automatically, but something broke in the game and that function no longer works in mods.
I may yet be able to fix it, but I haven't had time to really dig into it.
I hope once again that the gate can just trigger PBs automatically on gate state changes.

For the record, it does still trigger timers, PB, and LCD (for supplied images only) automatically. So there's a little automation you can do without a script.