I’m trying to debug an error that reads, “Bad argument #-1 to ‘newJoint’ (Proxy expected, got nil)”
The code looks like:
physics.newJoint( "weld", self, event.other, self.x, self.y)
What is “argument #-1”? Lua tables indicies typically start at 1, so does that mean that issue is with “weld”? (That wouldn’t make much sense since a string won’t be nil.) So then is the issue with the second argument, “self”? And why is it marked with a minus sign, as #-1? Does that minus sign mean “start counting from the end” so the problem is with “self.y”?