STAR TREK 2d20
  1. #1

    4E Data File for Powers/Feats/etc...

    So I scraped my data, but there is no txt for that selection. I have my Class and Race files in there, but what do I select for Data File?

    Thanks

  2. #2
    Zeus's Avatar
    Join Date
    Mar 2009
    Location
    Olympus
    Posts
    2,658
    Blog Entries
    2
    What module are you attempting to scrape and parse?

    Generally for powers, the scrape function produces a file called powers.txt.
    FG Project Development
    Next Project(s)*: Starfinder v1.2 Starship Combat

    Current Project:
    Starfinder v1.1 - Character Starships
    Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
    * All fluid by nature and therefore subject to change.

  3. #3
    oops, 4E Player's Handbook (1). There is a line in the parser that calls for "Data File". Everything else has a corresponding file, but there is no Data.txt or anything similar.

  4. #4
    As DrZeuss has mentioned, the data file is called powers.txt -- because it's data for powers and such.

  5. #5
    Ah... duh. The fact there as Class.txt, Race.txt, etc... and they correspond to what's listed exactly I overlooked powers.txt. Even with the mentioning. Thanks guys! Sorry to be so dense.

  6. #6
    Hardly dense. It's an easy enough mistake to make if you don't understand what's going on behind the scenes.

    If you're curious, the basic idea is that the parser uses all three files (powers.txt, class.txt, and race.txt) to parse powers from. The powers.txt file contains the data on the powers themselves (as well as feats, class features, racial traits, and so on), but in order to know what classes, races and so on the powers and features belong to, it needs to pull that information from the other two files.

    I'm sure someone else can explain it better. This is just what I've figured out from playing around with the parser for a while.

    If you can really get a hang on the parser and the expected format of the parsed files, you can do some very nice things with them, such as adding additional reference information on classes (like non-power class features) and races (like racial ability and skill bonuses) that the parser is not able to collect on its own via scraping, or you can even create your own modules for referencing your own homebrew feats/powers/etc. much more easily than you could using straight XML.

    I'm probably rambling at this point, but I just think it's a really awesome utility.

  7. #7
    Wow, thanks man. That really does help, and I plan to dig deeper at some point. It's my MO to flail about blindly about until i keep hitting the same things, then stop after some random number of times to see just what the heck is the issue.

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
  •  
DICE PACKS BUNDLE

Log in

Log in