How to make puzzle packs
- Make sure you have Python 3 installed
- Make a working directory for this project
- In your working directory initialize a venv: python3 -m venv .venv
- Activate your venv: source .venv/bin/activate (the exact activation script will depend on what shell you're using)
- Install pillow: pip install pillow
- Copy the Python script to that directory: genUserPack.py
- In your working directory make another directory where you will put your nonogram image files
You will now need to either copy existing nonogram files you have made to the nonograms directory or make some. Follow these rules for nonograms:
- Should be an uncompressed png
- The nonogram should be pure black on pure white
- Nonogram names should only have letters or numbers, no spaces
To make nonograms you will most likely want to use a pixel art program. I have a simple one here pixel.utopic.work, alternatively you could use something like Aseprite.
All nonograms in the top level of the nonograms folder you created will be built to main.json in your working directory, all folders will be turned into their own packs in the json directory. Make sure the names of these folders follow the same naming rules as nonograms.
Finally to run the script run: python3 genUserPack.py [nonograms directory]
Replace [nonograms directory] with the directory you made for your nonograms