I’m on linux, so i “ported” the “new character” script to bash, and in doing so found a bug. When a character.json file is completely empty, the program starts acting very weird:
On startup, it loads an empty character. Makes sense, no images are mapped in the file. However, the “change character” menu now contains a list of layers instead of character names. If i try to select a layer from the dropdown, the program tries to load whatever character would be there if the list didn’t contain layer names, but fails. It just hangs.
The hanging may be a linux/wine issue (wine reports that it hits a stub), but the weird dropdown feels like a bug.
For reference, here’s the bash script (without the bug):
#!/bin/bash
# Usage: ./new_character.sh "Character name"
# If omitted, character name defaults to "New Character"
char_name=${1-"New Character"}
count=$(( $(ls -d */ | wc -l) + 1 ))
dir_name="$count $char_name"
mkdir -p "$dir_name/images"
echo '{}' > "$dir_name/character.json"