C
Calego•989d ago
Some of the basics
You have
sockets: true
in your manifest?DT
Daniel Thorp•989d ago
No lol
But, I'm not working inside my module, just using the console
C
Calego•989d ago
Lol our wiki page is super helpful
https://foundryvtt.wiki/en/development/getting-started-with-development#how-do-i-get-started-with-sockets
/S
Foundry VTT Community Wiki
Getting Started with Package Development
Some common hurdles facing new Package Developers
C
Calego•989d ago
Ok, well the socket needs your module registered to be a valid scope I think
Which means setting that in manifest and restarting foundry
DT
Daniel Thorp•989d ago
How does scope work?
Do I need to change it to
scs.phaseChanged
?C
Calego•989d ago
You can probably use 'world' to play around
Ahhhh, hmmm
Good question
Hold on let me check confetti
DT
Daniel Thorp•989d ago
I searched the wiki and couldn't find that. I even kind of remembered seeing it before, but I doubted myself since it didn't show up
C
Calego•989d ago
Has to be 'module.MODULE_ID' I think
DT
Daniel Thorp•989d ago
The stub answered those questions https://github.com/VanceCole/macros/blob/master/sockets.js
C
Calego•989d ago
(it's not helpful to say 'lol just use socketlib' whoops)
Oh good we linked to vance
DT
Daniel Thorp•989d ago
I think it's a bit complicated to use sockets for what I'm doing since I just remembered my trick with high-jacking the settings update hook
It's easier
C
Calego•989d ago
Hijacking settings is legit
DT
Daniel Thorp•989d ago
C
Calego•989d ago
You can put this on the settings' onChange instead of using the hook if you want
That's how I do in GM screen
DT
Daniel Thorp•989d ago
I don't have access to the same variables there
Want results from more Discord servers?
More PostspreUpdateSo for some reason ItemPF#_preUpdate changes aren't sticking.. what is PF1 doing that prevents this?mergeObject`mergeObject` is a beast of a function which lets you smash two objects together and that options arselect in sheetAlso, is the data actually saved on the actor? You can inspect the data in the console opened with FIC 5e DocsI'm not looking to ping about this but for anyone who sees this: I'm interested to know if anyone hecustom hud elementMaybe I'm missing something simple here. I'm making my own custom hud element (NOT based on a FoundrCover@badgerwerks how does the cover application for 5e helpers work?
I know you do black magic to calculGitpod WorkflowHas anyone figured out a codespaces workflow?Dynamically get Object property from user inputAnyone know how I can do this?
I have an Actor (`myactor`) and I'd like to have an input box which autopublishI'm trying to use @varriount's AutoPublish, but I keep getting this error. Any ideas?https://github.symlinking foundry.js and vscodeIs this something you were able to do with vscode? I'm trying right now with both WSL2 symlinks and Releases to ChangelogI just automatically made a Changelog by going to https://github.com/arcanistzed/scs/releases and rucodespacesGo to any github repository and press `.`
You'll get kicked over to a `github.dev` version of the reequipmentType bonus⚠️ Breaking Changes ⚠️
The `DND5E.equipmentTypes` type of `bonus` has been removed. Any in-world `Scroll Into View troublesAnyone know why `Element.scrollIntoViewIfNeeded()` is working, but `Element.scrollIntoView()` isn't?DevMode Settings Explorer feedbackSo, I'm working on the styling for a little potential addition to Calego's 'Developer Mode' module aOverlay hiding starsHey y'all! I've run into a general CSS/design problem that I'm kinda stumped on solving. In the imagToDontThingswe should have threaded a long time ago I think, whoopsLayer Manipulationpresumably a module doing this would execute on canvasReady or something for every client right?Document TimestampsIs there a way to find the timestamp of the last edit made to a Document?License Property@ghost @flamewave000 @corporat @kakaroto
But if we do want to talk Manifest+, we should do that ove