DICE PACKS BUNDLE
Page 1 of 2 12 Last
  1. #1

    Transform items to tables (e.g. starship items)

    Hi there,

    I am a brand new FG user so I am sure this has come up before as it's not unique to SF, but as a fairly experienced tech nerd but also a new FG user I have a limited window of "first impressions of things" and this is the biggest item on my list after an hour of playing around with the rules and the Starship builder (which looks fantastic, by the way!)

    When I go to look at lists like 'Starship Items,' it's great that I can filter based on Type and SubType -- but it would be better still if FG were clever enough to show me tabular data rather than just a list of names, especially for items that only have a couple properties. Like if I ask for a list of power cores, it's a safe assumption that I want to see PCU and BP, and maybe Size, but since there are only three properties on this SubType FG ought to just put them all in the table ... and let me sort them ... instead of making me click on every item.

    I understand that this is just one use case of a very powerful "list of things" manager and that this request is not as simple as it sounds, but for a lot of these SubTypes there is not a whole lot of information there and this would be a wonderful quality of life / usability perk if it could transform them into a sortable table.

    Thanks for reading!
    Aq

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Welcome to the forums!

    Have a look at a couple of the links in the library -> Starfinder Core Rulebook -> Starship items. This presents a table (not sortable though) that displays item name, PCU and BP Cost. You can click on a header to close it and just see specific types.

    You can also view details in the reference manual: Library -> Starfinder Core Rulebook -> Reference Manual - Chapter 9: Startships -> Building Starships This presents the tables from the books - unfortunately there aren't any clickable links here. That would be a good feature request!
    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
    OK, I see the table you're referring to, but this is quite cumbersome.

    Why is there a giant button labeled "Starship Items" that gives me a cut-down version of the table I get from Library --> Core Rulebook --> Starship items?

    The Starship Items button seems like a more exhaustive table, because it's pulling in sources other than the core rulebook. But they're all common objects, so my original question remains: given the ready access to 'starship items' right from the main UI, why can it not transform the data (at least when filtering by a subType) to present a useful table on-the-fly rather than making me look up the same information somewhere else if I want PCU and Cost in the table?

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    Quote Originally Posted by Aquitaine View Post
    OK, I see the table you're referring to, but this is quite cumbersome.

    Why is there a giant button labeled "Starship Items" that gives me a cut-down version of the table I get from Library --> Core Rulebook --> Starship items?

    The Starship Items button seems like a more exhaustive table, because it's pulling in sources other than the core rulebook. But they're all common objects, so my original question remains: given the ready access to 'starship items' right from the main UI, why can it not transform the data (at least when filtering by a subType) to present a useful table on-the-fly rather than making me look up the same information somewhere else if I want PCU and Cost in the table?
    It would require a rebuild of the current table coding. It would be a good idea but it is also not something Ive seen requested before. You can add it to the wishlist and post the link back here for people to add their votes to it.
    https://fg2app.idea.informer.com/

  5. #5

  6. #6
    Octavious's Avatar
    Join Date
    Oct 2015
    Location
    El Reno Oklahoma Central Time Zone
    Posts
    246
    Hey Aquitaine,

    I am developing a utility called "Starship Studio" which is a ship builder for FG starfinder star ships.. it will export a FG xml starship module. only takes a few minutes to build a ship and export.. It calculates as you add and remove items. It also calculates the DC for everything too and will add that to the FG starship sheet... it will be far more advanced and dynamic than what is present.. so it will make a good addition partner to FG Starfinder I believe.I am almost done with it.. Only have to add the weapon mounts purchaser and custom frames dialog.. then write the exporter. here is a pic of the pcu combo box. It shows pcu ,bp and sizes of ships it will fit. I think this is what you were talking about..

    Starship Studio 2.jpg


    *************** The only constant in the universe is change. *****************

  7. #7
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by Aquitaine View Post
    Why is there a giant button labeled "Starship Items" that gives me a cut-down version of the table I get from Library --> Core Rulebook --> Starship items
    That button is not really designed to present a detailed table. It gives access to the base campaign (and module) database records with the underlying base FG functionality - allowing creation of new records, sharing of individual records with players, etc..

    I agree, it would be nice to have more data displayed in these areas.
    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!

  8. #8
    That button is not really designed to present a detailed table. It gives access to the base campaign (and module) database records with the underlying base FG functionality - allowing creation of new records, sharing of individual records with players, etc..
    I understand why it works the way it does and it is a nice bit of "quick" functionality to have it pull in items from all sources. It's exactly what I'd want for a quick reference.

    But since it's clearly polling the underlying data to fetch the item names, it seems that -- at least for the "big button" summary tables -- it shouldn't be too tough to have it transform the underlying data into a couple more columns. Some outer limits are in order because I can easily see how a button like this could be polling something like NPCs or Monsters where you have tons of properties on the underlying data; knowing exactly what to transform and how is a tougher question, but an easy starting point should be "if the data I'm polling only has 3 properties, show all of them."

    I'm still just learning FG as a user so I haven't even started to look at what language it's written in to see if any of this stuff is accessible to mere mortals, but I work on this kind of thing every day for web apps so if it's exposed to end-users I'll take a look when I get some time.

  9. #9
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    A lot of this stuff is exposed - however its not as simple as changing a sql query - you will also need to define how the resultant data is displayed and what that data type is and does that data type have further actions associated with it. Rulesets are zip files so you can unpack them and see what is inside. The campaign data is stored in memory and every 5 minutes written to db.xml - type /save in chat to force a write. Enjoy your descent under the hood

  10. #10
    I don't know how OO FG is. Obviously one could write a specific transform for every item, but is it possible to write a generic one that just says "if subtype has < 5 defined properties, iterate through them and add a column for each one"?

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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
  •  
STAR TREK 2d20

Log in

Log in