|
|
Thread Tools | Display Modes |
06-04-2023, 06:20 PM | #1 |
Join Date: May 2010
|
Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
This project is in its very early stages but today I decided to start work on writing a tool to generate custom spell charts from GCA files. Fellow programmers can find the GitHub repo here—pull requests welcome. Sample output can be found here—as you can see it needs a lot of work but then I only just started playing around with Graphviz today. Shout out to Anaraxes for recommending Graphviz to me.
__________________
Handle is a character from the Star*Drive setting (a.k.a. d20 Future), not my real name. |
06-06-2023, 06:27 AM | #2 |
Join Date: Jan 2008
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
I tried initially to use GraphViz for DFRPG spell charts but couldn't decide on a format (in the non-technical sense) that was actually readable. Everything was incredibly wide and tangly. I wound up just going with an interactive list instead (https://maxwilson.github.io/dfSpells/).
If you'd care to consume my data files you can find them at https://github.com/MaxWilson/dfSpell.../src/Spells.fs I originally hoped to be able to generate these data files automatically by parsing the PDFs but I wound up needing to do so much data cleanup by hand that I didn't even check in the parser code. Edit: on second look, I probably could have used a library to parse the PDF for me. PDF-to-data structure turns out to be a pretty common requirement in the ML world. See https://towardsdatascience.com/scrap...on-8607880c750 Last edited by sjmdw45; 06-06-2023 at 06:35 AM. |
06-06-2023, 09:35 PM | #3 | |
Join Date: May 2010
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Quote:
__________________
Handle is a character from the Star*Drive setting (a.k.a. d20 Future), not my real name. |
|
06-06-2023, 10:17 PM | #4 | |
Join Date: Jan 2008
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Quote:
I don't think you CAN break it up by college due to cross-college dependencies. Hmmm. I guess you could just show external dependencies anyway, with a dotted line border or something. Maybe it will work. I'm unsure. Last edited by sjmdw45; 06-06-2023 at 10:20 PM. |
|
06-06-2023, 10:38 PM | #5 | |
Join Date: May 2010
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Quote:
__________________
Handle is a character from the Star*Drive setting (a.k.a. d20 Future), not my real name. |
|
06-07-2023, 09:04 AM | #6 |
Join Date: Apr 2022
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Scrolling sideways past the bubble with:
"and one of (Alter Body or Alter Visage or Enlarge or Plant Form or Shapeshifting or Shrink or Body of Air or Body of Flames or Body of Ice or Body of Lightning or Body of Metal or Body of Plastic or Body of Shadow or Body of Slime or Body of Stone or Body of Water or Body of Wind or Body of Wood)" amused me quite a bit. I think this is better in simple table text form, imho... Graphs are a nice tool but I don't think at least this particular kind helped solve the problems that were intended to be solved.
__________________
If it's forbidden to say anything good about something, why believe the bad that's said about it? If it's forbidden to say anything bad about something, why believe the good that's said about it? |
06-07-2023, 10:16 AM | #7 | ||
Join Date: May 2010
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Quote:
Quote:
The thing about a graph is that if a spell has a long prerequisite chain, you can trace up the graph and get the entire chain quickly. And if a spell doesn't have a long prerequisite train, you can see that easily too.
__________________
Handle is a character from the Star*Drive setting (a.k.a. d20 Future), not my real name. |
||
06-07-2023, 10:53 AM | #8 | |
Join Date: Apr 2022
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Quote:
Following these steps: 1.) Think of spell one wants to know prereqs for 2.) Find spell in alphabetized list 3.) It has a cell that shows all prereqs (perhaps even in order ) Applied to every single spell, meaning, all spells, those that are prerequisites to others, are also listed specifically, with their own prereqs. That's a lot of data, with quite a bit of duplication (some spells share prereqs after all) but since it's not data that's used often, it should be fine to do it that way. That way it really is just those three steps. Know spell. Look it up by name. Get all the info.
__________________
If it's forbidden to say anything good about something, why believe the bad that's said about it? If it's forbidden to say anything bad about something, why believe the good that's said about it? |
|
06-07-2023, 11:12 AM | #9 | |
Join Date: Jan 2008
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Quote:
Note: the reason it can't be a simple table is because of the various OR conditions in the prereq chains. Last edited by sjmdw45; 06-07-2023 at 11:16 AM. |
|
06-07-2023, 11:21 AM | #10 | |
Join Date: Jun 2013
|
Re: Project: creating custom spell prerequisite charts (for Dungeon Fantasy, etc.)
Quote:
I don't think this format would work well for me, but then I'm not a big fan of College Magic anyway and thus am not really part of the intended audience.
__________________
GURPS Overhaul |
|
Thread Tools | |
Display Modes | |
|
|