Space Engineers

Space Engineers

Logic Block Card Reader
56 Comments
GodShake 6 Sep, 2024 @ 7:01am 
the card reader model is bugged and i cant place it. does the mod works rn?
YOSHI-SAN 6 Jul, 2022 @ 6:10pm 
It doesn't work with Dedicated servers either the mod fails to download and closes the serve console, would love to see this working in dedi so i can split up my security :)
High Templar of Allium Cepa 8 Oct, 2021 @ 5:09pm 
I tested the Card Reader in an empty world without any other mods and it works! So now I have to figure out which mod is preventing it from working.
High Templar of Allium Cepa 8 Oct, 2021 @ 12:46am 
I'm testing it in creative mode and it doesn't take anything, no matter what subtype I use.
Also, I don't see the default card in the G menu and can only see and spawn the Blank and Sliced one using Shift F10. But no matter what it doesn't take those. (BlankCard or Sliced Card used in the Custom Data field. Sad. I was hopeful I could provide services on my station with that.
Makuta Nazo 21 Jun, 2021 @ 5:15pm 
Trying to take the link, but Discord is being a pain...

The inventory size for the card reader is 31,000L So I don't think that is exactly the issue... Though on the other hand that is nearly 15 times more than a freight cargo container so maybe it is?

I'm thinking it's a mod conflict, since our server is extremely large and has an ever growing mod list. Otherwise, my poking around isn't getting a lot of results.
Brisket  [author] 21 Jun, 2021 @ 4:34pm 
That's odd. If you drop a single item in, it doesn't disappear right away, but rather, just doesn't accept it?
Might be inventory size.

If you want, you can hop on the discord above and shoot me a message, I can take a peak at the script, maybe something there.
Makuta Nazo 19 Jun, 2021 @ 10:02pm 
Hey, I know it's been awhile since there has been activity here. I've been trying to get this mod implemented on our dedicated server, and I've run into a weird issue I'm not seeing in the comments below.

The inventory space for the card readers are not taking any of the items I put into them, regardless of amount/type etc. I can interact with all other forms of inventories just fine, but the card reader is acting similar to how a weapon rack would if you were trying to put ore or metal into it.

Obviously hard to test if they work if they wont take the key cards, lol. Is this a known issue?
Brisket  [author] 15 Feb, 2021 @ 9:10am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
Exmortis 14 Feb, 2021 @ 7:37pm 
@cKerensky

I am hoping to have it so when players approach a ground based facility, it spawns in Creatures and Drones using the MES spawning.

So my hope is that the Sensor detects the players approach, and triggers the Logic Block to run the MES Spawn.
Brisket  [author] 14 Feb, 2021 @ 5:32pm 
@exmortis visuals are fine to me. It supports MES spawning, what would you like the sensor to do?
Brisket  [author] 14 Feb, 2021 @ 1:19pm 
@Greenie, it's not possible to make an alternative like you're asking, unfortunately. The logic block reader can spawn in ships, creatures, and lots of things that could easily break a game unless it's restricted.
Greenie /Taxibutler 14 Feb, 2021 @ 12:31pm 
Could you make a survival alternative? I wanted to use it for my shop in multiplayer but having it admin only makes it harder to use. Personally, I would suggest something like a keycard that has the data pad stuff where you can put text in, and maybe a new thing you can put in the arguments (ex: KeycardT1"1357",open|HangarDoor;)
Exmortis 25 Jan, 2021 @ 7:47pm 
Hey
Just starting to play around with this Mod

The Card Reader model seems to be bugged? Comes up as an textureless box only two sides.

Additionally, is there any way to use this with Sensor blocks?
I am hoping to use this + MES to cause creatures to spawn whenever players get close to NPC bases.

Thanks!
Brisket  [author] 25 Jan, 2021 @ 9:15am 
Seems fine at first glance. I'll try and recreate it here.
Wilziak Kid[LoL] 24 Jan, 2021 @ 1:55am 
i cant seem to get my reader to work. ive tried re loading. cycling power, etc. Unsure if its my code?

KeycardT4+,runNow|MASTERA;

MASTERA being the name of the Timer i want it to run.
Brisket  [author] 7 Jan, 2021 @ 10:56am 
@camcam next release. It's a bug you can't do so currently. :steamthumbsup:
camcamhow 1 Jan, 2021 @ 12:53pm 
Suggestion allow retexture with skins
the zigginator 28 Dec, 2020 @ 2:04pm 
hmmm ok, thanks. I will check my settings, i thought they were about as high as they could go but ill check
Brisket  [author] 28 Dec, 2020 @ 11:24am 
If you're seeing a grey box, it's showing one of the LOD models in its place. Only thing that could cause that is lower settings or scaling performance.
the zigginator 28 Dec, 2020 @ 9:49am 
i tried using this in a single player game and the model for the reader seems to be broken, its just a grey box.
Brisket  [author] 24 Dec, 2020 @ 12:52pm 
All fixed up and stress tested!
Brisket  [author] 23 Dec, 2020 @ 6:57pm 
Aluxes 23 Dec, 2020 @ 6:43pm 
Maybe my game just hasn't gotten the update yet but I'm still having the issue, I even started a new game to double check. I included the whole process in the log this time around.
https://pastebin.com/BnMxPas6
Brisket  [author] 23 Dec, 2020 @ 6:36pm 
Fixed now. Also, no longer need to reload save, just power cycling it will reload the custom data.
Aluxes 23 Dec, 2020 @ 6:11pm 
https://pastebin.com/pBZS7AG0

My apologies if the link doesn't work, my first time using pastebin. I loaded the game fresh and loaded the save from earlier, and stuck the card in since the save was right after I entered the code and reloaded to let it compile, so hopefully it's what you need.
Brisket  [author] 23 Dec, 2020 @ 5:36pm 
Pastebin will work
Aluxes 23 Dec, 2020 @ 5:28pm 
The discord link is unfortunately invalid, so if I can get a good one I can do that.
Brisket  [author] 23 Dec, 2020 @ 2:33pm 
You'll need to send me the log file. I can't help much more without it, unfortunately.
Aluxes 23 Dec, 2020 @ 10:48am 
I did however just try the mod in a game with no other mods, and the T4 card caused it to crash again. Sorry for so many comments just wanted to let you know.
Aluxes 23 Dec, 2020 @ 10:39am 
Do you know of any mod conflicts? I don't want you to waste time if your mod is working perfectly.
Also, do you know if these work on servers? I've mentioned before my intention to use them on a server but I am not 100% sure how the Custom Data command system, and the world needing to be reloaded would work on a server.
Aluxes 22 Dec, 2020 @ 8:56pm 
So, the interaction area is definitely a lot better, so thanks for that. However using the exact same command, however this time with no Timer Block that actually was named right, it crashed.
Brisket  [author] 22 Dec, 2020 @ 8:32pm 
@Aluxesxd, just pushed a major update out with some of your requests!
Aluxes 22 Dec, 2020 @ 7:41pm 
It wouldn't actually crash if I had the block try to run a non existent block. At first the block was called just Timer Block, but rather than reload the game to change the Custom Data in the card reader, I changed the timer block to TimerBlock1 and then it crashed when I tried.

And thanks again!
Brisket  [author] 22 Dec, 2020 @ 3:26pm 
@aluxesxd, That is indeed strange. I have a quite complicated setup that involves multiple cards, each doing multiple things, including run timer. The only thing I can think of is the TimerBlock1 doesn't exist....still, shouldn't crash! I'll fix that up.
Aluxes 22 Dec, 2020 @ 3:14pm 
I deleted the card reader because it was a quick test in space, but it was KeycardT4,runTimer|TimerBlock1; I just copied the sliced keycard command above and changed it to T4 instead. When I stuck the T4 Keycard in it crashed.

Also, I appreciate the quick response on the matter, this is an awesome mod and the bug fixes will make it amazing. Any chance you can make a way to set if it consumes the card or not? I would like to make this something I can implement in more than just server events and consuming the card every time isn't practical for Admin purposes.
Brisket  [author] 22 Dec, 2020 @ 10:37am 
Also, I'm looking into getting the LCD screen functional.
Brisket  [author] 22 Dec, 2020 @ 10:36am 
All the commands do work, so it's more than likely a small issue with the script.

I'll be pushing an update out this afternoon that makes the card slot much larger, protections against crashing, and adding in a spawn spider option.
RunTimer does work, can you paste the line here, so ai can recreate it locally?
Aluxes 22 Dec, 2020 @ 1:55am 
So, I love the idea behind this mod, I just have two issues. One the card slot interaction spot is so small i could barely see it, took me a minute to figure it out. Two, some of the commands don't work. enableGroup did nothing, tho if it doesn't turn on blocks maybe that's my bad. And runTimer crashes the game, which is unfortunate because I have something in mind for this on a server i want to start soon and I would need either command to work for my purpose (I need to turn on, then open a door). I hope to see these issues addressed soon.

Side note, maybe make the LCD read something about the status of the card reader? Like if it needs a T4 card it'll say so, or when you insert the card maybe it can say Scanning... or something.
Alexia 21 Dec, 2020 @ 8:56am 
@cKerensky you did it you really did it.
Brisket  [author] 21 Dec, 2020 @ 8:29am 
@Gamerpro, if you can post what you have here, I'll help out. Multiple card types do work.
Brisket  [author] 21 Dec, 2020 @ 8:27am 
@Yankee, not really. There's nothing special about the cards, they're just components like any other, no extra data is stored on them. If you went that route you'd have to mod in your own special card.

To assign to a door is very easy, though, it's just one line of text.

KeycardT1, open¦securityDoor;

And you'd just have to copy and paste that.
Or you could even say:
Powercell, open¦securityDoor;


The next update will include a 'wildcard' operator, so you could do something like:

YankeeCard*, open¦securityDoor, then easily mod in your own card, and then the reader would work with any item that started with YankeeCard as the subtype.
Yankee 20 Dec, 2020 @ 10:57pm 
Is there a way to make one of these that would just function as a standard card reader with no scripting? i.e. You can craft an access card and "assign" it to a specific reader(s). Just as a way of having a security system without the extra scripting?
Tucolol 20 Dec, 2020 @ 3:55pm 
okay i looked thru the desc a few more times and found what I needed but it now will only take a T1 card and not anything above it
Brisket  [author] 20 Dec, 2020 @ 1:43pm 
Did you enter under data correctly in the custom data field?
The Card is deposited by selecting that location on the reader and putting it in the inventory, as described in the video.
Tucolol 20 Dec, 2020 @ 11:26am 
okay the reason i said it does not work is 1. cant hook it up to a door 2. cant enter the card
Klime 20 Dec, 2020 @ 8:14am 
Nice work! Using physical objects of keycards is perfect, allows for NPCs to drop keycard loot
Night Raider 19 Dec, 2020 @ 10:06pm 
yes
Brisket  [author] 19 Dec, 2020 @ 10:03pm 
@Night Raider

Keypad?
Brisket  [author] 19 Dec, 2020 @ 10:03pm 
@GamePro "I would love this if it worked"

It does work, if it doesn't work, I'll need some information on what's wrong.
Night Raider 19 Dec, 2020 @ 7:55pm 
and can you make a tutoruial vid pls