Metadata-Version: 2.4
Name: castletool
Version: 0.3.1
Summary: Interactive Castle deck editor for injecting images/GIFs and MIDI into Castle blueprint JSON files.
Author-email: Your Name <your.email@example.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Environment :: Console
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: all
Requires-Dist: Pillow>=9.0.0; extra == "all"
Requires-Dist: mido>=1.2.10; extra == "all"
Requires-Dist: prompt_toolkit>=3.0.0; extra == "all"
Dynamic: license-file

# castletool

Castletool is a command line tool for adding images and MIDI files to the Castle - Make and Play app by Monterey's Coast, Inc. (not affiliated)

### Installation

You can install Castletool by running `pip install castletool` in your terminal (Requires python). Be sure to install pillow, mido, ffmpeg, and the Castle CLI. 

### Usage

Once fully set up, run `castletool` and follow the instructions. 

### FAQ

Q: It says I don't have any decks, what do I do?

A: You can initialize a deck by running `castle init <name>` or get a pre-existing one by running `castle get-deck <id> folder`

---

Q: Why does it say "nothing to do"?

A: You either forgot to install pillow ffmpeg and mido, or you said no to all the prompts.

---

Q: What does quantizing mean?

A: Quantizing automatically makes your image use less data, but it may look worse if the value is too low.

---

Q: What does it mean by "frame split"? 

A: It divides your frames by the value you input. For example, if you enter "2", you will get half the frames.

---

Q: What does "Memory Access Out of Bounds" mean?

A: That means the image or MIDI file you input caused your deck to exceed castle's 10MB limit. You need to quantize it or use less frames.

---

Q: Why does it say I don't have any decks?

A: You are probably running the command while in a different directory. `cd` into where your deck is (usually `~/decks`)
