Advertisement
abitalive

Summary of recent SM64 codes for testing

Jan 18th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. These codes now at https://sites.google.com/site/sm64gameshark/
  2.  
  3. ------------------------------------------------------------
  4.  
  5. Please test the following and provide feedback! All of this seems to work but some codes might end up causing problems we haven't noticed yet. If you've run these codes for a while and feel like they're not causing any issues, please let me know. Once I have enough feedback I'll update the Google site.
  6.  
  7.  
  8. Fixing the Slide Timer
  9.  
  10. The current timer code starts ticking when you enter the slide level and doesn't reset when you start the actual slide, making it difficult to determine your proper slide time and impossible to complete in under 21 seconds. There's at least two ways to fix this and return the slide timer to its normal behavior. The first option is to patch out the check completely with this line:
  11. US 8125073C 2400
  12. JP 81250564 2400
  13.  
  14. The second option is to use the "Show Timer in Castle" code from the Google site and remove this line from your existing timer code:
  15. US 8024B197 0040
  16. JP 8024B017 0040
  17.  
  18.  
  19. Fixing the Level Reset Camera
  20.  
  21. If you Level Reset while swimming, flying, in a cannon, etc. you'll end up back in the level with a bad camera. This happens because the camera state is retained during the level reset and not set back to default. The following code hijacks an existing game function and forces the camera back to default whenever you enter a level/sublevel/warp which fixes this behavior but may break cameras elsewhere:
  22. US D233B249 001D
  23. US 812872DA 0001
  24. US D033B249 001D
  25. US 812872DA 0000
  26. JP D2339ED9 001D
  27. JP 81286D2A 0001
  28. JP D0339ED9 001D
  29. JP 81286D2A 0000
  30. Code updated to fix initial camera in Wing Cap stage.
  31.  
  32.  
  33. Fixing the Savestate Star-Grab Camera Issue
  34.  
  35. Collecting a star and then reloading state with the current savestate code leaves you with a bad camera. This happens because the star-grab puts Mario in a new camera state which isn't backed up in the savestate. One way to work around this is to use the non-stop code but it causes issues with 100 coin stars among other things. Another option is to use the following code which simply disables the star-grab camera, though it may break cameras elsewhere:
  36. US 8128C250 A3A0
  37. JP 8128BC50 A3A0
  38.  
  39. One more option is to use this modified savestate code, it'll reset the "special camera" value back to 00 every time you load state.
  40.  
  41. The root of the problems is a "special camera" byte which isn't backed up in the savestate. This byte is usually 00 but temporarily changes to a different value to trigger certain special cameras like star-grab, death and doors. The result is that this special camera is retained when you grab a star/die/etc then reload state.
  42.  
  43. Rather than patching functions to disable each problematic camera we could instead modify the savestate code. Backing up and restoring the special camera byte would increase the code length by about 15-20 lines, but simply resetting the byte to 00 while loading states only takes 4 extra lines.
  44.  
  45. This'll likely be a preferable solution since it fixes not just the star-grab but other cameras too, while still retaining the proper camera transitions during normal play.
  46.  
  47. US
  48. 812CB1C0 03E0
  49. 812CB1C2 1025
  50. 812CB1C4 3C08
  51. 812CB1C6 8033
  52. 812CB1C8 3C09
  53. 812CB1CA 8036
  54. 812CB1CC 3C0A
  55. 812CB1CE 8042
  56. 812CB1D0 3C0B
  57. 812CB1D2 8034
  58. 812CB1D4 8578
  59. 812CB1D6 AFA0
  60. 812CB1D8 340F
  61. 812CB1DA 1000 <- Save Button
  62. 812CB1DC 030F
  63. 812CB1DE C824
  64. 812CB1E0 3C04
  65. 812CB1E2 8040
  66. 812CB1E4 3545
  67. 812CB1E6 6B28
  68. 812CB1E8 132F
  69. 812CB1EA 000C
  70. 812CB1EC 3506
  71. 812CB1EE B170
  72. 812CB1F0 340F
  73. 812CB1F2 000F <- Load Button
  74. 812CB1F4 030F
  75. 812CB1F6 C824
  76. 812CB1F8 3504
  77. 812CB1FA B170
  78. 812CB1FC 3525
  79. 812CB1FE 1C98
  80. 812CB200 172F
  81. 812CB202 000B
  82. 812CB204 3C06
  83. 812CB206 8040
  84. 812CB208 8D4C
  85. 812CB20A 5FE8
  86. 812CB20C 8D2D
  87. 812CB20E 1158
  88. 812CB210 15AC
  89. 812CB212 0007
  90. 812CB214 8D6E
  91. 812CB216 CBD0
  92. 812CB218 A1C0
  93. 812CB21A 0030
  94. 812CB21C 8CC7
  95. 812CB21E 0000
  96. 812CB220 AC87
  97. 812CB222 0000
  98. 812CB224 2484
  99. 812CB226 0004
  100. 812CB228 14A4
  101. 812CB22A FFFC
  102. 812CB22C 24C6
  103. 812CB22E 0004
  104. 812CB230 0040
  105. 812CB232 0008
  106. 812CB234 2400
  107.  
  108. JP
  109. 812CA6E0 03E0
  110. 812CA6E2 1025
  111. 812CA6E4 3C08
  112. 812CA6E6 8033
  113. 812CA6E8 3C09
  114. 812CA6EA 8036
  115. 812CA6EC 3C0A
  116. 812CA6EE 8042
  117. 812CA6F0 3C0B
  118. 812CA6F2 8034
  119. 812CA6F4 8578
  120. 812CA6F6 9C30
  121. 812CA6F8 340F
  122. 812CA6FA 1000 <- Save Button
  123. 812CA6FC 030F
  124. 812CA6FE C824
  125. 812CA700 3C04
  126. 812CA702 8040
  127. 812CA704 3545
  128. 812CA706 6B28
  129. 812CA708 132F
  130. 812CA70A 000C
  131. 812CA70C 3506
  132. 812CA70E 9E00
  133. 812CA710 340F
  134. 812CA712 000F <- Load Button
  135. 812CA714 030F
  136. 812CA716 C824
  137. 812CA718 3504
  138. 812CA71A 9E00
  139. 812CA71C 3525
  140. 812CA71E 0928
  141. 812CA720 172F
  142. 812CA722 000B
  143. 812CA724 3C06
  144. 812CA726 8040
  145. 812CA728 8D4C
  146. 812CA72A 5FE8
  147. 812CA72C 8D2D
  148. 812CA72E FDE8
  149. 812CA730 15AC
  150. 812CA732 0007
  151. 812CA734 8D6E
  152. 812CA736 B860
  153. 812CA738 A1C0
  154. 812CA73A 0030
  155. 812CA73C 8CC7
  156. 812CA73E 0000
  157. 812CA740 AC87
  158. 812CA742 0000
  159. 812CA744 2484
  160. 812CA746 0004
  161. 812CA748 14A4
  162. 812CA74A FFFC
  163. 812CA74C 24C6
  164. 812CA74E 0004
  165. 812CA750 0040
  166. 812CA752 0008
  167. 812CA754 2400
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement