Xeonen
March 21st, 2020, 10:01
Hello,
I've coded an import script that parses information from GCS to FG. It is developed for purely personal use. However, I'd like to share it for those who would like to use. I probably would not update or do anything with these scripts so feel free to use it whatever the way you wish. In order to use scripts, you would need Python 3.x (I've used 3.7). It is an easy to install programming language. However, you can also use a web based interpreter such as Google Colab.
The steps to use scripts as follows.
Install Python 3.x and GCS
Export the Skills or Spells -NOT both- from GCS using save as command.
tree = ET.parse("name.ext") change name.ext o reflect the GCS save file.
Change linex 148, 146, and 159 to reflect the content or up to your heart's content.
Place both script and the file in the same directory.
Run the script.
You will get db.xml (if you like to beautify the output use the site codebeautify).
Edit definitions.xml to reflect the changes you did in line 146.
Create a folder in Fantasy Grounds/Modules folder and place these two files into that folder.
Run FG, and load the module.
I know that procedure could be done much more eloquently. I would love to do it that way as well yet I'm very new to FG and I wanted to produce a quick solution.
I hope this will help somebody.
I've coded an import script that parses information from GCS to FG. It is developed for purely personal use. However, I'd like to share it for those who would like to use. I probably would not update or do anything with these scripts so feel free to use it whatever the way you wish. In order to use scripts, you would need Python 3.x (I've used 3.7). It is an easy to install programming language. However, you can also use a web based interpreter such as Google Colab.
The steps to use scripts as follows.
Install Python 3.x and GCS
Export the Skills or Spells -NOT both- from GCS using save as command.
tree = ET.parse("name.ext") change name.ext o reflect the GCS save file.
Change linex 148, 146, and 159 to reflect the content or up to your heart's content.
Place both script and the file in the same directory.
Run the script.
You will get db.xml (if you like to beautify the output use the site codebeautify).
Edit definitions.xml to reflect the changes you did in line 146.
Create a folder in Fantasy Grounds/Modules folder and place these two files into that folder.
Run FG, and load the module.
I know that procedure could be done much more eloquently. I would love to do it that way as well yet I'm very new to FG and I wanted to produce a quick solution.
I hope this will help somebody.