1. I have corrected the e-mail settings so that outgoing e-mails from these forums should be sent now. If you tried to Register or Reset your Password, please try again!
    Dismiss Notice

character 425202218746 and achievement_list oddities

Discussion in 'Census: General Discussion' started by Quicktiger, Feb 9, 2012.

  1. Quicktiger

    Quicktiger Guest

    I don't know if this is a data conversion issue or a defect in the generation code, but this character (and a handful of others I don't have a list of) seem to have an odd achievement_list structure.

    In the normal case, achievement_list is an array of achievements, but for these characters, achievement_list is a hash with one member, called "achievements", which then contains the expected array.

    This is, to say the least, strange.

     
  2. DanKinney

    DanKinney Guest

    Any object that is a list container (follows the _list convention) must be a simple container.  It may not have any attributes on it.

    Achievements do have top-level attributes that would normally go on the _list container, which would violate this convention.  In those cases, there is a container (achievements in this example) that holds those attributes, along with the _list of objects.

    While this looks odd, it is the most consistent way to model the data so that it can be consistent.

    -dan

     
  3. Quicktiger

    Quicktiger Guest

    Hmm, I don't think I was clear.

    The structure looks like this (in pseudo-yaml) usually:

    achievements:

      total: 12345

      points: 4512

      achievement_list:

        - { line item here }

        - { line item here }

    The broken characters have this structure, with the oddity indicated in bold:

    achievements:

      total: 12345

      points: 4512

      achievement_list:

        achievements:

          - { line item here }

          - { line item here }




     
  4. DanKinney

    DanKinney Guest

    Yeah...that's wrong.  <img src="/smilies/9d71f0541cff0a302a0309c5079e8dee.gif" border="0" alt="SMILEY" />

    -dan

     

Share This Page