Skip to content

Where is GM Screen Data Stored? #16

Answered by angometry
TheErikkuBlade asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!
Currently the content of each tab is stored quite simply as a string in the game's world settings:

https://github.com/angometry/trinium-chat-buttons/blob/main/src/module/settings.js#L23
https://github.com/angometry/trinium-chat-buttons/blob/main/src/module/settings.js#L161

Foundry stores these settings in a database and I never looked into how that whole thing works, but I do know a module Forien's Copy Environment exists, which allows migratng settings. Since it's a simple string, it should probably handle such a migration with no issues.

This module was a bit of a fun experiment to see what could be done, so it's all a bit hacky. Once I'm done with some important work I plan to refa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheErikkuBlade
Comment options

Answer selected by TheErikkuBlade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants