FG Spreadshirt Swag
  1. #1

    Adding PCs and NPCs to New Tracker

    Hey all. Hope all is good.

    I am in the middle of building a new tracker from the components of the Combat Tracker. Pretty amazing how you can reuse stuff from an existing tool in FG. I'm pretty excited.

    One issue I've encountered is that the drag and drop functionality to add NPCs and PCs to a tracker is not working in the new tracker. I am pretty confident that it is tied to this XML snippet.

    Code:
    <list_ctbox_host />
    But I'm not sure what scripts this references. Any insight or help?

    Thanks so much for the help so far. I actually think I can do what I want to do with this tool. I'm really excited.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,428
    A major hint for working out how everything hands together it to use a text editor that allows for "find in files". I use Notepad++ (free) which allows you to search through all of the FG files to see where things are used and defined.

    list_ctbox_host is a template that is defined in ct\template_ct.xml and only applies to the GM (host). This is a windowlist control which has a script attached to it: ct\scripts\ct.lua. Check through the onDrop function within that LUA file, this is what is executed when something is dropped on the control. Trace through the calls in that function to see what is a valid record for dropping within that control and what occurs to populate the combat tracker. There are a number of other script packages (FG Managers) that get called, so you'll need to trace through to get familiar with how this LUA hierarchy hangs together.
    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
    Thank you. Awesome. But how do you get Notepad ++ to search all of those files? I am currently using it and only seen a search function for files that are currently open.

    Thanks again so much. I'll hunt it down.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,428
    Extract all of the files from the ruleset .pak file into a directory somewhere (not the FG \rulesets directory) then use "Find in Files" (Search -> find In files or CTRL+SHIFT+F) and set the Directory to be the location you extracted the ruleset files to. Make sure "In all sub-folders" is checked too.
    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!

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
  •  
Starfinder Playlist

Log in

Log in