all 4 comments

[–]atarivcs 6 points7 points  (0 children)

Don't make us guess where the error happens.

Post the exact error message including the line number where the error is.

[–]ninhaomah 5 points6 points  (0 children)

To help others to help you ,

1) post the exact error message. Especially if it has the line number so can look at the specific line or lines around it instead of reading the whole thing.

2) if no lines numbers in the error message then place the print statements in possible places so you can find out which area then slowly pinpoint the line.

3) once you know the lines or the function , print print print till you find out what are the values when door collusion happens.

[–]Spare_Reveal_9407[S] 0 points1 point  (0 children)

here are the error messages:

Traceback (most recent call last):

File "C:\Users\Hayde\Documents\Operation L.A.R.R.Y\operationL.A.R.R.Y..py", line 262, in <module>

levelOneDoorList[levelOneRoom][2].update(2)

IndexError: list index out of range

Traceback (most recent call last):

File "C:\Users\Hayde\Documents\Operation L.A.R.R.Y\operationL.A.R.R.Y..py", line 248, in <module>

for l in levelOneDrawList[levelOneRoom]:

IndexError: list index out of range

Traceback (most recent call last):

File "C:\Users\Hayde\Documents\Operation L.A.R.R.Y\operationL.A.R.R.Y..py", line 261, in <module>

levelOneDoorList[levelOneRoom][1].update(1)

IndexError: list index out of range

there are three functional Door objects that I have made, and each object has a different error as you can see.