Where is GM Screen Data Stored? #16
-
Hi, I'm a GM for multiple games and I also am tech support/module manager for one of my other GMs and I wanted to quickly get a GM Screen setup for them. I'm curious on how the GM Screen data is stored. Does it use cookies? Is it world based or client based? Is there some way to export/import changes made from one world's GM Screen to another world? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! https://github.com/angometry/trinium-chat-buttons/blob/main/src/module/settings.js#L23 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 refactor it completely and already have ideas on how to make contents export/importable and stored in a more appropriate format. |
Beta Was this translation helpful? Give feedback.
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…