binbinhfr wrote:Very nice mod, thanks !
I wish there was also a larger plate (2x2, 3x3 ?) because when you have a lot a exoskelets and move quick , it's not easy to position yourself on the little plate.
By the way, I have a map that makes a problem :
"Error while running the event handler: __Pressure Plate__/control.lua:84: LuaEntity API call when LuaEntity was invalid."
I tried to put 4 plates as a 2x2 pattern to have a better detection surface, but only 2 of them are visible and the invisible ones seems to produce the crash...
It crashs even with no other mod than yours.
I can send you the map if you want (5 mb size).
In response to having larger pressure plates, I think keeping them at 1x1 size makes more sense as a basic structure, and if you want a larger area you can just place them in a 2x2 grid as you did in your map. My goal for the future if I get back to developing more features is to have to plates link together if 2 are placed down next to each other, so that if you build a 2x2 grid of pressure plates they will visually link together and act as a single plate.
First off, did you use the 0.0.1 version and then switch to the 0.1.0 version by any chance? I should take the 0.0.1 version down from here because it is incompatible with the 0.1.0 version and updating from the old version can cause the old plates to crash the game.
If you did not update the mod from the old version, then I know exactly what caused the crash but I don't know how it arose in normal gameplay. The pressure plate that senses the player is actually invisible (which is why nothing shows up when you are trying to place one on the ground). The visual for the pressure plate you see is 2 separate decorative entities. When you place a pressure plate, the mod automatically creates a decoration in the same place. When you step on the plate, the mod deletes the old decoration and places a new one. Somehow when you built the pressure plates the decoration never got built by the mod (which is why they were invisible), and when you step on the plate there's no decoration to be deleted therefore the game crashes.
It would be very helpful if you sent me the map and tell me what version of Factorio you are playing on. I will try to have a fix in a few days. As for a solution right now, try mining and rebuilding the 2 invisible pressure plates to see if they become visible when you rebuild them. If they are visible it means that you can safely walk on them without crashing the game.
Thanks for using my mod.