Drennthew

Veran Warp crash avoision

Aug 21st, 2017
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. This text assumes that the veran warp setup with the red ring is used; that is, you move to x-position $7a, select the tile to get the red ring, close the map, move left, open the map, select the tile twice, then veran spawns.
  2.  
  3. When performing veran warp, it appears that the one factor we're not consistently accounting for is the time between pauses. Here's the thing: it looks like the "animations" have a pretty severe effect on veran warp. This consists of water, flower, whirlpool, etc. animations. Even though there are no such tiles on the screen, the animations are still happening behind the scenes.
  4.  
  5. The good news is that animations reset when a menu is closed. So, as long as a consistent number of frames pass between closing and reopening the map menu, the crashes should be preventable. On Zmaster's file, there seems to be a 4-pixel-wide area near the center of the screen where it will never crash, as long as you hold left the moment you close the map, and you pause again without stopping. This range was a bit different on another file, though, which was more "normal" (not a speedrun file).
  6.  
  7. There are actually two 4-pixel windows, one from x-positions $49-$4c and one from $4e-$51. Or, you can think of it as a 9-pixel window where the middle pixel crashes.
  8.  
  9. These images illustrate range $4e-$51:
  10.  
  11. Pixel $4e: https://imgur.com/rBS0sf2l.png
  12. Pixel $51: https://imgur.com/eWVCPNDl.png
  13.  
  14.  
  15. Here is a list of tested X-positions. To clarify, it's not the X-positions themselves that are inherently good or bad (in fact, probably all of these work with veran warp); however, if you start from the red ring spot (pixel $7a) and hold directly left from the first frame you gain control, and pause without letting go of left, then these x-values appear to either crash or not crash consistently.
  16.  
  17. 46 - softlock
  18. 47 - softlock
  19. 48 - softlock
  20. 49
  21. 4a
  22. 4b
  23. 4c
  24. 4d - crash (writes to $e00b)
  25. 4e
  26. 4f
  27. 50
  28. 51
  29. 52 - crash
  30. 53 - crash
  31. 54 - crash (after closing map)
  32. 55 - crash (writes to $e00b)
  33. 56 - crash (writes to $e00b)
  34. 57
  35. 58 - crash
  36. 5a - crash
  37. 5d - crash
  38.  
  39. You can see link's current x-position in address $ff8d (assuming link is the only object on-screen).
  40.  
  41. ==========================================
  42. Other notes
  43. ==========================================
  44.  
  45. According to my theory, it doesn't matter how long you spend on the map screen. The results are, in fact, determined the moment you open the map, not the moment you press A. This hasn't been fully verified.
Add Comment
Please, Sign In to add comment