socket woes

not the socket firing
C
Calego989d ago
Some of the basics You have sockets: true in your manifest?
DT
Daniel Thorp989d ago
No lol But, I'm not working inside my module, just using the console
C
Calego989d ago
Foundry VTT Community Wiki
Getting Started with Package Development
Some common hurdles facing new Package Developers
C
Calego989d 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 Thorp989d ago
How does scope work? Do I need to change it to scs.phaseChanged?
C
Calego989d ago
You can probably use 'world' to play around Ahhhh, hmmm Good question Hold on let me check confetti
DT
Daniel Thorp989d 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
Calego989d ago
Has to be 'module.MODULE_ID' I think
DT
Daniel Thorp989d ago
C
Calego989d ago
(it's not helpful to say 'lol just use socketlib' whoops) Oh good we linked to vance
DT
Daniel Thorp989d 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
Calego989d ago
Hijacking settings is legit
DT
Daniel Thorp989d ago
game.settings.set("scs", "currentPhase", val);
Hooks.on("updateSetting", setting => {
if (setting.data.key === "scs.currentPhase" && !game.user.isGM) {
// Do something for player clients
};
});
game.settings.set("scs", "currentPhase", val);
Hooks.on("updateSetting", setting => {
if (setting.data.key === "scs.currentPhase" && !game.user.isGM) {
// Do something for player clients
};
});
C
Calego989d 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 Thorp989d ago
I don't have access to the same variables there
Want results from more Discord servers?
Add your server
More Posts
preUpdateSo 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