1. #1

    Combat Tracker Game Name and Session Number Extension

    What It Does
    This extension will override the Combat Tracker default title, replacing it with the adventure name and session number selected from the options menu.

    The game name option has been pre-loaded with the module names from D&D 5e, Pathfinder adventure paths, Starfinder, and Call of Cthulhu. Game names also include generic ruleset names like Dungeons and Dragons, Pathfinder, Starfinder, Call of Cthulhu, Castles and Crusades, Fate, Numenera, Rolemaster Classic, Savage Worlds, Dungeons and Dragons 3.5, and Dungeons and Dragons 4E. This extension also allows for 10 custom game names. If you want to add your own custom title tag, see the "Adding Custom Game Names" further down this post.

    This extension supports session numbers 0 - 1000.

    Screenshots

    gmwct-options-menu.jpg

    gmwct-combat-tracker-examples.jpg

    Support Rulesets
    This extension is based off the CoreRPG ruleset and should be compatible with all rulesets. I have tested it with 3.5e, 4e, 5e, CoreRPG, Fate Core, and PFRPG.

    Installation
    Download and copy the GMW-CT Session Number.ext file into your %appdata%\Fantasy Grounds\Extensions folder. Start Fantasy Grounds, and enable the extension when loading your campaign.

    Usage
    When you have opened your campaign, click the options button, and set the CT Session: Game Name and CT Session: Session Number options. Open the combat tracker and you will see the "Game Name - Session X" title based upon the options you have chosen.

    This extension will modify the combat tracker title in 4 different ways:

    1. If Game Name and Session Number are blank, tracker will show "Combat Tracker".

    2. If Game Name selected and Session Number is blank, tracker will show the Game Name only.

    3. If Game Name is blank and Session Number is set, tracker will show the Session Number only.

    4. If Game Name is set and Session Number is set tracker will show "Game Name - Session Number".


    Important Notice
    Fantasy Grounds generates the title tag for the combat tracker when it is opened for the first time. You must set your options before opening the combat tracker for the first time during a session. If you change a CT Session option after opening the tracker, you must use the /reload command or restart Fantasy Grounds to update the combat tracker. Keep in mind that you cannot /reload if players are already connected.

    Adding Custom Game Names
    To add your own custom game names, you need to edit the following files:

    1. strings/adventure-title-strings.xml

    2. scripts/gmw-ct.lua

    Replace "Custom Name X" with the name of your game.

    DID YOU SEE IT?
    Did you see and read the important notice above? Seriously, you need to read it.

    Is Your Adventure Module Not Listed
    I know that there are a bunch of modules not listed. If anyone has a list, or wants to compile one, of all the adventures available for Fantasy Grounds, please send it to me and I will update the extension. Otherwise, I will update as time permits.

    Git Repo
    Download the source code from Bitbucket

    Download the extension below:
    Attached Files Attached Files

  2. #2
    Wow, this is really cool! Nice work!

    edit: Just tested it out. I'm running LMoP and really nice to have it show there.
    Last edited by Halfront; May 14th, 2018 at 00:44.

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Denver, Colorado, USA (for a bit)
    Posts
    24,156
    Nice one! Simple functionality, but a cool thing to have.

    One thing to consider to make it truly universal for any adventure. Make the combat tracker title field editable by the GM, store the name in the campaign database and use that as the title for all combat trackers - both GM and players.
    FG Con 15 Fantasy Grounds Online RPG Convention - Nov. 8-10, 2019
    Register at www.fg-con.com for all the latest info.

    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!

  4. #4
    Love It, Thanks

    Madman..
    "Over thinking, over analyzing separates the body from the mind."...MJK...

    Dropbox Link To Maps Folder




  5. #5
    Thanks Trenloe. I like your idea. Since FG doesn't allow Lua file i/o, I wasn't able to do my original idea of loading the values from a text file onInit. Any chance you could point me towards some documentation dealing with text input fields?

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Denver, Colorado, USA (for a bit)
    Posts
    24,156
    Quote Originally Posted by Wintermute View Post
    Any chance you could point me towards some documentation dealing with text input fields?
    See the stringfield here: http://www.fantasygrounds.com/refdoc/stringfield.xcp It inherits various controls - so click through the inherits links.

    Take a look at Damned's MoreCore ruleset - this has a few labels fields that can be edited in place - the fields in the combat section of the PC sheet, for example.
    FG Con 15 Fantasy Grounds Online RPG Convention - Nov. 8-10, 2019
    Register at www.fg-con.com for all the latest info.

    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!

  7. #7

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
  •  

Log in

Log in