Space Engineers

Space Engineers

SafeZone Controller
15 Comments
Dubi23 30 Mar, 2024 @ 5:21am 
Was There a Fix for MadmanMAC's issues as I am having the same issue it seems
Patrick  [author] 11 May, 2022 @ 5:21pm 
Use the PropBool command. If you need help, pop on the Discord and I'll see if I can find the exact code.
SultonMRP 11 May, 2022 @ 4:47pm 
how do you setup the ALCD to show safezone info?
Patrick  [author] 20 Apr, 2022 @ 11:20am 
Odd. Why don't you jump on the Discord and maybe we can hash it out? Just pop in the #pb-safezone-controller channel.
MadmanMac 20 Apr, 2022 @ 10:12am 
MBsz Safe Zone [ManagedSafeZone]

That name should be fine for the script to pick up however im still getting the;

Warning: No Safe Zone found containing tag "[ManagedSafeZone]"


I removed the Special Tag and cleared custom data, so, that is all there is on there atm
MadmanMac 20 Apr, 2022 @ 9:50am 
ahh, odd, since i was having an issue n after reading that assumed it was because of mp. Ok, so, i added the [ManagedSafeZone] to the safezones name, recompiled the script and was telling me it could not find the safezone. I am playing on a modded pvp server, also, im using IIM and safezone is using the Special tag from that to keep x amount of zonechips loaded.

PB is on the same grid as the safezone.
Patrick  [author] 20 Apr, 2022 @ 5:44am 
@MadmanMac, hey so I wrote my previous response (to another player) mistakenly forgetting that this is a PB script, not a mod. As long as the server permits players to use scripts, I don't see why this wouldn't work.
MadmanMac 20 Apr, 2022 @ 5:36am 
sorry, i gotta say that for MP is the main reason i was searching for something like this. ie, a few people using a base and welding up n grinding etc, all well and good, but with the various exploits that can let enemies into a safezone, being able to switch allowing building et all into a complete lockout with (Im assuming commands could be added to a timer block) with basically one click would be very very handy :]

I play on a hardcore modded pvp server and would really love to see an MP version of this script. great idea though n keep up the stella work :steamthumbsup:
Patrick  [author] 10 Nov, 2021 @ 4:20pm 
Yes, I deliberately wrote it to toggle the shield on and off. That way it works just like all the other commands. As far as MP goes, yes I'm aware. I never intended this to work in MP. It was a simple little thing for SP games. Converting it to work in MP is a pretty heavy lift for something that almost nobody uses :)
Conz 10 Nov, 2021 @ 5:36am 
Nice one, thank you. The bad thing is, that it will not work on MP. And there is also a bug in SE, that when you enable it, when it is enabled, it will disable. It always toggles.
I wrote my own little script, and after problems, I asked in keen discord about it.
That's the answer I got:
"Long story short, the logic enabling the safe zone works with the player who enabled the safezone, and how it determines who is that? Who is the Sender of multiplayer event... When player/client clicks that in their terminal, it sends that event to server and everything works fine, but scripts run on server. Event origin is server, in case of dedicated MP the validation fails for nonexistent player, in case of hosted servers it might or might not fail depending on host relation to the safezone block and space master permission."
So maybe disable it for now. There is nothing we can do about it.
Patrick  [author] 7 Nov, 2021 @ 3:39pm 
Hey Conz, sure, I just added it. Use the command "CREATE" to toggle the safe zone field on and off. I also added VOXEL for voxel hands, PROJECTION for "build from projection," and CONVERT to control "convert to station." Be sure to update your script and you should be good to go. Thanks for the suggestion!
Conz 7 Nov, 2021 @ 12:14am 
Is there a bool for "Enable Safe Zone", too? (not switching the whole block on/off).
I'm trying to switch "Enable Safe Zone" for hours now. Do you have any clue if this is possible and if so, could you add this to your script?
Patrick  [author] 28 Sep, 2021 @ 8:05pm 
Oh sorry. This doesn't do the LCD display. That's just MMasters Automatic LCD's 2. It does toggle the controls of the Safe Zone though.
MrFox 28 Sep, 2021 @ 6:30pm 
Thing it works. what is the LCD name? maybe [ManagedLCD]?
MrFox 28 Sep, 2021 @ 6:27pm 
Hope this works