Dicecord Project Update 5

Welcome to Update 5 of the Dicecord project. This week I was able to complete all my goals and have closed in on a release candidate. The sheet is now implemented into Dicecord, which now opens on a blank character. Continue reading

Posted in Dicecord, Python | Tagged | Leave a comment

Dicecord Project Update 4

Welcome to Update 4 of the Dicecord project. This week I was able to complete all my goals, resulting in a complete view of a one page Mage character sheet. In addition to showing all content, I incorporated tooltips on various parts of the sheet to allow for the display of additional details. Continue reading

Posted in Dicecord, Python | Tagged | Leave a comment

Dicecord Project Update 3

Welcome to Update 3 of the Dicecord project. This weekend I was unable to complete all my goals due to an injury, but I got a lot of the main work done at least. I finished off the Health widget, I made a Mana widget and I finished a class of widget that will serve as the foundation for the remaining parts of the main sheet. Continue reading

Posted in Dicecord, Python | Tagged , , | Leave a comment

Dicecord Project Update 2

Welcome to Update 2 of the Dicecord project. This weekend I completed all goals I set out in the last update. I made the Square object, added it as a rote marker, added in a derived stats section and added in a bunch of the major stats that use a larger dot. As always, the latest code can be found here. Below is an example of how the sheet looks right now. Continue reading

Posted in Dicecord, Python | Tagged , , | Leave a comment

Quick Tutorial: Python Multiprocessing

I’m going to take a break from webhooks and project updates to give a quick tutorial about multiprocessing. Multiprocessing is very useful when it comes to any sort of networking focused code and most tutorials I found dealt with just that aspect, however it can also be a great way to make code with a lot of loops faster as well as allow for client messaging during scripts with a long execution time. I decided to write a quick tutorial about those aspect to fill this apparent gap. Continue reading

Posted in Python, tutorial | Tagged , | Leave a comment

Dicecord Project Update 1

Welcome to the first project update for Dicecord. This is a diceroller/digital character sheet for use with Discord. Its UI is built in PyQt5. This goes over the Dicecord-lite version, shows a preview of the character sheet display and generally talks about how the coding experience has been. This is going to be a big update, because it is the first and it covers multiple weeks of work. Going forward I am going to try and do one of these every 1-2 weeks, just to summarise the work I’ve done and get my plans for the next weekend in order. Continue reading

Posted in Dicecord, Python | Tagged , , | 1 Comment

Using Webhooks with Python: Part 2

In this post I’m going to go over the send message to Discord webhook function from last time and add in some error handling for when we hit a rate limit. Continue reading

Posted in Python, tutorial | Tagged , , , | Leave a comment

Using Webhooks with Python: Part 1

Today I’m going to share a tutorial about how to use Discord webhooks in python. While the specific example is Discord, the tutorial will show how we can use docs and software like postman to figure out how to use webhooks in general. Continue reading

Posted in Python, tutorial | Tagged , , , | 2 Comments