Getting started
This tour opens an existing puzzle, looks at each of the three workspaces and solves it. It takes about five minutes.
Open a puzzle
Section titled “Open a puzzle”Download CubeInCage.xmpuzzle, then choose File ▸ Open and pick it. The file name appears at the top right of the window.
The tabs in the middle of the top bar switch between Shapes, Puzzle
and Solver (Ctrl+1, Ctrl+2, Ctrl+3; ⌘ on a Mac). A puzzle moves through
them in that order: you draw the pieces, say which pieces make up the puzzle,
then solve it. A sliding or a stacking puzzle has a fourth tab, Play
(Ctrl+4), where you move the pieces yourself: see
Play Tab.
Shapes: draw the pieces
Section titled “Shapes: draw the pieces”
A puzzle is built from shapes. Each is a block of voxels (cells), and a shape can be a piece of the puzzle or the result the pieces must fill.
- The Shapes list on the left holds every shape (S1, S2, …). Select one to see it in the 3D view.
- The Edit shape panel below it flips, rotates and nudges the whole shape, scales it, and repairs it.
- The voxel editor on the right is where you draw. Pick a tool (Fixed,
Variable, Erase or Paint), then click or drag cells in the layer grid.
Change layers with the Z layer strip or
PgUp/PgDn. - In the 3D view, drag to orbit, hold
Shiftand drag to pan, and scroll to zoom. The cube in the corner turns the view to any face when you click it.
A fixed cell must be filled by a piece, and a variable cell may or may not be.
Puzzle: choose what to solve
Section titled “Puzzle: choose what to solve”
A problem says which shape is the Result and how many copies of each piece the puzzle uses.
- All pieces lists every shape you can use. Drag one in, double-click it, or press +.
- In this puzzle shows each piece with its count. Use − and + to change it, or give a range such as 0–6 and let the solver try every count.
- Result names the shape the pieces must fill. Change… picks another.
- The check at the bottom tells you whether the pieces can fill the result at all.
Solver: find the assemblies
Section titled “Solver: find the assemblies”Switch to the Solver.

- Under What to check, leave Assemble Only selected to find every way the pieces fit the result. Choose Assemble and Disassemble to also check that each assembly can be taken apart.
- Press Solve. The progress bar and the Assemblies count update while it runs, and Pause, Continue and Clear stop and resume the search.
- When it says Finished, the Solutions list on the right shows what
it found. CubeInCage has 96 assemblies. Click a row to see it in the 3D view,
or use
↑and↓to step through them. - The Piece display chips at the bottom right show or hide individual pieces, so you can look inside an assembly.
With Assemble and Disassemble, each solution gets a level and a number of moves, and the Disassembly player replays how the pieces come apart. Export to STL writes the pieces out for 3D printing.
Make it yours
Section titled “Make it yours”Settings ▸ General (Ctrl+,, or ⌘, on a Mac) sets how the window
looks. Changes apply at once.
- Interface density: Standard (the default); Compact, Standard with shorter rows in the shapes, problems and solutions lists, so about twice as many fit, and on the Shapes tab each control on one line, its icon beside its caption, with the action buttons’ descriptions in their tooltips; or Minimal, icons without captions, helper text in tooltips, and the 3D view’s toolbar hidden until you point at the bottom of the view. Every function is there in all three.
- Font size: Small, Medium (the default) or Large, each about 2 points larger than the one before. The text keeps its size in every density.
- Sidebar width: Variable (the default) widens the left and right cards as the window grows past 1600 pixels, the right card always 10% wider than the left; Static keeps them at the widths you set (200 to 600 pixels each).
- Main tab bar location: Top puts the Shapes, Puzzle and Solver tabs in the middle of the top bar (the default); Left puts them in a rail down the left side of the window.
- Theme: Light, Dark, or System (the default), which follows your computer’s setting. View ▸ Color Theme switches it too.
- Top bar theme: Colorful (the default) puts the red, green and blue of the X, Y and Z axes behind the ShapeLogic name and colors the tabs: Shapes green, Puzzle blue, Solver red. Boring keeps the bar plain, with a small colored square beside the name.
At the bottom of the page, Cache folder says where the solver keeps
its cache data, which can take a lot of disk space: what a sliding search
writes to disk once it outgrows its memory, and the saved sliding and
stacking searches that Continue carries on, in a sliding and a
panex folder. By default they are in ShapeLogic’s folder in your system’s
application data folder:
| System | Default cache folder |
|---|---|
| macOS | ~/Library/Application Support/ShapeLogic |
| Windows | %LOCALAPPDATA%\ShapeLogic |
| Linux | $XDG_DATA_HOME/shapelogic, or ~/.local/share/shapelogic |
- Choose Folder… picks another folder, on a larger disk for example.
ShapeLogic makes a
ShapeLogicfolder inside it, with aslidingand apanexfolder, and checks at once that it can write there. If it can’t (you don’t have permission to write in that folder), it says so and keeps the cache folder it was using. - If the cache folder in use holds data, ShapeLogic says what it found (for example “2 saved sliding searches (1.2 GB)”) and asks whether to Move Data to the new folder or Delete and Start Clean.
- Use Default goes back to the default folder, asking the same question.
- The cache folder can’t be changed while a solve is running: pause or stop it first. Reset section and Restore all defaults leave it as it is.
- If the chosen folder can’t be written when ShapeLogic starts (a disk that is not connected), ShapeLogic goes back to the default folder and tells you.
- The command line tool keeps its own folders, set by its environment variables.
Managing the cache and autosave files
Section titled “Managing the cache and autosave files”View ▸ Manage Cache and Autosave Files… lists what solves, pauses, the crash recovery journal and crashes have left on the disk, by name rather than by file name: “Paused sliding solve of Block 15.xmpuzzle, Main”, say, or “Crash recovery copy of Untitled”. Each item can be several files: the saved searches of all the starts of one sliding problem are one item.
Select an item to see below the list what it is, the disk space it takes, the puzzle file and problem it belongs to, when it was made and last written, and every file it is, by its full path. Delete… removes it from the disk after asking. Searches can’t be deleted while a solve is running; a paused solve whose search you delete starts that search again from the beginning when you continue it. Refresh lists the files again.
ShapeLogic records which puzzle a search belongs to when the search is saved. Searches saved by an earlier version, or by a puzzle never opened since, show “puzzle not known” until you open that puzzle again.
Some items can’t be carried on: a search that never saved because the app or the computer stopped during the solve (“Unfinished sliding search”), one of those left by ShapeLogic 1.5 or earlier (“Unfinished sliding search from version 1.5 or earlier”), and an import of a paused solve that stopped part way. Anything else in the search folders is “Other files”. ShapeLogic deletes the leftovers of older versions, the cut-short imports and the other files by itself at a start once nothing has changed them for a week. A saved search is never deleted by its age.
When ShapeLogic starts and finds items here (apart from a crash recovery copy, which it offers to reopen first), it lists them with their sizes. Manage Files… opens this window, Delete All… deletes them all after asking, and Ignore leaves them as they are; they are listed again at the next start.
The log file
Section titled “The log file”ShapeLogic keeps a log of what it did and what went wrong: the files it opened and saved (or could not, and why), each solve started (with its options and the solver settings), paused, continued and aborted, how each run ended, a sliding search running out of disk space, a saved search carried on (and how far it had got) or one that could not be and was started again, and every error. It helps to understand a problem afterwards, and to report one.
View ▸ Log File Manager… shows it, the newest line on top, 100 lines at a time: Load more messages… shows the next 100. Pretty, at the top right, shows the log as a table: the date, the time to the minute (point at it for the seconds), the level (INFO in green, WARN in orange, ERROR in red), where the line came from (the app or a window), the event (File Opened, Solve Paused) and the rest of the message. Raw shows the lines as they are in the file. Errors and warnings hides everything but the errors and warnings (a full disk, say), and the search box keeps only the lines with what you type in them, as you type, with each match highlighted. Export… offers the last 100 lines or all of the log, each with its size, and saves the one you pick as a plain text file; Clear All Log Data… deletes it. To report a problem, copy or export the lines that matter and open an issue in GitHub Issues, or send them by email to shapelogic.xyz@gmail.com.
The messages about a problem (the engine stopping, ShapeLogic not closing properly, a search running out of disk space or memory, a cache folder that can’t be written) have a View Logs button, which opens the Log File Manager over the message.
The log is shapelogic.log in a logs folder in ShapeLogic’s data folder.
When it reaches 20 MB it is compressed to shapelogic.log.1.gz and a new
log is started; the compressed log before it is deleted, so there is only
ever one. Export… of all of the log includes the compressed log.
Settings ▸ General ▸ Debug logging adds detailed lines, marked DEBUG, for finding the cause of a problem. For a sliding solve they cover:
- each level the search finishes: how deep both ends are, the arrangements visited, and the disk used against its allowance and the space free;
- each time the search saves itself, and the files it names;
- what a saved search holds when it is carried on.
When you turn it on, the log also records this computer’s system, cores, memory and free disk space. While it is on, the log may grow to 100 MB before it is compressed. Turning it off keeps the newest 100 lines in the log and the 20 MB before them, compressed, and deletes the rest.
Several windows
Section titled “Several windows”File ▸ New Window (Shift+Ctrl+N, Shift+⌘N on a Mac) opens another
window with an empty puzzle. Each window has its own puzzle, its own solver
and its own undo, so you can edit one puzzle while another solves. New
and Open still replace the puzzle in the window you are in. On Windows,
Shift-clicking ShapeLogic on the taskbar also opens a new window, and so
does starting ShapeLogic again. The Window menu lists the open windows.
The same file in two windows. The first window that opens a puzzle file owns it. If you open that file in a second window, the second shows (read-only) after the file name. You can still edit and solve in that window, but Save there works as Save As and suggests a new name, so the two windows never overwrite each other’s work. If you close the first window, the second stays read-only, because its copy may be older than the file on disk. Open the file again in that window to make it the owner.
Settings apply to every window. Each window’s solves use the whole Threads and Search memory settings, so two large solves running at once share the computer’s cores and memory.
When you quit with unsaved changes in several windows, ShapeLogic asks about each window in turn. Cancel in any of them stops the quit.
You have seen the whole loop: shapes, a problem, a solve. A guide to building a puzzle from scratch is coming next.