(solved)Is this a bug or by design an error is thrown in this case, but not in another

This collision object works. When I do a different shape it throws an error.

The three shaded boxes are what I’m referring to. This works without issue.

But if I do this I get an error:

Also this shape:

Here’s the error message:

ERROR:SCRIPT: main/scripts/drag_drop.script:44: Can't resolve id with specified socket and fragment.
stack traceback:
  [C]:-1: in function url
  main/scripts/drag_drop.script:44: in function drag_ended
  main/scripts/drag_drop.script:131: in function <main/scripts/drag_drop.script:117>

What does the function look like? What is the data passed to that function?

1 Like
local url = msg.url("main", self.collision_id, "polyomino")

Thanks it was a late night for me. I see what the issue is now. for some reason in the scenario I found the self.collision_id was getting set to nil. Not sure why it went down that path in this configuration, but it is an easy fix for me.