Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

The Dawn Crusade: my mmorpg journey and sleepless days of unit testing

Warm Welcome, brave adventurers and fellow dev warriors!

I've just completed what can only be described as the most daunting battle in The Dawn Crusade's development history. I present to you all 933 battle-tested units standing in formation, ready to defend our realm against the darkest of fiends, the Bug Horde.

The Crusade begins

What should of been a simple "let's make sure our dice work" ran full tilt into a war against chaos(my decisions). Yet, I drew from the realm a noble testing framework, wielding the TestFramework.cs sword and UnitTestRunner.cs shield, marched across the eleven realms of TDC's  codebase:

The Realm of Character stats(38 Tests)

My first test was We storming the calculations, this ancient dragon has slain countless both on the motherboard and table. A dreaded "Strength 1 = -5 modifier" what would you call it?  The test now allow even that most timid of adventures or companions to get a fair (probably terrible) roll.

*"In the sour darkness of ability score calculations, there is only floor division!"* - Ancient Testing Wizard... I cast fireball!

The Dice Realm(262 Tests! RNGJESUS)

I promise you, after over 20 years of playing D&D and an worldbuild as a DM. This was the worst set of dice, that I have ever owned, they were secretly plotting agaisnt me, I carved out 262 tests! I ran them over 10k times to ensure that . Every d4, d6, d8, d10, d12, d20, and d100 has been interrogated, tested, and bless as "Random enough". Does that mean they wont betray you, it in fact means nothing

However, the diceroller, now knows that it must behave or else, I will stress it out just like it did to me. 

Companion Realm (61 Tests)

Our companion AI tried to achieve sentience, but we showed them who's boss with 61 comprehensive tests! Each of the 10 companion classes now knows their place:

- Warriors charge when told to charge

- Rangers shoot things that need shooting  

- Necromancers raise minions (but not too many! or do they?)

- Assassins... well, they're very good at being sneaky ( I lost track of them)

ready set: goals, actions, plans! 

Loot realm: inventory be blessed (44 Tests)

You ever dump your bag inside out! Every single slot, touched every stack, counted every piece of gold. It has all been poked, prodded, and stress-tested.  There is no hiding in the inventory, I got OCD and vacation hours (albeit alot less after this binge"

random kernel of knowledge: the currency system automatically converts 100 gold into 1 platinum, because apparently even fantasy economies need  accounting!

The Audio Realm (46 Tests)

I am not a music guy but my brother is, and I had to ask him questions about things I didnt even know existed, you should of seen him using the sword and shield: the TDC AudioManager now fades music like a professional DJ (which my brother was at one point for weddings) and plops sounds in 3D space with mathematical precision(you thought games only counted loot and money). The days of a tired bard, stopping the good times randomly are now long gone

Network realm: rngjesus lays down the rules here(49 Tests)

So, multiplayer is a fight that always goes sidewarys, but i kept it simple for now mainly for development and because I dont need the full scale system yet but still RPC validation, player synchronization tests, and network interpolation  were not to bad in godot. Though to bring this up is a storm waiting to happen. 

Bard realm: who goes there, can you kill 18 slimes (64 Tests)

the dialogue system now supports 18 different effects,  maybe  give the player a cursed sword through conversation? Do want to change their reputation with the Cheese Guild(bad or good idea you let me know)?  How about trying to start a quest about finding the legendary Pizza of Power(papa johns or dominoes)? 

The end: I need a shower, sleep and I think I'm made of 70% dr. pepper at this point

TBC test now covers

933 tests, all passings and error checks in under 45 seconds across 11 realms and for now there is no tolerating bugs.

Every spell to be cast, every sword to be swung, every conversation, and every item to be looted will happen, for in TDC adventurer will be had.

Next on the TDC,

the wizard takes a bath, the maiden demands snackies, and vaction hours dwindle!

Though magic ensures monsters respond, it doesn't cover bugs! 

p.s follow along and see what posts drop next!

p.p.s I don't have any art yet, so I did use chatgpt for the banner.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.