Posted 09 November 2012 - 09:40 AM
I've been putting together a simple program that uses a sensor to query a chest for its inventory contents and then make decisions based on the information that gets returned. When I use it on one of my computers (in single player, creative mode) it works fine. But on my other computer the program appears to stop halfway through, but with no errors. (To be clear: when I say "computer" here I'm talking about two physical machines in the real world. :unsure:/>/>) After a little debugging, I've traced the problem to the "getAvailableTargetsforProbe()" command. On that second computer, when the program reaches that command it just stops.
Here's the problem:
- sensors.getAvailableTargetsforProbe(left,Sensor,InventoryContent): works fine on one computer, doesn't work on the other
- sensors.getAvailableTargetsforProbe(left,Sensor,"3"): works fine on both computers
So the issue, it looks like, is the "InventoryContent" part. If I replace it with its corresponding table number (as shown by the result of "sensors.getProbes(left,Sensor)") everything works.
Any idea what's going on here? Maybe I'm running different versions of CC (I'm not able to check right now) and this was a bug that was fixed?
Here's the problem:
- sensors.getAvailableTargetsforProbe(left,Sensor,InventoryContent): works fine on one computer, doesn't work on the other
- sensors.getAvailableTargetsforProbe(left,Sensor,"3"): works fine on both computers
So the issue, it looks like, is the "InventoryContent" part. If I replace it with its corresponding table number (as shown by the result of "sensors.getProbes(left,Sensor)") everything works.
Any idea what's going on here? Maybe I'm running different versions of CC (I'm not able to check right now) and this was a bug that was fixed?