Results 1 to 10 of 68

Hybrid View

  1. #1
    Player
    Iscah's Avatar
    Join Date
    Nov 2017
    Posts
    14,136
    Character
    Aurelie Moonsong
    World
    Bismarck
    Main Class
    Red Mage Lv 100
    Quote Originally Posted by tdb View Post
    A really hacky way to implement blizzard-like transmog system: keep the glamour dresser, but remove the ability to put in or remove items, and make its capacity "infinite". Whenever the player acquires an item, place a copy of it in the glamour dresser if it doesn't exist there already. It's really crude and not efficient at all, but should require minimal changes to code.
    I think the problem is that it still needs to handle the things in the dresser as "physical items" and so needs to allocate a certain amount of spaces for them. Making it "infinite" would require them to potentially store every single item in the game and allocate space for that, which apparently they can't do - which comes back to exactly why dresser space is limited in the first place.
    (1)

  2. #2
    Player
    tdb's Avatar
    Join Date
    Jun 2017
    Posts
    859
    Character
    Mikayla Rainstone
    World
    Lich
    Main Class
    White Mage Lv 80
    Quote Originally Posted by Iscah View Post
    I think the problem is that it still needs to handle the things in the dresser as "physical items" and so needs to allocate a certain amount of spaces for them. Making it "infinite" would require them to potentially store every single item in the game and allocate space for that, which apparently they can't do - which comes back to exactly why dresser space is limited in the first place.
    Yeah. A more efficient approach would be to use a bitmask, reducing storage requirements significantly. SE seems to be using 40-bit item IDs, so a bitmask would only require 2.5% of a fully-populated list of IDs. Of course the IDs are not contiguous so there would need to be a mapping from item ID to bitmask index, but that's constant data. Potentially the savings could be even more depending on how the player/item associations would otherwise be stored. A database row with character ID, item ID and internal bookkeeping data could take 136 bits or more. But all that requires the data to be structured differently, so it would take more effort to implement.

    Edit: I did some quick calculations. With 100 million characters each having 10000 unlocked glamour items and each item taking 20 bytes of storage, the grand total comes out to 20 terabytes. Sure, it's a good chunk of data, but not that much in the grand scheme of things. It's about the size of the largest hard drives currently available.
    (0)
    Last edited by tdb; 01-08-2021 at 12:29 AM.