PC-Logix / OpenSecurity

Security addon for OpenComputers
MIT License
46 stars 24 forks source link

Crash when placing magnetic card reader! #99

Closed EdTheDog closed 6 years ago

EdTheDog commented 6 years ago

First of all, I would like to thank you all very much! This mod is amazing! Just got the 1.12.2 version and was checking out the magnetic card reader but when I placed it the game crashed. Here is the crash log.

crash-2018-07-03_14.55.57-server.txt

If you need anything I'll be glad to help! :)

EDIT: Was looking more at the crash log and I mentions some FoamFix Stuff, Now I'm not sure whether this is just for rendering in all crashes or if it is because foam fix is incompatible. Then again It might not be either I don't really know how to read crash logs... :P

EDIT: Did, even more, digging into it And it seems to be that there's an issue with the block facing a direction... HMMM ._.

OMG EDIT: Ok So... You can place it with world edit but the crash only happens when you place it with your hand... Now I'm really confused... Also here is the world edit command I used... //set opensecurity:mag_reader

MORE EDITS: Btw just checked out almost everything else and the MagReader seams to be the only issue, Also tried to downgrade my foam fix but didn't change anything... From what I can tell I seams to be the direction of the block when placing it. in the crash log, it says "Unexpected error java.lang.IllegalArgumentException: Cannot set property PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[north, south, west, east]} as it does not exist in BlockStateContainer{block=opensecurity:mag_reader, properties=[variant]}" So yeah I have coded a few things, games and simple programs, before and It doesn't seem that hard to fix... Not sure though! Hope it is an easy fix! :)

EDITS FOR DAYS: Using world edit I tested out the magreader and it does not send the signal to the computer when placed next to it or when connected with a cable. It says on the wiki you just need to right-click it with a written, yes I wrote the card data, mag card. But still nothing. If I am doing anything wrong just say. :D

EdTheDog commented 6 years ago

Thank you! This mod is AWEMAZING!!! :D