KoboldAI-Client icon indicating copy to clipboard operation
KoboldAI-Client copied to clipboard

United: Issues saving and loading locally?

Open Derpford opened this issue 2 years ago • 4 comments

Saving to GDrive works just fine, but for some reason, files I save locally glitch out and can't be loaded anymore; I get UnicodeDecodeErrors such as 'utf-8' codec can't decode byte 0x9c in position 10: invalid start byte.

Derpford avatar Mar 15 '23 20:03 Derpford

I've run into the same issue. Temporarily, you can open the file in a text editor and copy the contents of the story.json section into a new file with a .json extension and upload that.

DFXLuna avatar Mar 21 '23 17:03 DFXLuna

I tried that--Sublime Text treats the .kai file as binary, not as text.

Derpford avatar Mar 21 '23 22:03 Derpford

Downloaded kai saves are zipfiles and can be extracted as a workaround

henk717 avatar Mar 21 '23 23:03 henk717

I tried that--Sublime Text treats the .kai file as binary, not as text.

I'm not sure what the option is in Sublime but in VScode or notepad you can ask it to decode stuff as UTF-8. Some potentially easier steps are below.

Downloaded kai saves are zipfiles and can be extracted as a workaround

Ah, that makes sense, I tried .tar and tar.gz but not .zip. For clarity, it may be better to use the .zip extension or .kaistory.zip if you still want .kaistory in the name. This helps with discoverability if users are trying to piece together their own workarounds while stuff is being built.

In that case a usable work around is

  • Download the story (It may take a couple of tries, sometimes it gives an HTTP 5000)
  • Rename it from X.kaistory to X.kaistory.zip
  • Extract story.json
  • Load story.json with KAI

DFXLuna avatar Mar 22 '23 00:03 DFXLuna