Open Xevion opened 5 years ago
Thanks. Was this a saved sketch? Please paste here the complete path to the saved sketch.
I'm not sure if it was saved.
I save my sketches onto a 2TB Portable Drive, this one ended up saving at A:\Programming\Processing\Python\MazeGenKruskal
.
Edit: Is this implying that issues are caused when a sketch is not saved? I usually end up doing entire mini-projects (like this one) without saving because I simply forget until I close Processing.
Sorry for the long and complicated code. It's a maze generation algorithm I'm working on, implementing the Kruskal algorithm. The
tick()
function should contain the IndexError, and my debug method has been placingprint()
functions identifying the flow until I can see where it is.I'm starting to get tired of this debug method and am wondering if I'm doing something wrong inside my code (that causes it not to show me the line number).
Anyways, for purposes of helping you guys out, I've located the error. Line 132, I accidentally put a
< 0
instead of<= 0
,< 1
or== 0
. Changing that allows the rest of the maze implementation to fill in for now.The Error (screenshot since I can't copy it for some reason)
I've been getting this in multiple sketches and have not found a consensus on what the problem is. I'm not sure if I've seen an index error reporting a line number in more complicated sketches, but on simple sketches, it does report the line number via highlighting.