Journal Log Notes

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
Consequence of Grace
Posts: 112
Joined: Fri Oct 05, 2018 4:06 am

Journal Log Notes

Post by Consequence of Grace »

Is there any way to output my Journal Log Notes as a text file?

Cheers!

:)

User avatar
pango
Posts: 3359
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Journal Log Notes

Post by pango »

Hi, if you go into a game save directory, you'll find a NotebookData.txt file, in JSON format; Under the key notebookEntries is an array of string arrays that look like what you're looking for:

Code: Select all

{
    "notebookEntries": [
        [
            "D:11:25:21 on 7th of Morning Star, 3E405 in Gothway Garden:",
            " Discovered the location of Masterham's Guard after studying a map."
        ],
        [
            "D:11:44:12 on 21st of Morning Star, 3E405 in Gothway Garden:",
            " Discovered the location of Hawkham's Hold after studying a map."
        ]
    ],
    ...
With some JSON tools you can turn that into plain text, say with jq:

Code: Select all

ᐅ jq -r '.notebookEntries[]|.[0] = .[0][2:]|(.[], "")' NotebookData.txt
11:25:21 on 7th of Morning Star, 3E405 in Gothway Garden:
 Discovered the location of Masterham's Guard after studying a map.

11:44:12 on 21st of Morning Star, 3E405 in Gothway Garden:
 Discovered the location of Hawkham's Hold after studying a map.

Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Consequence of Grace
Posts: 112
Joined: Fri Oct 05, 2018 4:06 am

Re: Journal Log Notes

Post by Consequence of Grace »

Excellent, thanks for that!

:D

Post Reply