Space Engineers

Space Engineers

Transmitter and Receiver Script
61 kommentarer
etopsirhc  [ophavsmand] 30. okt. 2023 kl. 12:01 
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 30. okt. 2023 kl. 7:13 
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 13. sep. 2023 kl. 6:33 
hmm i can't get it to work. how do you link an antenna to the script ?
Iwan 29. jan. 2023 kl. 16:08 
Very nice script dude
Blacky Watchy 13. juli 2022 kl. 2:32 
ok. thanks
etopsirhc  [ophavsmand] 12. juli 2022 kl. 20:32 
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 12. juli 2022 kl. 10:20 
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  [ophavsmand] 12. juli 2022 kl. 8:55 
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 12. juli 2022 kl. 7:07 
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  [ophavsmand] 11. juli 2022 kl. 15:16 
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 11. juli 2022 kl. 2:08 
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  [ophavsmand] 10. juli 2022 kl. 19:24 
@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 10. juli 2022 kl. 9:30 
about that of ignore other broadcast. where do i change that? i dint find it on the script
76561198026697978 2. nov. 2021 kl. 15:06 
alright and your fine. wasn't really expecting a reply right away so all is good :3
etopsirhc  [ophavsmand] 2. nov. 2021 kl. 13:05 
@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 30. okt. 2021 kl. 8:07 
alright and it looks like a pretty awesome script.
etopsirhc  [ophavsmand] 29. okt. 2021 kl. 22:40 
@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 29. okt. 2021 kl. 21:52 
so does this script still work despite the option for assigning a programmable block to the antenna no longer exists? Just wondering.
Blacky Watchy 2. jan. 2021 kl. 4:07 
thanks
etopsirhc  [ophavsmand] 30. dec. 2020 kl. 17:40 
it should be as simple as setting the antenna's IgnoreOtherBroadcast to false. this will lit any broadast interact with them.
Blacky Watchy 30. dec. 2020 kl. 16:06 
could they work between different ownership grids?
Ashisnot 4. feb. 2020 kl. 17:38 
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 4. feb. 2020 kl. 17:28 
Does this script work with Laser Antennas? Ive had a go but it keeps telling me "no antenna found"
MLGPR0GAM3R 30. jan. 2020 kl. 17:25 
@etopsirhc Thanks for the fix. Needed this mod for a special project i'm working on.
Kham 28. jan. 2020 kl. 15:33 
@etopsirhc Thanks man! Need my remote garage doors haha.
etopsirhc  [ophavsmand] 28. jan. 2020 kl. 14:56 
@MLGPR0GAM3R @Kham all fixed now. sorry about the delays.
etopsirhc  [ophavsmand] 26. jan. 2020 kl. 10:00 
shit, compleatly forgot i needed to do that still. lifes been hectic, but i'm gonna try and get that fixed today.
MLGPR0GAM3R 25. jan. 2020 kl. 14:11 
So can we get an update or an ETA on when the error is going to be fixed?
Kham 19. jan. 2020 kl. 16:38 
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  [ophavsmand] 11. jan. 2020 kl. 10:35 
let me check, i bet there was an update that broke it again.
PainkillerJake 6. jan. 2020 kl. 17:08 
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 6. jan. 2020 kl. 16:12 
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  [ophavsmand] 18. juli 2019 kl. 12:36 
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 17. juli 2019 kl. 14:21 
does this work with air tight doors
Azeron 12. maj 2019 kl. 18:28 
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  [ophavsmand] 12. maj 2019 kl. 16:42 
@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 12. maj 2019 kl. 12:50 
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 14. apr. 2019 kl. 17:13 
thanks
etopsirhc  [ophavsmand] 14. apr. 2019 kl. 14:12 
@ETHREAL1 Updated and working. have fun.
etopsirhc  [ophavsmand] 13. apr. 2019 kl. 10:39 
@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 13. apr. 2019 kl. 0:34 
so is this going to be updated? currently does not work
etopsirhc  [ophavsmand] 10. juli 2018 kl. 1:20 
@Splitsie no problem, it's not pronounced how it looks so i expect it to happen.
Splitsie 9. juli 2018 kl. 21:51 
I just noticed the pronunciation guide in there, sorry I was getting it wrong :P
cjb 20. juni 2018 kl. 5:37 
@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  [ophavsmand] 20. juni 2018 kl. 1:37 
@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 19. juni 2018 kl. 18:36 
@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 4. juni 2018 kl. 16:26 
@etopsirhc thanks for the help
etopsirhc  [ophavsmand] 4. juni 2018 kl. 16:18 
@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 4. juni 2018 kl. 14:06 
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 24. apr. 2018 kl. 18:27 
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.