DeletedUser
It's not about the amount of one or a few items. It's about the number of different items.
If there are about 200 different items in the game, you can store them as 1 byte for the item type and 1 byte for the amount on HDD. But if there is a thousand of different items, you have to use at least 2 bytes for each item type. The space needed in this case doesn't double as character record doesn't contain only items, but it significantly increases.
Assuming items won't be stored like this, it's possible we'll have this record type for each item:
equpmenttype (hat/boots/pants/etc) - color - bonus 1 - bonus 2 - bonus 3 - bonus 4 - bonus 5 - bonus 6
Just try to imagine the space needed for this.
Of course you can set the character record to be fixed. So that the whole one record looks like this:
1 - charname
2 - charclass
3 - level
4 - XP
5 - mot
6-100 - different premiums
101 - number of items of type 1 (let's take red rags for example)
102 - number of yellow rags the player has
103 - number of black rags the player has
.
.
.
76583487569324876 - number of gold guns the player has
Imagine that. Just one player's record grown to 1MB of space that contains many zeros, but who cares, let's plug another 100TB HDD into the server. If only it existed.
And you wouldn't want to limit the number of players on one world, right?
-----
I haven't seen any other browser RPG that doesn't have an inventory limit. Even singleplayer RPGs tend to have an inventory limit, those that don't have it are pretty rare or don't contain many different items.
If there are about 200 different items in the game, you can store them as 1 byte for the item type and 1 byte for the amount on HDD. But if there is a thousand of different items, you have to use at least 2 bytes for each item type. The space needed in this case doesn't double as character record doesn't contain only items, but it significantly increases.
Assuming items won't be stored like this, it's possible we'll have this record type for each item:
equpmenttype (hat/boots/pants/etc) - color - bonus 1 - bonus 2 - bonus 3 - bonus 4 - bonus 5 - bonus 6
Just try to imagine the space needed for this.
Of course you can set the character record to be fixed. So that the whole one record looks like this:
1 - charname
2 - charclass
3 - level
4 - XP
5 - mot
6-100 - different premiums
101 - number of items of type 1 (let's take red rags for example)
102 - number of yellow rags the player has
103 - number of black rags the player has
.
.
.
76583487569324876 - number of gold guns the player has
Imagine that. Just one player's record grown to 1MB of space that contains many zeros, but who cares, let's plug another 100TB HDD into the server. If only it existed.
And you wouldn't want to limit the number of players on one world, right?
-----
I haven't seen any other browser RPG that doesn't have an inventory limit. Even singleplayer RPGs tend to have an inventory limit, those that don't have it are pretty rare or don't contain many different items.
Last edited by a moderator: