Skip to content

How to add system support

Averrin edited this page Nov 27, 2022 · 11 revisions

Before we start

  • Install the Koboltworks Data Inspector. It's a "must have" for every developer. Also, Alpha Suit integrates with the inspector and adds "inspect" buttons to observe data structure of items. It is especially helpful for compendium entities.
  • Basic compendium filters can be done without any coding skills. But more advanced requires some js knowledge. Adding inline "info widgets" or "selected document info pages" needs at least basic Svelte skills.
  • The module is based on TyphonJS so you can use its documentation to start working with Alpha Suit. TLDR: npm install & npm run dev then open http://localhost:30001
  • Do not hesitate to ask me anything in Discord: Averrin#0374
  • Use dnd5e or pf2e as example. This documentation can be incomplete or outdated.
  • Filters are based on Filtrex lib. It's necessary to understand its syntax.
  • Enable Browser advanced mode in Compendium Browser settings. It will help you to debug your filters.
  • You may be confused by inconsistent using of data and system. In general, system is a modern v10 alternative to data. In most cases, you still can use data. But it doesn't work if we are speaking of compendium indexing. I made a couple of hacks to mitigate this difference. You can use either data and system everywhere, but direct getIndex calls.
Clone this wiki locally