marian-m12l / studio

STUdio - Story Teller Unleashed
https://marian-m12l.github.io/studio-website/
Mozilla Public License 2.0
683 stars 131 forks source link

Add a pack directly to the SD card #388

Open drskullster opened 1 year ago

drskullster commented 1 year ago

Hi,

I can't connect my device to my computer anymore (I had to resolder the micro-USB chip, figure I did something wrong to the data track).

I tried mounting the SD card with this trick to no avail (it worked before I mingled with the PCB).

My question is: is there a way to add packs directly to the SD cards?

I tried copying the files converted to "FS format" that I found in STUdio library folder (~/.studio/library) to the .content folder on the SD card but it didn't work. I guess there is something else I need to do, anyone here has any idea ?

Thanks !

marian-m12l commented 18 hours ago

The story pack folders are named after a partial uuid, and the pack uuid must be added to the "pack index" .pi file. You can trick STUdio into using any folder as a device partition by running it with -Denv=dev (mvn exec:exec should do that iirc) and adjusting devicePath() here: https://github.com/marian-m12l/studio/blob/5150a157c94f64292a3fbc6ce6764274c608e249/web-ui/src/main/java/studio/webui/service/mock/MockStoryTellerService.java#L62-L64