T
TyphonJSTyphonJS (Michael)

Fabricate

@MisterPotts. Just starting a forum post to keep track of the conversation.
Fabricate doesn't maintain any of its own documents; it only records metadata in its settings. Do you think that would be a problem for TRL? For example, is there an assumption that applications are tied to documents? I would be surprised, but thought it worth asking up front
There are no particular data / document associations for TRL apps. Depending on where you are storing the metadata there are several reactive APIs available that could help out for game settings and web storage. You'll have to describe more about what you are doing currently from a data storage perspective and I can point you in the right direction. The first thing to do though is work out the TRL SvelteApplication extension and configuration through defaultOptions as it is different than what you came up with. The next thing is to use the ApplicationShell component as the outer wrapper for any of your components. With TRL the entire application shell is Svelte powered vs embedding components in the Foundry core app shell. Installing essential-svelte-esm and taking a look at the example code should give you an idea on how that works.
M
MisterPotts215d ago
That's good to know! Fabricate's UI loads data from the API object instances that I'm instantiating the root component with, so the svelte components don't really know they're in a Foundry game world
TM
TyphonJS (Michael)215d ago
API object instances
What storage mechanism? Foundry game settings (world)? or web / local storage?
M
MisterPotts215d ago
My own API, which reads from and writes to game world settings I'm on mobile right now, so can't really point to it too easily However it sounds like that won't be an issue
TM
TyphonJS (Michael)215d ago
It shouldn't be. There are a couple of ways of working with game settings. TJSGameSettings creates Svelte stores wrapping Foundry game settings which is handy. API docs: https://typhonjs-fvtt-lib.github.io/api-docs/modules/_runtime_svelte_store_fvtt_settings.html There also is WorldSettingArrayStore which may be handy if you are storing an array of objects. https://typhonjs-fvtt-lib.github.io/api-docs/classes/_standard_store.WorldSettingArrayStore.html I can point to various sample code and also other packages that use these as they aren't covered in the essential-svelte-esm demos.
Want results from more Discord servers?
Add your server
More Posts
Svelte 5 TJSDocument PrototypeGreets @FVTT ▹ Developer. As some of you might have seen there is a bit of paradigm shift that is Funky interaction with fokus managementTJS's Focus Management is creating fun issues for me again. focusKeep = true causes my drag and dropHow to get rid of funky Prosemirror overlapHi. I'm getting some overlap with Prosemirror (see image) any ideas how to avoid that? ``` "@tyFQL / TextEditor enrichment issueFrom @ooblekie: > can anyone give me a hand as to why the text keeps coming up as object promise inTJSDocument not working properly with Module Sub-Types (Data Models)In Foundry, modules can define a [Sub-Types](<https://foundryvtt.com/article/module-sub-types/>) usiTRL `0.1.2` - Fine Tuning releaseGreets @FVTT ▹ Developer! I have just released a fine tuning release that brings a few more featureEmbed a DropDown/MenuList made with SvelteHello again! 😄 I've been pondering creating a second module for Foundry and a few questions poppedSlide Animations for SvelteApplicationI'd like my window ( which is an EmptyApplicationShell ) to play a slide-in animation when open andBug: Multiple ProseMirror editors on same svelte component do not save properlySimple reproduction in a foundry world with at least one actor defined: ``` <svelte:options accessorSystem Works in Dev Mode but not after buildAfter updating to 0.1.1, I noticed something odd happening. The TITAN system now seems to work whenError building after updating to TRL 0.1.1Recently updated the TITAN system to TRL 0.1.1, but when I `npm run build` it errors out. Not sure wTJSApplication Character Sheet odd behavior with unlinked tokensHas anyone else experienced weird when using a TJSApplication as a character sheet with unlinked tokTJSDocumentCollection best practices?Hi! I've got a little component I'm using whose purpose is basically to just show a tiny preview of Release `TRL 0.1.1` - Patch releaseGreets @FVTT ▹ Developer! I have just released a patch / fix release that fixes a small oversight i