Closed Josh194 closed 1 month ago
Looks like building the program with electron-forge caused some sort of fuckery with the relative file path, as it's trying to read from the file ./resources/apar.asar/data/wands
instead of just ./data/wands
. Highly strange that it functions with the spell components but not the saved wands.
Also not sure why the components file is read without error, but worth noting it does not seem to be reading the correct file (as with the wands), as available components are not preserved across runs, despite the (apparent) existence of a valid file:
{
"arr" : [
"Nothing",
"Ball",
"Bolt",
"Arc",
"Stick",
"Orbit",
// etc...
]
}
at data/save/availableComponents.json
(completely fresh installation) SB correctly explores wand data folder, and locates a saved wand, but fails to actually read the file.
Relavent section of log is:
(side note: top of log contains minor typo)
Located file does in fact exist (
data/wands/test-wand.json
), and appears to contain valid data:Aside from fixing the read failure itself, this exception should be caught somewhere; currently, the application simply hangs with no indication of failure.