-
-
Notifications
You must be signed in to change notification settings - Fork 2
How to add system support
Averrin edited this page Nov 27, 2022
·
11 revisions
- 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 openhttp://localhost:30001
- Do not hesitate to ask me anything in Discord: Averrin#0374
- Use
dnd5e
orpf2e
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
andsystem
. In general,system
is a modern v10 alternative todata
. In most cases, you still can usedata
. 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 eitherdata
andsystem
everywhere, but directgetIndex
calls.