Things you don't expect - Invincibility

My small RPG Darkness Springs is now running for several months, but last week, something unexpected happened: A user claimed that he wasn't able to die. That he was invincible. Interesting.

Curiously, I took a look at this, and the user was right. When I let a group of monsters attack his character, nothing happened. He simply didn't die. He also wasn't able to use health potions, but he didn't need them anyway. :)
Strange. After some examination, I found the problem: The user had managed to get his character to have 128 points of health. For Darkness Springs, this is quite a lot, actually nobody ever trained his character until this value before. Everything was fine, but when the user closed the game and started it again later, this value turned into -127, and the described symptoms manifested.

Of course, this was a bad server side programming error (typical value overflow, and it's my fault), but hey, 128 points of health? Who could have expected this :)

nine comments, already:

At least there are people who take your game seriously
The Onslaught - 03 11 08 - 19:52

“At least there are people who take your game seriously” ...Things you don’t expect :D
Matthias - 03 11 08 - 20:03

I’d award him for his honesty. Not everyone would tell the GM, in this case Game-Creator that he’s in God-Mode and cheat his way up..
MasterGod () (link) - 03 11 08 - 22:06

You really seem to love signed values :-P
hybrid - 03 11 08 - 22:52

This is right up there together with “64K of memory should be enough for everybody” :D
Tazo - 03 11 08 - 22:58

Hahaha, ‘When I let some monsters attack him’, I created a mental image of you scheming against a helpless user, a 999Lv monserts vs a 10lvl character like scenario XD

Anyway, why’d you use 1 byte to store health points… and, why signed values ?_? interesting story.
trunks14 () (link) - 04 11 08 - 04:25

That’s why I usually avoid micro-optimizing size of variables (unless you are really limited like in a NDS)... it usually comes back and bites you in the ass! :D
Julio Gorgé () - 04 11 08 - 18:06

doesnt flash (or was it java) not have unsigned values. Hahah this is the downfall of those languages i tell you
DrHalan - 08 11 08 - 19:14

ActionScript 3 has uint.
rip () - 09 11 08 - 13:38


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.