PDA

View Full Version : Importing Characters from a CSV or JSON file



TheSwartz
March 31st, 2019, 09:33
I'm wondering if this is already figured out.

If I were to use a random character generator, that exported to either a JSON or CSV file.

Is there an automated process to covert that to an appropriate XML file for import into a Core RPG character file?

This would be the site for random character generation: https://purplesorcerer.com/create_party.php

Thanks!

damned
March 31st, 2019, 12:52
Fantasy Grounds uses XML data.
And it expects the XML data t be presented in a way that the particular ruleset wants it.
You can write an importer to convert CSV or JSON or any other data to another format.

TheSwartz
March 31st, 2019, 13:05
You can write an importer to convert CSV or JSON or any other data to another format.
Ya, that’s what I thought to do, but didn’t know if it was already done in some.

Trenloe
March 31st, 2019, 13:40
Is there an automated process to covert that to an appropriate XML file for import into a Core RPG character file?

This would be the site for random character generation: https://purplesorcerer.com/create_party.php
The Core RPG ruleset is just a basic framework, importing character data into Core RPG won’t give you a lot of functionality. I assume you’re referring to DCC (as that site you link is for DCC characters)? If so, you may want to ask if anyone knows of any info in the DCC ruleset thread here: https://www.fantasygrounds.com/forums/showthread.php?24890-DCC-RPG-Ruleset

LordEntrails
March 31st, 2019, 20:25
It's been done, converting JSON data to FG xml. Their have been attempts to convert character sheets from both DDB and Roll20 into FG. They both work, with caveats in that I believe the DDB format has changed, but is probably fairly stable (there was a link about this in the past week). Converting from Roll20 is more troublesome, because their is no standard Roll20 character sheet. A DM can use one of several "official" sheets,plus dozens of community ones, or can create their own. Each of those means the JSON file is in a different format and needs a different converter.

You shold be able to track down those threads, and use the discussions within to create your own converter.