Space Engineers

Space Engineers

Transmitter and Receiver Script
61 Comments
etopsirhc  [author] Oct 30, 2023 @ 12:01pm 
i haven't tested it rencenty but it should be able to send from 1 to multiple or multiple to 1 easily. as receiver end it's just looking to see if the block of that name exists to then trigger it.
Piachang Oct 30, 2023 @ 7:13am 
Ok so I have 5 ships that I want to transmit from, does this mean I need 5 timer blocks on the receiving end? One ship does what its supposed to do when I push the button. The other ones do not and they're set up the same way as the first but there is only one timer block on the receiving end.
klen ghost Sep 13, 2023 @ 6:33am 
hmm i can't get it to work. how do you link an antenna to the script ?
Iwan Jan 29, 2023 @ 4:08pm 
Very nice script dude
Blacky Watchy Jul 13, 2022 @ 2:32am 
ok. thanks
etopsirhc  [author] Jul 12, 2022 @ 8:32pm 
that'd be quite the trick as by default antenna ignore enemy signals. but if he hasn't named it, and that's turned off, it would pick up.
Blacky Watchy Jul 12, 2022 @ 10:20am 
what if i happened to not to know the name of the antenna? u see, im working on tricking a friend to use the script to open doors of hangars and that stuff but be able to use the same script to trigger some tricks i have implemented on his ship when on combat... not the proudest kill but on times of war all is valid
etopsirhc  [author] Jul 12, 2022 @ 8:55am 
had to get a quick refresher on how it worked myself there. but it's as simple as on the programable block that you want to use as a transmitter, put the antenna's name in the right place in the setup block ( right at the top ) and in the same block make sure both of the grids have the right setting for Is_Transmitter, either true of false. then when you run the script you do so with the argument that is the name of the timer block on the other grid you wish to activate.
Blacky Watchy Jul 12, 2022 @ 7:07am 
i see. if it isnt possible to update the script. would it be possible to get explained on a reply how to change it?
etopsirhc  [author] Jul 11, 2022 @ 3:16pm 
they removed that a while ago when they changed how the antenna api works. the script it self was updated to work with the changes but i dont think i updated the instructions.
would update the entire script to be more useful and easier, but currently my gpu is crashing a few min into most games.
Blacky Watchy Jul 11, 2022 @ 2:08am 
thats weird. my antennas only have the enable broadcasting function and the show ship name function. i cant neither find any place to link the antenna to a PB
etopsirhc  [author] Jul 10, 2022 @ 7:24pm 
@blackwatch you can filter it by default in the antenna's settings, but you can also set up a channel in the transmitter and receiver to further limit what is being received.
Blacky Watchy Jul 10, 2022 @ 9:30am 
about that of ignore other broadcast. where do i change that? i dint find it on the script
76561198026697978 Nov 2, 2021 @ 3:06pm 
alright and your fine. wasn't really expecting a reply right away so all is good :3
etopsirhc  [author] Nov 2, 2021 @ 1:05pm 
@Chronos Phantom Sorry for the late reply, but i just tested it and it works 100%. the instructions at the top of the script when loaded are how it's set up now, as the showcases were from much earlier on in it's life.
76561198026697978 Oct 30, 2021 @ 8:07am 
alright and it looks like a pretty awesome script.
etopsirhc  [author] Oct 29, 2021 @ 10:40pm 
@Chronos Phantom not sure, haven't really touched it in almost a year. will see if it works and fix it if it doesn't tmw night. (pst)
76561198026697978 Oct 29, 2021 @ 9:52pm 
so does this script still work despite the option for assigning a programmable block to the antenna no longer exists? Just wondering.
Blacky Watchy Jan 2, 2021 @ 4:07am 
thanks
etopsirhc  [author] Dec 30, 2020 @ 5:40pm 
it should be as simple as setting the antenna's IgnoreOtherBroadcast to false. this will lit any broadast interact with them.
Blacky Watchy Dec 30, 2020 @ 4:06pm 
could they work between different ownership grids?
Ashisnot Feb 4, 2020 @ 5:38pm 
Sorry i stand corrected. Works just fine, just needed an antenna on the grid. Laser Antenna works with the Antenna set to 1m. Awesome script, thank you!
Ashisnot Feb 4, 2020 @ 5:28pm 
Does this script work with Laser Antennas? Ive had a go but it keeps telling me "no antenna found"
MLGPR0GAM3R Jan 30, 2020 @ 5:25pm 
@etopsirhc Thanks for the fix. Needed this mod for a special project i'm working on.
Kham Jan 28, 2020 @ 3:33pm 
@etopsirhc Thanks man! Need my remote garage doors haha.
etopsirhc  [author] Jan 28, 2020 @ 2:56pm 
@MLGPR0GAM3R @Kham all fixed now. sorry about the delays.
etopsirhc  [author] Jan 26, 2020 @ 10:00am 
shit, compleatly forgot i needed to do that still. lifes been hectic, but i'm gonna try and get that fixed today.
MLGPR0GAM3R Jan 25, 2020 @ 2:11pm 
So can we get an update or an ETA on when the error is going to be fixed?
Kham Jan 19, 2020 @ 4:38pm 
Any chance you've been able to check out the problem with this since the update? Just went to set it up on my new ship and ran in to the same error on compiling.
etopsirhc  [author] Jan 11, 2020 @ 10:35am 
let me check, i bet there was an update that broke it again.
PainkillerJake Jan 6, 2020 @ 5:08pm 
I keep getting the error:
Program(56,14): Error: 'IMyRadioAntenna' does not contain a definition for 'AttachedProgrammableBlock' and no accessible extension method 'AttachedProgrammableBlock' accepting a first argument of type 'IMyRadioAntenna' could be found (are you missing a using directive or an assembly reference?)

this repeats twice in the code editor and if I run the script it says Assembly not found. Please compile script. Any ideas?
HalberdGuard Jan 6, 2020 @ 4:12pm 
So, I of course could be doing something wrong, but I think it's borken... It also displays some errors when compiling. I was looking forward to trying this out after seeing Splitsie use it on his videos! I hope this gets fixed!
etopsirhc  [author] Jul 18, 2019 @ 12:36pm 
the way this is setup, anything that has an action in a timer block will work with it.
it's setup where you send the name of a timer block on the grid that you want to activate, from a diffrent grid. example: your car could have a button that triggers "garage" and the base's timer named "garage" will run any actions it's set up to. whether that's opening the door, or triggering a depressurization system with the door as part of it. or even just blowing up the garage.
Uneasyarcher Jul 17, 2019 @ 2:21pm 
does this work with air tight doors
Azeron May 12, 2019 @ 6:28pm 
Ok sounds good, funny enough i read through your description and seen that you tagged the simpler transmitter script and i ran with that and got it to all work for me, so idk if maybe i just set something wrong up with your script that i overlooked or if it was just going funky. But anyways thank you for the reply
etopsirhc  [author] May 12, 2019 @ 4:42pm 
@Montecarlo1 jr , so the way it's setup you only need 1 PB per grid. adding more could in itself be the problem there. it's setup so you call the PB with X, Y or Z command, and it will tell all the PBs listening to try running that command on their own grids. also the debug just sows up in the console of that PB as i havent put in the time to figure out the new lcd setup
Azeron May 12, 2019 @ 12:50pm 
Im currently having an issue where as long as i have one timer block and one programmable block running this script its fine, but when i put two on the base, and two on the vehicle it messes up. What happens is as soon as i setup the second script fully with the first one working fine, when i hit the command key it starts moving the elevator and then abruptly stops after about 1 to 2 seconds of raising and goes back down. It doesnt matter which command i try to do first they both do the same thing. I also cant get the DEBUG to work. And when i destroy one of the PBs on the truck both scripts stop working completely.
ETHREAL1 Apr 14, 2019 @ 5:13pm 
thanks
etopsirhc  [author] Apr 14, 2019 @ 2:12pm 
@ETHREAL1 Updated and working. have fun.
etopsirhc  [author] Apr 13, 2019 @ 10:39am 
@ETHREAL1 it's been bullet proof for so many updates i'm surprised it finally broke. i'll look into it later today see if i can get it working or if they ruined it compleatly.
ETHREAL1 Apr 13, 2019 @ 12:34am 
so is this going to be updated? currently does not work
etopsirhc  [author] Jul 10, 2018 @ 1:20am 
@Splitsie no problem, it's not pronounced how it looks so i expect it to happen.
Splitsie Jul 9, 2018 @ 9:51pm 
I just noticed the pronunciation guide in there, sorry I was getting it wrong :P
cjb Jun 20, 2018 @ 5:37am 
@etopsirhc Alright, I've published my evolution https://steamcommunity.com/sharedfiles/filedetails/?id=1417060204

Credit where credit is due, I've got links back to my here for the source of inspiration :)
etopsirhc  [author] Jun 20, 2018 @ 1:37am 
@cjb i'd say you could upload it yourself. mine was just a fairly simple shell where as yours sounds much more developed than mine. if you want i could even add a link to it from my description to let ppl know there's a simpler version.

laziness, the father of invention. lol (since necessity is the mother of it)
cjb Jun 19, 2018 @ 6:36pm 
@etopsirhc, I used your script as a starting point and embelished it some because I didn't want to have to configure it :D

* it can be both transmitter and receiver
* it finds a transmitter for each send (I think that's ok unless a lot of sends are being done)
* it looks for the longest range antenna that is on and broadcasting (or you can set a specific one)

I wouldn't have written it without the inspiration and starting point of your script, so I wanted to ask whether you would like me to send you what I wrote in case you'd like to update this script or if I should just publish it to Steam directly.
TestSubject_2519 Jun 4, 2018 @ 4:26pm 
@etopsirhc thanks for the help
etopsirhc  [author] Jun 4, 2018 @ 4:18pm 
@tadkins320 subgrids should work fine, though if they disconnect and reconnect the script may need restarted to detect them.

recievers may need reconnected on the antenna side if it's disconnected from the grid the programable block is. the timers however should easily be disconnected and reconnected without any problems or setup. this is cause the script only looks for the timer once it gets the command.

transmitters will need resompiled if the antenna is seporated from it as it gets that block on first run. the buttons may also need it as the link to it may not reconnect properly. (not 100% sure about them.)
TestSubject_2519 Jun 4, 2018 @ 2:06pm 
Do all the parts for the receiver setup (or transmitter setup) have to be on the same grid, or can the be on different subgrids?
Frayboy15 Apr 24, 2018 @ 6:27pm 
I thought of that. That's why the default case executes the argument just like the script does now: a novice just needs the name of the timer, while a more experienced user would be able to shorthand.