Error message on grid.at does not explain which value was invalid well #77

Open
opened 2025-03-05 20:26:55 +00:00 by john · 0 comments
Owner

image

  File "/home/john/Development/McRogueFace/build/scripts/cos_level.py", line 178, in generate
    self.grid.at((tx, y)).walkable = True
    ^^^^^^^^^^^^^^^^^^^^^
ValueError: x value out of range (0, Grid.grid_y)

ValueError says x, but the range says (0, Grid.grid_y). Probably a copy/paste error. It would be nice to see the value given here as well

![image](/attachments/f1996e60-0fcd-4343-9d80-21241e819782) ``` File "/home/john/Development/McRogueFace/build/scripts/cos_level.py", line 178, in generate self.grid.at((tx, y)).walkable = True ^^^^^^^^^^^^^^^^^^^^^ ValueError: x value out of range (0, Grid.grid_y) ``` ValueError says `x`, but the range says `(0, Grid.grid_y)`. Probably a copy/paste error. It would be nice to see the value given here as well
john added the
Bugfix
label 2025-03-05 20:27:01 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#77
No description provided.