Why does having too many rings in a level...

Discussion in 'Engineering & Reverse Engineering' started by .hack//zero, Aug 20, 2006.

Thread Status:
Not open for further replies.
  1. .hack//zero

    .hack//zero

    Member
    2,998
    0
    16
    Learning NES ASM, Finding a girlfriend.
    cause this problem?

    I don't need to know how to fix it. I just want to know what causes it, also what's the limit of the ring a level can have for this to happen?
     
  2. Rika Chou

    Rika Chou

    Tech Member
    5,254
    116
    43
    I believe it happen when you have 255 rings or more in a level.

    I am guessing it happens because the amount of rings is stored in a single byte. So FF (or 255) would be the limit.
     
  3. Tweaker

    Tweaker

    Misfit
    12,389
    1
    0
    So would it be possible to make the value a word, then? There's enough free RAM bytes to do so, if I remember correctly.

    However DHZ, as a solution you can place Ring objects in the object layout, compared to rings in the dedicated ring layout. There's no limit to the ring objects you can place. 10 ring boxes are also nice alternatives.
     
  4. .hack//zero

    .hack//zero

    Member
    2,998
    0
    16
    Learning NES ASM, Finding a girlfriend.
    I've already figured out a way to work around it. I'll remember that for the next level though.
     
  5. WiteoutKing

    WiteoutKing

    The artist formerly known as WiteoutKing Member
    1,709
    0
    0
    Worcester, MA
    Two-Bit Pictures and The D-Pad
    Sonic 2's Casino Night allowed you to get 999 Rings, though.
     
  6. .hack//zero

    .hack//zero

    Member
    2,998
    0
    16
    Learning NES ASM, Finding a girlfriend.
    I think it was because the slut machines didn't have the rings directly in the level.
     
  7. Rika Chou

    Rika Chou

    Tech Member
    5,254
    116
    43
    You can get as many rings as you want, however the number of rings actually placed in the zone cannot exceed 255.

    The rings that you get from the slot machine are created by the slot machine, and not actually placed in the zone. This is why these rings also do not count towards getting a "perfect" bonus.
     
  8. .hack//zero

    .hack//zero

    Member
    2,998
    0
    16
    Learning NES ASM, Finding a girlfriend.
    Ahh, so it was somewhat like what I thought.
     
  9. Shadow Fire

    Shadow Fire

    Ultimate victory! Member
    1,557
    0
    16
    The Land of Darkness
    Sonic: The Lost Land (Series), The GCN (site)
    XDDDDDDDDDDD

    Slut machine?! Here I was thinking it was a slot machine. Damn. I can't believe I was wrong all this time.
     
  10. drx

    drx

    mfw Researcher
    2,237
    220
    43
    :rolleyes:
    There are usually more rings on a level than 255, the level designers solved this problem by putting the first 255 rings into the ring array (seperate array of all ring objects) and the rest into the usual object array.

    This was a bit annoying when I was programming this SA2:B move thingy for Johnny :P
     
  11. Sith

    Sith

    The molotov bitch Member
    Yup, whenever exceeding the value $FF triggers sth wrong, you know what time it is.

    Resetting to zero, crashing & other unwanted stuff...


    @Hack: slut machine? Very funny typo. I totally lol'd. :lol:
     
Thread Status:
Not open for further replies.