Roll Over

Started by DeathCow, September 15, 2006, 01:32:22 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

You are carrying 2147 a statue of bard
You have no keys.
Wealth: 0 copper farthings
Encumbrance: 21467853/4800 - Heavy [447246%]
[HP=5191/MA=2000]:sys create 1408
Item Added
[HP=5191/MA=2000]:i
You are carrying 2148 a statue of bard
You have no keys.
Wealth: 0 copper farthings
Encumbrance: 21477852/4800 - None [-447329%]

QuoteVitoc: hmm.... see, that whole rollover thing is foreign to me, it just doesn't happen in .net

September 15, 2006, 11:39:56 AM #1 Last Edit: September 15, 2006, 11:47:33 AM by Vitoc
I smite thee!

Ok, seriously though, how long did it take you to create 2100 bard statues?? Would someone who didn't have sys powers be able to accomplish this?? The simple fact that you have sys powers allows you to do things that supercede the "rules" of the game.? If you want me to start limiting sys powers, I can do that, but it's kind of an unspoken rule that you won't abuse "bugs" if you have sys powers.? Hell, you can already create any item you want, add lives, summon mobs with ludicrously high exp (and hence achieve ludicrously high levels), and teleport anywhere.? Does a negative enc % really make much of a difference to an op?? ;)


TGS v1.0 (coming soon)

I was just noting it as something to be aware of.  And it took all of like 40 seconds.

Quote from: DeathCow on September 15, 2006, 12:06:20 PM
I was just noting it as something to be aware of.? And it took all of like 40 seconds.
It's only a matter of time before someone gains enough experience to exceed the range of an unsigned long as well (several years even at the absurd rate possible with T-rexes, but still possible.? I'm hoping by then we have new content. ;) ).? Instead of "rolling over" I believe an exception will be thrown.? This "rollover" issue you discovered must have something to do with casting instead.

I'm going to take a look at the enc % calculation when I get home, maybe I'm missing a cast, because that seems quite low of a number to be behaving in that manner.? We'll have to settle for making it as difficult to "roll over" on calculated fields as possible for ops, and completely impossible for a normal end user.

Thanks for bringing it to my attention.


TGS v1.0 (coming soon)

I think the reason it's rolling over so early Vitoc is that it would be stored as a double or a float.  From memory, most of the memory allocated to these data types is set aside for the decimal places, hence it may roll over early with an absurdly large integer portion.

Anyway, that's just my guess.
If we can hit that bulls-eye, the rest of the dominoes will fall like a house of cards.? Check-mate!

This could possible happen to a normal if you were using chests.

Quote from: The Crazy Animal on September 18, 2006, 05:31:33 PM
This could possible happen to a normal if you were using chests.
We'll probably be doing a check before giving an item from a textblock (as chests do) to make sure they have enough extra enc.  If they don't we can either poof the item or have it drop on the ground. (probably the latter)  I don't think we want to do the same check on a sys create though.


TGS v1.0 (coming soon)

Items from chests fall onto the ground, but the cash will over-encumber you.  Of course, to roll over your encumberance would require an obscene amount of coins.
If we can hit that bulls-eye, the rest of the dominoes will fall like a house of cards.? Check-mate!

not f you had say...1 str.

Silly Vitoc, you should be taking into account characters with 1 strength, and 1x10^15 experience!
If we can hit that bulls-eye, the rest of the dominoes will fall like a house of cards.? Check-mate!