LEGUP icon indicating copy to clipboard operation
LEGUP copied to clipboard

[BUG] TreeTent Cannot Open Puzzle With More Rows Than Columns

Open jadeandtea opened this issue 1 year ago • 0 comments

Description

When opening a puzzle with more rows than columns, the UI does not update to show the board. The view works fine for puzzles with more columns than rows or ones with equal columns and rows.

Steps to Reproduce

  1. Create a Tree tent puzzle that has more rows than columns. Ex. 7 rows, 3 columns Screenshot 2024-03-22 at 5 08 07 PM

  2. Make the puzzle valid (add a tree somewhere) and save the file. Screenshot 2024-03-22 at 5 08 42 PM

  3. Exit the puzzle editor (File > Exit)

  4. Try to open the puzzle you saved in either the puzzle solver or the puzzle editor. The UI will initially look something like this if opened in the puzzle editor: Screenshot 2024-03-22 at 5 09 41 PM

Upon hovering over a UI element, it will appear. Screenshot 2024-03-22 at 5 10 28 PM

Expected Behavior

The puzzle should open and the UI should show the puzzle.

Screenshots

No response

Puzzle Files

No response

Additional Context

When clicking on the board, there is an error message that says that the TreeTentCells are null, so the drawing process runs into a null pointer exception. That might be a good place to look first. Perhaps the file isn't imported or exported properly.

jadeandtea avatar Mar 22 '24 21:03 jadeandtea