1. #1

    FG to GCS Skill and Spell Import Script

    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.

    1. Install Python 3.x and GCS
    2. Export the Skills or Spells -NOT both- from GCS using save as command.
    3. tree = ET.parse("name.ext") change name.ext o reflect the GCS save file.
    4. Change linex 148, 146, and 159 to reflect the content or up to your heart's content.
    5. Place both script and the file in the same directory.
    6. Run the script.
    7. You will get db.xml (if you like to beautify the output use the site codebeautify).
    8. Edit definitions.xml to reflect the changes you did in line 146.
    9. Create a folder in Fantasy Grounds/Modules folder and place these two files into that folder.
    10. 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.
    Attached Files Attached Files

  2. #2
    Very nice. I was going to do this in the Mod Maker and maybe I still will but it just went to the bottom of the list.

  3. #3
    Quote Originally Posted by Jaxilon View Post
    Very nice. I was going to do this in the Mod Maker and maybe I still will but it just went to the bottom of the list.
    I'm so happy to hear that from the maker of Mod Maker! I've used Mod Maker to import items into the game. Having ability to import traits, spells, and skills in Mod Maker would be plain awesome!

  4. #4

    Problems

    Hi, and thanks for the amazing work!

    I followed your instructions.

    FGU Unity, however, does not see my newly created modules.
    I even tried to compress the folders in a .mod files, but still FGU does not see them. I have no idea what I am doing wrong.

    Thanks!

  5. #5
    Quote Originally Posted by Ellrelion View Post
    Hi, and thanks for the amazing work!

    I followed your instructions.

    FGU Unity, however, does not see my newly created modules.
    I even tried to compress the folders in a .mod files, but still FGU does not see them. I have no idea what I am doing wrong.

    Thanks!
    I do not have unity so I can not check it myself. However, I can check out the codes you generated and an in-app generated mod file to see if I can do something.

    Could you create a random item/spell in app then export it as mod file? I would require;

    • The files you generated.
    • The mod export you have done in FGU.


    Regards,

  6. #6
    There was a problem with one of the module generators (not sure if it was this one or not) where the zip file was being created with extra control characters in the file names inside the file. If you unzipped and rezipped the file, then it fixed the issue for FGU.

    Regards,
    JPG

  7. #7
    Quote Originally Posted by Xeonen View Post
    I do not have unity so I can not check it myself. However, I can check out the codes you generated and an in-app generated mod file to see if I can do something.
    Thanks, but I did solve the problem, with the method described here above.

    I am sorry to have bothered you, and thanks again for this great work!

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DMsGuild

Log in

Log in