Thursday, August 28, 2008

Yay -.-

Well, not everything can be perfect all of the time.
Sometime between this afternoon and tonight I severely broke / botched up the main drasil client AND server code to the point where trying to create a new character would cause the client to crash with some sort of unknown exception error followed by one of those 'would you like to tell microshaft about this problem' boxes.

I do however make back-ups at relatively frequent intervals and generally only when I'm confident beyond a doubt in code stability. So I just rolled back the code to where it was at 1:50pm this afternoon. Nice and stable, and actually not much is lost. I had just implimented stats for NPCs and Objects. There are some new stats for objects, such as ReqSkillLvl which is basically the level of the skill associated with the object/weapon to use the object (for example, some fancy item might be called 'God's Perfect Wood Chizzle' and require Woodworking (the skill used for chizzle) to be at least level 82 before using, or something).

Sadly though, I did lose some progress on actually going through and implimenting the stats throughout the server and client code. I do find that re-writing code a second time often leads to better, faster, more robust, more optimized code that breaks less and is more expandable and ready for the future - that is, if you were lucky enough to learn anything the first time you wrote it.

Well, I'm off to bed now though, so although much of today was wasting, not all is lost, and here's to it comming out better tommorow.