Newb looking for advice on creating Compendium via code
I am new to Foundry and trying to figure out if it will be a good fit for my game. I have a fair amount of custom content that my groups uses and I want to create a content mod for it. I know I can use the in game Create Compendium and Create Item features but I have a fair amount of content and wanted to try creating it via code. I have a moderate amount of experience writing JS and JSON files and it sounds like a fun project to try out.
However I haven't been able to find many resources for creating the Compendium with code. The documentation from Foundry only talks about using the in game options and looking through some of the mods that add content wasn't enlightening. I was hoping someone could point me at a guide to get me started on this, or tell me if I am completely barking up the wrong tree and this really can't be done.
Thanks!
F
Farling•226d ago
They have a CLI tool that can create a compendium from a JSON file - but the JSON needs to have the correct Foundry structure within it.
Or just write a macro that reads each object from a file and calls Item.create for that data.
Want results from more Discord servers?
More PostsAm I approaching character data updates incorrectly?In my system I've constructed a `core` and `modules` directory where `core` handles all of the critiLimit portions of character sheet to Owner/GM onlyHey friends, I'm new so if this isn't the best way to go about asking about system development questBeginners help with doorsHi foks. Apologies if i've posted this in the wrong place. I am totally new to working with Foundry,Blind chat message is public instead since v11I've updated to v11 today from v10.303 and now my blind chat messages aren't working anymore and I cGiving a system "Per World" optionsI'd like to plan ahead for others using my system and want to offer:
☐ Imperial or ☑ Metric
... whenHow to - Internal Compendium Pack ReferencesHi first post here, new to this forum,
I'm creating a game system for an RPG I want to play on Found