Closed stschoelzel closed 2 years ago
What format are you trying to import?
5etools data of stuff i own, because its the simplest to get
As far as I could find, you can only get monster data one by one from 5e.tools. Do you have an example of a file with multiple?
Ok, I realize it doesn't work as I thought. I can't just import the data file for an Source I own (from the 5etools mirror) - how do I import from there then? I just want to get accsess to the stuff I own for my campaign managment :(
I understand now ... A mass Import from 5e would be nice but I was just uninformed :D Thanks anyway <3
You can pull en-masse if you'd like @valentine195 but it would be limited by source file.
take a look at the datasource (flat file) jsons. homebrew files you'll have to pull from separately.
Hit up their Discord for help on where to find the files
Are they on the repo?
I have found simple workaround for 5e.tool site dump imports.
You can split bestriary in separate files manually, or, in my case, with simple python script like this:
import json
with open("~/5e.tools/data/bestiary/bestiary-mm.json", "r") as f:
data = json.load(f)
for monster in data["monster"]:
with open(f"~/dnd/monsters-mm/{monster['name']}.json", "w") as o:
json.dump(monster, o, indent=4)
After, you can import files into obsidian-5e-statblock
from those .json
-files. But it causes other problems:
Mass import from 5e.tools may be simple feature for obsidian-5e-statblock
. But first, it requires 5e.tool markup fix. After that, adding a selection of many files at a time will cover most use-cases for import (i think).
Hey guys, I’ll be releasing a version 2.0.0 soon (hopefully within the next week) that’ll have a bunch of import improvements, including mass-import and fixing the markup.
The latest beta should have the ability to mass-import creatures from 5e.tools, either from the bestiary files shown above or going to the bestiary, adding monsters to a list using the + option, and right clicking the list -> Download JSON Data.
Single creatures may still be imported as well.
As this is fixed in the beta, I'm going to close this.
Is the only way to import external Data (I own) on a file by file basis?