5E Product Walkthrough Playlist
  1. #1

    Trying to create an extension for a new 5E based campaign/world

    What is a good starting point on learning how to write an extension that will rename Spellcasting into Weavecasting and allow for more slots per level than current spellcasting gives?

    I know I have to write XML and lua coding but I have no idea where to even start at this point.
    Fantasy Module Parser (Module Creator for Fantasy Grounds) Discord Server: https://discord.gg/78SdFgg
    Fantasy Module Parser Patreon: https://www.patreon.com/fantasymoduleparser

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    https://www.fantasygrounds.com/wiki/...eveloper_Guide

    Then look at a couple of small extensions from the forums - referencing the developer guide (especially the section on Extensions) understand how the extension works by overriding and adding to the existing code.

    Then, look for where you will want to change the existing 5E code and see what's needed to make what you want.
    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
    The Developer Guide doesn't point towards the lines/syntax I would have to make for editing the 5E ruleset. If someone could get me a better reference, I would appreciate it.
    Fantasy Module Parser (Module Creator for Fantasy Grounds) Discord Server: https://discord.gg/78SdFgg
    Fantasy Module Parser Patreon: https://www.patreon.com/fantasymoduleparser

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    Quote Originally Posted by tstory30 View Post
    The Developer Guide doesn't point towards the lines/syntax I would have to make for editing the 5E ruleset. If someone could get me a better reference, I would appreciate it.
    You won't get a line by line (or even function by function) description of a ruleset. Sorry.

    To manage your expectations: this is not something that you can follow a step-by-step guide and do in 30 minutes. If you want to start hacking around FG, then you'll have to be prepared to spend time learning, looking at code, doing "find in files" to see how things are done in the ruleset or extension.

    Have a look at the 5E ruleset campaign\scripts\manager_char.lua file - and look for "spellcasting" and see how this is defined and used within that script (as a variable called FEATURE_SPELLCASTING). The main area it is used is the addClassFeatureDB function, which is called a few times within that script file.

    Some details on the main file structure of a ruleset here: https://www.fantasygrounds.com/wiki/...lesets_-_Files

    The "Rulesets (Game System Frameworks)" section of the Developer Guide takes you through the various aspects of the FG code used in a ruleset - and ends in the API reference guide.
    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
    That was actually enough information to figure out how to start. I didn't even know which LUA file to look at to begin.
    Fantasy Module Parser (Module Creator for Fantasy Grounds) Discord Server: https://discord.gg/78SdFgg
    Fantasy Module Parser Patreon: https://www.patreon.com/fantasymoduleparser

  6. #6
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,270
    Blog Entries
    9
    If you are like me, do the Custom Decal Tutorial found on this page; https://www.fg-con.com/free-downloads/

    Yes you have no need for it. BUT, it is simple, easy and has step by step instructions. It's a very simple tutorial, but it gives a good sense of some of the simplest things to do and have to start etc.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

Thread Information

Users Browsing this Thread

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

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
  •  
FG Spreadshirt Swag

Log in

Log in