Saturday, March 17, 2007

Freakin Off-By-One Error

Writing software for 27 years, and done in by the classic newbie mistake. Can't even claim bleariness, it was code I wrote when I was awake.

For potions or scrolls, there's about a 1 in 100 chance it will create a treasure with undefined stats. If you pick this treasure up, the game breaks.

-sigh-

I'm going to upload the fix; not sure what that means in regards to whether I can still call this a clean victory.

Okay, so maybe I'm rationalizing here, but... I did finish the game with seven hours to spare. And I found, fixed, and uploaded the fix in only about 90 minutes... and the challenge is still going on; the weekend isn't over. And a bug fix is different from adding features.

-sigh-

No comments: