Where does Parchment save the transcript?

I’m using Parchment to run a z5 game on itch.io. I’ve tried recording a transcript. It prompts me for a name. I used ‘transcript’. When I enter SCRIPT OFF, it says ‘End of transcript.’, but I can’t find it anywhere on my computer or using the Firefox web developer tools. I’ve searched and read any forum topics I could find related to this, but none of the hacky solutions work for me.

So, where does Parchment save the transcript?

2 Likes

It should be in local storage. Type localStorage in the browser console and you should see the various Glk files, autosaves etc.

3 Likes

Thanks. I found it. I had named it ‘transcript’. There are two keys named content:transcript::transcript and direct:transcript::transcript. It’s the first one that I need, but it’s stored as an array of comma-separated decimal numbers corresponding to the ASCII characters. How do I convert this to a string?

OK. Worked it out.

Double-click on the key to open it in the Filter values panel.

Right-click on the Data in the Filter values panel and choose Copy in the shortcut menu.

Open a new document in your favourite text editor and paste the clipboard into the new document.

Delete the guff at the beginning and end so that you are left with only a comma-separated list of decimal numbers.

Replace all the commas with spaces.

Select the whole document and copy it to the clipboard.

Do a Google search for a web site that converts decimal numbers to ASCII. I used Convert Decimal to ASCII - Online ASCII Tools.

Paste into the input box, copy the resuts from the output box and paste this into a new document. Alternatively, you can save the space-separated decimal numbers to a file, import the file into the online tool and save the results to a file.

Whew!

1 Like

Console one-liner:

new TextDecoder().decode(new Uint8Array(JSON.parse(localStorage.getItem("content:transcript::filename.txt"))))

Replace filename.txt with the actual transcript filename. Copy-paste the output to a text editor and replace “\n” with a newline.

But if you just want to get the transcript out of Parchment you can command TRANSCRIPT, click on the Edit button in the popup, choose the transcript file, and click the Display button.

2 Likes

I had previously tried both of these methods and they didn’t work for me.

Trying to do this on Chrome but I can’t find the file. Anyone know where this kind of local storage will be for Chrome?

Ctrl+Shift+I to open developer tools.
Select Application tab.
Expand Local storage.
Select https://v6p9d9t4.ssl.hwcdn.net (or similar).
Double-click the Value column adjacent to the content:transcript::your_name value.
Copy it and follow my instructions.

Alternatively, you may be able to follow @Juhana’s instructions.

Type “restore” in the game, click the Edit button, and you can get the transcript to display in the “file dialogue”.

Got it, thanks all!

As I’ve said before, this doesn’t work for me. It just says, “You have no save files for this game.” I’ve tried all the suggested techniques with Firefox and Chrome on Windows.

I figure it will get fixed sooner or later…

1 Like

Necromancing this topic because I am completely stumped as to how to get my transcript out of local storage (using Parchment in Opera browser). This is what I see in my dev tools:

1 Like

Oh, golly. I haven’t used Parchment in that way. I think Dee Cooke asked this question a little while back. Hang on and I’ll see if I can find it.

EDIT: Oops, I found it. It was this very topic.

I tried following these instructions, but I just get this message:

image

And not sure what to do from there…

So they’re now encoded differently, but they should be listed by the Dialog system when you try to start a new transcript.

But the keys starting with “(Saved Game” aren’t from GlkOte. Is this using Vorple?

I don’t think there’s an online Base32768 decoder site like there is for the more common encodings. Maybe someone should make one. It wouldn’t be difficult.

@Warrigal pointed out that I can just copy/paste the on-screen text, so that was my solution and was a much quicker/easier one than anything else I was trying!

2 Likes

I’ve made a tool to export files from Parchment:

Parchment file exporter

4 Likes

Thank you!

Does this work? I clicked the link, clicked the Run button and it downloaded a parchment-files.zip, which was empty. I tried three times.

Because it’s hosted on iplayif.com, I’m guessing that it only exports transcripts from games that were run on that site.

1 Like