Skip to content

Instantly share code, notes, and snippets.

View janssen-io's full-sized avatar

Stan Ionitoiu-Janssen janssen-io

  • Dimaros
  • Netherlands
View GitHub Profile
@janssen-io
janssen-io / foundry-troubleshooter.ts
Created July 27, 2020 07:22
FoundryVTT: Find which (combination) of modules is causing issues
/*
The idea is to prevent testing every possible combination (2 to the power of the number of modules) to
see which combination of modules is causing issues.
TODO: try to find a smaller group using binary search
Halfway done: toggle every module to see if it's needed to reproduce the issues.
*/
declare var game: any;
declare function duplicate<T>(arg: T): T;
@janssen-io
janssen-io / foundry-set-folder-permissions.js
Last active June 14, 2020 19:26
Change the permissions of stuff in folders in bulk in FoundryVTT.
// Moved to - https://github.com/foundry-vtt-community/macros/blob/master/misc/folder_permission.js
// For previous versions see the history of this gist.