Advertisement
ChrisIsAwesome

TP: Golden Wolf Storage

Mar 9th, 2022 (edited)
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. Glitch found by Zac (https://www.youtube.com/watch?v=lIqrX_CR75I | https://discord.com/channels/83003360625557504/354966434243280896/950987370122076190)
  2.  
  3. Explanation:
  4. When you enter the Hero's Shade realm, the game stores which wolf you entered from, with an exception being the North Faron one. Upon exiting the Hero's Shade realm, you return to the stored wolf spawn location. However, the game uses 6 flags to know which wolf you entered from, and if these flags are swapped around, you can exit to different wolves, essentially "wrong warping."
  5.  
  6. Technical:
  7. Within the temp region of memory, Golden Wolves use 2 addresses: 80406FA2 and 80406FA3 to store which wolf you entered from, and it uses these values to know which location to take you to upon exiting the Hero's Shade realm. When values are written to these addresses, they set certain flags that normally get cleared when exiting the wolf.
  8.  
  9. Each wolf address, hexadecimal value, and which flag it sets:
  10.  
  11. ADDRESS | WOLF | Hex | Flag
  12. 80406FA2 | Ordon Spring | 0x04 | 0xa04
  13. 80406FA2 | West CT | 0x02 | 0xa02
  14. 80406FA2 | South CT | 0x01 | 0xa01
  15. 80406FA3 | Desert | 0x80 | 0x0b80
  16. 80406FA3 | Kak Graveyard | 0x40 | 0x0b40
  17. 80406FA3 | North CT | 0x20 | 0x0b20
  18. 80406FA3 | North Faron* | --- | ---
  19.  
  20. *North Faron wolf is hardcoded to spawn you at North Faron, so it doesn't use either address. But its spawn location can be accessed from other wolves within the 80406FA3 address by having a value below 0x20 when exiting.
  21.  
  22. When you enter a wolf, it will always set its associated flag if it isn't already set, and will clear its flag on exit. But if you have other flags set upon entering, you can change the exit. For example, if you were to enter Kak graveyard wolf with a value of 0x80 (flag 128), entering the wolf would add 0x40 (flag 64). Since flag 128 remains set, exiting wolf will use the higher number to determine which flag it cares about. In this case, exiting will clear flag 64, but use flag 128 to spawn you at desert, and doesn't clear this flag either.
  23.  
  24. If you exit a wolf without having its flag set (eg. exit Kak graveyard wolf without flag 64 being set) (note: this is only possible with hacks), it will jump to the other GWS address for where to exit. As an example, if you somehow cleared South CT wolf's flag 1 while in the Hero's Shade realm, and 80406FA3 has a value of 0x20 (flag 32) set, exiting South CT wolf would take you to North CT exit.
  25.  
  26. More technical mumbo jumbo: https://discordapp.com/channels/955542723782389820/955543849529409606/1063855281538338826 (TP devs server)
  27.  
  28. Additional notes:
  29. - GWS addresses are reused through various events, some of which are documented here, but there may be more:
  30. - Talking to Fado for goats 1 prompt sets 80406FA2 => 0x10 (flag 16)
  31. - Entering Link's house after goats 1 sets 80406FA3 => 0x04 (flag 4)
  32. - Cutscenes that clear TD do not clear GWS
  33. - Savewarping & BiT clear GWS
  34. - The flags for addresses are: 1, 2, 4, 8, 16, 32, 64, 128. Flags 8 and 16 are unused for golden wolves
  35. - Getting Ending Blow from any wolf doesn't clear the wolf's flags. So for example, getting Ending Blow from Ordon Spring wolf will keep 0x04 set instead of clearing it on exit as normal.
  36.  
  37. TP being TP again:
  38. Notice that North CT is the lowest priority for wolves in the 80406FA3 address. Because of that, it will never be possible to use GWS to do EHC, as any flag set on 80406FA3 will be of a higher priority, resulting in exiting to a different wolf.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement