100 Days of Coding – Day 10

My 100 Days of Code Repository

Today once again continued with the redesign (or restructure if you will) of the Fantasy Grounds XML to PDF Project I’m working on. Yesterday, I processed a bunch of other nodes, to the point where I only have 5 nodes left, but 2 of them are biggies as far as what I think will need to be done with them (skills, and weapons)

Today, I finished those nodes. So tomorrow starts the pdf population portion!

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 9

My 100 Days of Code Repository

Today once again continued with the redesign (or restructure if you will) of the Fantasy Grounds XML to PDF Project I’m working on. Yesterday, I worked through 5 nodes needed to be processed (features, hp, initiative, inventory and languages). So that completes 27 of 44!

Today I processed a bunch of other nodes, to the point where I only have 5 nodes left, but 2 of them are biggies as far as what I think will need to be done with them (skills, and weapons)

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 8

My 100 Days of Code Repository

Today once again continued with the redesign (or restructure if you will) of the Fantasy Grounds XML to PDF Project I’m working on. Yesterday, was the redesign of defenses, encumbrance, and featlist nodes from the xml processing.

Today I worked through 5 nodes needed to be processed (features, hp, initiative, inventory and languages). So that completes 27 of 44! I was hoping to have more time to code today, but some other things came up that I needed to address… but I’m hoping I’ll get a few hours in tomorrow!

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 7

My 100 Days of Code Repository

Today once again continued with the redesign (or restructure if you will) of the Fantasy Grounds XML to PDF Project I’m working on. Yesterday, was the redesign of abilities and coins.

Today I crossed off the defenses, encumbrance, and featlist nodes from the xml processing. Which means I’ve now processed 22 of the 44 nodes to be processed – so I’m half way done with the node processing (which in turn is half the process). Once the nodes are completed, I then will begin the pushing out said information to various PDFs.

That will complete stage 1 of the process. Stage 2 (which may occur during the 100 days of coding – or may not) will be setting this program up as a web app that anyone can use to process their xml into a standard pdf.

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 6

My 100 Days of Code Repository

Today once again continued with the redesign (or restructure if you will) of the Fantasy Grounds XML to PDF Project I’m working on. Yesterday, I populated the ‘Info’ section and made some basic upgrades.

Today was the redesign of abilities – which for the record was much cleaner and simpler than the old way I had doing it. The old way had about 7 or 8 lines of code for each ability score, where as now, there is a 12 line function that handles it all. Also moved into coins as well.

Tomorrow I’m not sure what will be up – I’m going to try to get my coding in, but I also have a band gig (hence the musical part of MusicalCoder) which will take me from after work until after midnight… So Day 7 may end up being Saturday!

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 5

My 100 Days of Code Repository

First – I bet these are boring!!! I understand, but these are mainly for my to use to personally track what I did (and since tweets are so limited, it seemed easier to write about what I did here, and then tweet the web url so others can read it, if they want!)

Today continued with the redesign (or restructure if you will) of the Fantasy Grounds XML to PDF Project I’m working on. Yesterday, I finished laying out and designing the character dictionary set with all the necessary fields.

Today, I populated the ‘Info’ section. First true upgrade went in. The first time I was designing this, I skipped the Multi-class option – just giving you a “Not currently supported” if a character was multi-classed… But no more… currently, it will print the shortcut names each class the character has levels in (using either 3 or 4 letters). So happy with that.

Tomorrow will be redesigning the ability processing!

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 4

My 100 Days of Code Repository

Today I spent some time refreshing myself on Python dictionaries, and laid out a design_blank_character function, that basically builds a blank character for all the needed info, into a dictionary of dictionaries.

By doing this, I’ll be able to keep the character in memory, and print out multiple pdf pages by choice (lets say I have a pdf for the players, and a pdf for me, the DM) if I choose to do a non FG session!

Today did take me a little bit to get into the flow, but once I did, I felt good, and didn’t actually stop until after midnight! All in all, a good coding session!

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 3

My 100 Days of Code Repository

Another short blog post – still working on the same program. Started making changes to help readability of code – as well as I realized there are a couple of PDFs I could create – so I’m going to be modifying the xml pull process to store in variables, instead of loading the PDF string automatically.

But another day of coding done!!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 2

My 100 Days of Code Repository

So day 2 finds me continuing to work on this Fantasy Grounds project (continuing from Day 1). This looks like it may take a few days to code it all out (depening on how many days I put more than an hour in!)

I’m happy with myself from the standpoint that I haven’t had to look to the web too often to refresh my python skill, since I hadn’t used it much recently. I realize I’m going to have to think about what I want to do with this once its completely working… right now it’ll only work for me as I’m ‘hard’ coding certain directories and such.

I think, when I’m done with it completely, I might turn it into a web app and host it so others could use it to make their d&d stuff… maybe even ask for a contribution!

Which of course, will force me to learn how to make python web apps!!!

Onwards and Upwards!

Until tomorrow!

Never B Flat, Sometimes B Sharp, Always B Natural

100 Days of Coding – Day 1

So – the first project I’ve added to my 100 days of coding is a pdf maker! Not that type of pdf maker…

I am a geek/nerd/moniker of choice, and as such, am an avid Dungeon Master for DnD! As such, I purchased a program called Fantasy Grounds that I’ve started using to manage my campaigns. However, I’m also currently playing face to face, and as such, wanted to be able to track my players characters and print out sheets for them!

While Fantasy Grounds is great at tracking – it’s pretty lousy at print the character sheet. But, they provide an export to xml for your characters, so I decided to make a python program that will read this xml file, and make an fdf file that I can then merge into the standard DnD 5E character sheet.

I did some research, found the additional programs I need to make this happen, and have gotten started. You can check out my github page for my progress My Fantasy Grounds PDF Maker GitHub

Until tomorrow…

Never B Flat, Sometimes B Sharp, Always B Natural