SHARE
TWEET

Untitled

a guest May 22nd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---Player Data Class--
  2. These are stored in an array of 4 items.
  3.  
  4. Array root address is expected to be $FF5758 (Not 100% confirmed but seems likely based on where this address is referenced in the disasm i.e. (StartGame) ).
  5.  
  6. sizeof = 76 ($4C) bytes -    This was worked out based on the spacing of the "score" attribute on each player. Each one spaced at exactly 76 bytes between them.
  7.                              Unfortunately does not confirm the start/end address of each instance
  8.  
  9. PlayerDataInstance:     ; Offsets shown worked out relative to $FF5758 for Player 1. Add $4C bytes for Player 2 etc.
  10.  
  11. 00  ???
  12. 01  ???
  13. 02  ???
  14. 03  ???
  15. 04  ====================|
  16. 05  Score               | unsigned long
  17. 06                      |
  18. 07  ====================|
  19. 08  ???
  20. 09  ???
  21. 0A  ???
  22. 0B  ???
  23. 0C  Camera  Flags?======| unsigned byte     ; 0 Following Player Pinball, 1 - Following Player Walking, 5 - Camera is offset because player is looking up or down. Player is grabbing ledge., 6 - Inside steam launcher (Lava Powerhouse), 8 - Flicks into this when player is spindashing
  24. 0D  Character State?====| unsigned byte     ; 0 Pinball Physics, 1 - Walking (Includes acid barrel rowing), 2 - Looking Up, 3 - Crouching, 4 - Spin Dash Charging, 5 - Braking/Sliding/Slowdown, 7 - Ledge Grabbing, 9 - Walking/Running, 10 - Pre-jump crouch/Launch Up Anim (No Horizontal controls), 12 - Balancing on Ledge, 14 - I'm Waiting, 15 - Laying Down, 17 - Got Emerald
  25. 0E  X Pos #1            | unsigned word
  26. 0F  ====================|
  27. 10  X Sub Pos #1        | unsigned word
  28. 11  ====================|
  29. 12  Y Pos #1            | unsigned word
  30. 13  ====================|
  31. 14  Y Sub Pos #1        | unsigned word
  32. 15  ====================|
  33. 16  X Pos #2            | unsigned word
  34. 17  ====================|
  35. 18  X Sub Pos #2        | unsigned word
  36. 19  ====================|
  37. 1A  Y Pos #2            | unsigned word
  38. 1B  ====================|
  39. 1C  Y Sub Pos #2        | unsigned word
  40. 1D  ====================|
  41. 1E  X Velocity          | signed word
  42. 1F  ====================|
  43. 20  X Sub Velocity      | signed word
  44. 21  ====================|
  45. 22  Y Velocity          | signed word
  46. 23  ====================|
  47. 24  Y Sub Velocity      | signed word
  48. 25  ====================|
  49. 26  X Pos #3            | unsigned word
  50. 27  ====================|
  51. 28  Y Pos #3            | unsigned word
  52. 29  ====================|
  53. 2A  ???
  54. 2B  Speed               | unsigned word
  55. 2C  ====================|
  56. 2D  Sub Speed           | unsigned word
  57. 2E  ====================|
  58. 2F  Direction           | unsigned word
  59. 30  ====================|
  60. 31  ???
  61. 32  ???
  62. 33  ====================|
  63. 34  Emerald #1          | unsigned long     ; Simply filling emerald resume data in with anything > 0 seems to work i.e. $00000001.
  64. 35  Resume Data         |                   ; Centre Emerald Toxic Caves:       $00FF852E   ; Centre Emerald The Machine:       $00FF83B8
  65. 36  ====================|                   ; Centre Emerald Lava Powerhouse:   $00FF9386   ; Inner Right Emerald Showdown:     $00FF885E
  66. 37  ====================|
  67. 38  Emerald #2          | unsigned long
  68. 39  Resume Data         |                   ; Left Emerald Toxic Caves is:      $00FF8550   ; Upper Left Emerald The Machine:   $00FF8396
  69. 3A  ====================|                   ; Left Emerald Lava Powerhouse:     $00FF93A8   ; Outer Right Emerald Showdown:     $00FF8880
  70. 3B  ====================|
  71. 3C  Emerald #3          | unsigned long
  72. 3D  Resume Data         |                   ; Right Emerald Toxic Caves:        $00FF8572   ; Upper Right Emerald The Machine:  $00FF83B8
  73. 3E  ====================|                   ; Right Emerald Lava Powerhouse:    $00FF93CA   ; Centre Emerald Showdown:          $00FF88E2
  74. 3F  ====================|
  75. 40  Emerald #4          | unsigned long    
  76. 41  Resume Data         |                   ;-------------------------------------------    ; Lower Right Emerald The Machine:  $00FF83DA
  77. 42  ====================|                   ;-------------------------------------------    ; Inner Left Emerald Showdown:      $00FF883C
  78. 43  ====================|                  
  79. 44  Emerald #5          | unsigned long    
  80. 45  Resume Data         |                   ;-------------------------------------------    ; Lower Right Emerald The Machine:  $00FF83FC
  81. 46  ====================|                   ;-------------------------------------------    ; Outer Left Emerald Showdown:      $00FF881A
  82. 47  Lives===============| unsigned byte
  83. 48  Emeralds Collected==| unsigned byte
  84. 49  Rings Collected=====| unsigned byte
  85. 4A  Extra Balls=========| unsigned byte
  86. 4B  ???
  87. (4C) Next Player
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top