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

Closed
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 closed this issue 2025-07-05 16:15:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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.