Why does it do this?

_Bloody_Fox_ - Sanctuary
_Bloody_Fox_ - Sanctuary Posts: 993 Arc User
edited March 2010 in General Discussion
35l7mnm.jpg

It seems when i manufacture things my name comes out messed up.
Why does it do this? it seems to do it when i refine or upgrade something.
Facebook.com/foxi187
[SIGPIC][/SIGPIC]
Post edited by _Bloody_Fox_ - Sanctuary on

Comments

  • Accel - Raging Tide
    Accel - Raging Tide Posts: 673 Arc User
    edited March 2010
    It's because your name is too long
    You can't see me b:avoid.
  • _Bloody_Fox_ - Sanctuary
    _Bloody_Fox_ - Sanctuary Posts: 993 Arc User
    edited March 2010
    It's because your name is too long

    if thats the case then why does it work for some and not for others?
    Facebook.com/foxi187
    [SIGPIC][/SIGPIC]
  • Asterelle - Sanctuary_1381265973
    Asterelle - Sanctuary_1381265973 Posts: 7,881 Arc User
    edited March 2010
    The answer you want is technical but it basically comes down to a flaw in the software. There is an amount of space allocated by the software for reading and writing that name and an amount off space allocated for it in the database.

    The problem is that the allocations are not consistant. It may write your name but because the space it is writing to is too small some random code is corrupting part of it before it is persisted to the database.

    I can't go into more without seeing the implementation. The bug was likely introduced in localization since most chinese characters need 2 or 4 bytes per character while english characters require only 1. The logic they use is probably calculating the size of the name incorrectly.
    [SIGPIC][/SIGPIC]
    Refining Simulator - aster.ohmydays.net/pw/refiningsimulator.html (don't use IE)
    Genie Calculator - aster.ohmydays.net/pw/geniecalculator.html - (don't use IE)
    Socket Calculator - aster.ohmydays.net/pw/socketcalculator.html
  • _DarkSeph_ - Sanctuary
    _DarkSeph_ - Sanctuary Posts: 2,294 Arc User
    edited March 2010
    Couldn't resist mentioning it, but why alabaster in a magic sword? ^^;
  • Olba - Sanctuary
    Olba - Sanctuary Posts: 1,776 Arc User
    edited March 2010
    Couldn't resist mentioning it, but why alabaster in a magic sword? ^^;

    A cleric with a weapon with metal shards, not that uncommon.
    If you disregard what I say because of who I am or because of the contents of what I said, you are a fool.

    Everyone wants to be different, but when you're different you wish you were normal.
  • Devoted - Lost City
    Devoted - Lost City Posts: 3,634 Arc User
    edited March 2010
    A cleric with a weapon with metal shards, not that uncommon.

    Why not just put physical attack in it, same uselessness.
  • Delia - Harshlands
    Delia - Harshlands Posts: 227 Arc User
    edited March 2010
    A cleric with a weapon with metal shards, not that uncommon.

    But nonetheless useless.
    http://pwi-forum.perfectworld.com/showthread.php?t=645702

    Edit: Devoted beat me to it :) (I know, long delay... I had this page open but was killing a boss).
  • Michael_Dark - Lost City
    Michael_Dark - Lost City Posts: 9,091 Arc User
    edited March 2010
    It depends on where the item was created. Many items will keep a longer name, but upon refining lose it. I'm guessing name length changed somewhere along the development path after the game originally went live, and it was not fully fixed for all functions.

    A cleric with a weapon with metal shards, not that uncommon.

    Elemental shards only work for physical attack, not magical. So it's useless.
    I post in forums. This one and others. That's why I post.
  • Darksylph - Heavens Tear
    Darksylph - Heavens Tear Posts: 1,816 Arc User
    edited March 2010
    The answer you want is technical but it basically comes down to a flaw in the software. There is an amount of space allocated by the software for reading and writing that name and an amount off space allocated for it in the database.

    The problem is that the allocations are not consistant. It may write your name but because the space it is writing to is too small some random code is corrupting part of it before it is persisted to the database.

    I can't go into more without seeing the implementation. The bug was likely introduced in localization since most chinese characters need 2 or 4 bytes per character while english characters require only 1. The logic they use is probably calculating the size of the name incorrectly.

    The maximum length in the original chinese game for a name is 10 characters. However they changed it to 12 characters for PWI with english, or at least western alpha-numeric names. The problem is, when it comes to item craft, it still saves only 10 characters.

    In basic computer terms, it saves the number of characters in your name as a string array (simplistic terms), basically string[12]=_bloody_fox_, or = _, b, l, o, o, d, y, _, f, o, x, _ as the 12 values. Unfortunately the game later comes in & only allows for 10 characters and puts some new random stuff starting at the 11th value, something entirely different. So When you 1st make the item, you'll actually see all 12 letters, but log off or let time pass and eventually (pretty soon) the final 2 values in the string are overwritten with some other random values.

    Not sure how much of it makes sense, since it a little more complicated that that, dealing with pointers in memory. But in the end it boils down to, the max length of name characters it saves is 10, even tho it still knows your name is 12 long. The final letters are replaced with random junk. Anyone with a name 10 characters or less in length wont see end corruption.
  • volst
    volst Posts: 180
    edited March 2010
    From what I can tell, it's more about the the name of the item itself.

    Short name = cuts name
    Matching(kinda) name = nothing
    Too long = messed up characters
  • grayadidas
    grayadidas Posts: 17 Arc User
    edited March 2010
    I think it's 9 character, not 10?

    on other version, I only can make 9 character nickname..
  • Darksylph - Heavens Tear
    Darksylph - Heavens Tear Posts: 1,816 Arc User
    edited March 2010
    grayadidas wrote: »
    I think it's 9 character, not 10?

    on other version, I only can make 9 character nickname..

    It's 10. At one point, about half a year ago, another 10 character bug slipped into the mail system. Anyone with a name longer then 10 characters couldnt get mail cause you couldnt put their name into the recipient box. Luckily that only took a week to be patched. But things like this occasionally creep in due to the original developed China version being 10 character names & PWI being 12 characters.