Giter Site home page Giter Site logo

fc5-convert-cli's Introduction

fc5-convert-cli's People

Contributors

dependabot[bot] avatar ebullient avatar jkschneider avatar stuartwdouglas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fc5-convert-cli's Issues

Issue with tables in Backgrounds

Tables seem to have an issue. in some of the backgrounds. Bonds, Ideals and sometime Flaws are being munged with previous tables. Happens mostly when there are tables back to back n the XML. An example is the output of the acolyte background. Many others, but probably fixing one will fix most of the others.
Example:

|d8 | Personality Trait|
|---|------------------|
|1 | I idolize a particular hero of my faith, and constantly refer to that person's deeds and example.|
|2 | I can find common ground between the fiercest enemies, empathizing with them and always working toward peace.|
|3 | I see omens in every event and action. The gods try to speak to us, we just need to listen.|
|4 | Nothing can shake my optimistic attitude.|
|5 | I quote (or misquote) sacred texts and proverbs in almost every situation.|
|6 | I am tolerant (or intolerant) of other faiths and respect (or condemn) the worship of other gods.|
|7 | I've enjoyed fine food, drink, and high society among my temple's elite. Rough living grates on me.|
|8 | I've spent so long in the temple that I have little practical experience dealing with people in the outside world.|
|d6 | Ideal|
|1 | Tradition. The ancient|

traditions of worship and sacrifice must be preserved and upheld. (Lawful)

|2 | Charity. I always try to help those in need, no matter what the personal cost. (Good)|
|--|--------------------------------------------------------------------------------------|
|3 | Change. We must help bring about the changes the gods are constantly working in the world. (Chaotic)|

option convert doesn't exist, option obsidian seems to not work

So I tried to follow your install instructions and it works for the most part (there is a dependency on Mavin mvnw which I do not have installed and you do not describe....but that is not important to the real issue.)

tried to run the command
fc5-convert convert -o target/reference Collections/CoreRulebooks-merged.xml

And am getting the error: Unknown option -o. Weirder, the help doesn't give me the "convert" option. I presume it has changed to "obsidian", so I reran the command

fc5-convert obsidian -o target/reference Collections/CoreRulebooks-merged.xml

And I receive the following:

๐Ÿ’ก Writing files to /mnt/c/Private/DnD/FightClub5e/target/reference
โฑ Reading CoreRulebooksAndSupplements.xml
โœ… Done.

But I see no file called reference, nor directory, nor nothing. BTW, I am using WSL - Ubuntu 20.04 under Windows.

[Feature request] More granular templating options!

Currently, templating requires adhering to a certain output format. For example, {resource.scores} outputs STAT (BONUS) | STAT (BONUS) | STAT (BONUS) | STAT (BONUS) | STAT (BONUS) | STAT (BONUS). This poses an issue if, for example, the user wants to make a template that adheres to the Obsidian statblock plugin's syntax.

In order to be able to match said statblock plugin(and just to gain fully granular control over the template in general), there'd have to be ways to access:

  • Individual stats (sans bonus)
  • Subtype
  • Hit dice (separated from HP)
  • Saves
  • Damage vulnerabilities, damage resistances, and damage/condition immunities
  • Senses
  • Languages

Unknown options when working with 5eTools JSON

Hey, I'm a DM with only basic experience with Java trying to convert 200+ 5eTools homebrew monsters into a Fight Club 5 XML. From what I understand, the option --xml in fc5-convert is meant to turn 5eTools JSON files into XMLs (please correct me if I'm wrong!).

But, when I installed and ran fc5-convert using the instructions in README, I kept running into this message:
Unknown options: '--xml', '--md', '--background', '--index', '-o'

If this information helps, I'm on an Intel Mac, and the exact thing I entered to get this message was the template at the end of the README, so
fc5-convert 5etools --xml --md --background src/main/resources/templates/background2md.txt --index -o dm dm-sources.json ~/git/dnd/5etools-mirror-1.github.io/data wbtw-items.json

I honestly don't understand what I'm doing, so I would appreciate any help resolving this! (And also any help with the command I need to enter to do what I need to do ๐Ÿ˜ญ)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.