STAR TREK 2d20
  1. #1

    Stability of FG XML format for D&D 5e monsters

    Hello,

    A while back I created my own MySql db to store monsters for D&D 5e. I'd like to import that data into FG. My question is how stable has the format/structure for FG XML format for D&D 5e monsters been over time? If it's been pretty consistent I'll write a script to produce that xml format. Alternatively I could export to a format for a utility like Engineer Suite - provided that format doesn't change often.

    Basically I'm looking to find the method of least volatility.

    Note regarding Engineer Suite I realize I could create text and then manually import that into Engineer Suite but if possible I'd prefer to avoid as much manual as possible and just create from what I can tell right now npcs.json file.

    Thanks.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    Welcome to the FG forums!

    Quote Originally Posted by davout View Post
    Basically I'm looking to find the method of least volatility.
    Don't rely on a middle tier app to do your conversion for you. You can't guarantee that will be updated to take into account any future changes in FG. So go direct to FG.

    I can't comment on what plans the FG devs may have for NPC data format in future. But, whatever they do, they usually write an upgrade process into the FG code - in the scripts\manager_version2.lua file. Having a quick look at this file shows that there haven't been any changes to the FG NPC data that required an update/migration of previous data - suggesting that the NPC data has been pretty stable to this point.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    Thanks.

    Next question, is there documentation for the required format/structure? So far the closest thing I've found is this https://www.fantasygrounds.com/wiki/..._File_Overview which is general not specifically for 5e NPCs/monsters.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,361
    There's no documentation to that level.

    The best thing to do is create a few NPCs, or copy some from the MM, in a campaign and then look at the XML format in the campaign db.xml file.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #5
    To expand on Trenloe's excellent suggestion, I would suggest placing a recognizable word into each field so on the export you know what is being placed there. Some tags might not make sense while in the text editor and you placing what it is will help. Also show where something is placed in the xml when doing it by hand. Starting with a template npc with all the tags filled will be a great road map to finding that tag for other NPCs you will need to enter.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  6. #6

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in