DocumentData shennanegins

TIL: It is possible to update an Actor or Item's data.data with arbitrary information that isn't defined in the system template. This data survives database compaction.
No description
C
Calego953d ago
No description
C
Calego953d ago
Similar story to flags here, you can completely nuke an actor's data.data more stupid games to win stupid prizes
C
Calego953d ago
Dare I try with id?
No description
C
Calego953d ago
Ah, having done this I can no longer delete this actor (even with delete()) I played a stupid game and won a stupid prize. Restarting the world the actor fails to initialize, but the world starts fine (I guess this is a good reminder to try catch your initialization for actors
DT
Daniel Thorp953d ago
I assume you can't remove the ID because that's from nedb, right?
C
Calego951d ago
one would think, I'm not sure though. @ghost @manaflower I messed around some a few days ago and found this stuff out ^
M
Mana951d ago
Template.json doesn't enforce anything (Id on't think), it just makes sure some structures are present. It's mostly useful for defining default values for non-derived data. And basic expected structure. In my case, my skills structure in the template.json is just an empty object because all skills are fully optional.
M
Mana951d ago
Though on that, I found a neat use for template.json I define optional structures there for filling in defaults for sub objects. Since Foundry doesn't prune it, that is all available via game.system.template.Data for me :3
No description
M
Mana951d ago
I think game.system.template by itself is Just the template.json file As Is. This surprises me greatly. But then yes, you earned that result.
Want results from more Discord servers?
Add your server
More Posts
flag shenanneginsTIL you can set the `flags` key on a document to whatever you want to (e.g. a string). This is a surraaeAfter some discussion yesterday in #active-effects , I decided to try to create a system-agnostic modevMode json changed warningI checked the module repo and I honestly can't figure out where I would plug in my code. I'd be guesS3 File Picker SettingsCan someone with an S3 configuration give me a test of the FilePicker settings api and tell me if a item preCreate@sol.folango @mrprimate (pinging you two in particular because you do import stuff involving existinItem Macro Compendium WorkflowOkay, here's a long one that's a bit of a doozy. I'm looking at setting up some sort of tooling/workItem Specific Crit DetailsOh that critical hit thing is gonna hit MRE too isn't it... hrm...1.5.x 72%@dnd5e No action required (but suggested 🙂 ) The 1.5.0 milestone is ~72% complete. It has a due daV9 Tabs IssueIf you never figured this out, here's why this happened: A small change in `Tabs` during v9 causes sDeck Creation MacroI created a macro to fill out a 52-card deck, you set the ID of the deck and the base URL of the foldevmode-issues@arcanist figured out, the flex layout elements have `pointer-events: none`, so anything injected wifunction vs methodAnyone know of a good guide that explains the difference between a function and a method? I don't reActive Effect HelpAnd it should be the actual ActiveEffect document for the effect, not just the id. I don't have theTOL JEs@badgerwerks I haven't had a chance to poke around in TOB/BoL yet, but I wanted to ask how you did tCI 2 minute windowAlright, I've got a Gitlab CI pipeline I'm reasonably pleased with as a result of yesterday's effortGitLab CI PipelinesToday's project is Gitlab CI. Wow me with your pipelines if you got em.Storybook Shennanegins@wyrmisis I have a headcannon for you, one who also uses Storybook. _What if_ we could load foundryjsxDammit I want this...react librarySo far I've seen Vue 2, Vue 3, Alpine, and Svelte pulled into Foundry. No one has yet been crazy enoweb componentsA comment @n1xx1 made over in #development-basics (https://discord.com/channels/732325252788387980/7