Golden Sun Hacking Community

Golden Sun Games => Golden Sun: The Lost Age => Topic started by: Daddy Poi's Oily Gorillas on 28, August, 2017, 06:25:43 PM

Title: OOB Tile replacement - Air's Rock
Post by: Daddy Poi's Oily Gorillas on 28, August, 2017, 06:25:43 PM
Similar to Tret (http://forum.goldensunhacking.net/index.php?topic=2836.0), GS2 also has some stuff that'll replace the tile at the player's coordinates. When out of bounds, this could edit other things. (It might get complicated, though.)

I haven't yet found a successfully exploitation result yet... (My assumption is it might only be good for TAS if there is something?)

There's one big thing to note, though... if you get off the tile that gets edited, it gets changed back to what it was.

Tiles are stored/grabbed from here:
02019118 = Approximate section for tiles grabbed.
02019124 = The tile gets stored here so it can change to whatever's here when you get off the tile.

Event ids to look at:
0x50 = 0000019C, 000001A8
0x51 = 0000019C, 000001A? ; ???
0x52 = 0000019C, 000001A? ; ???
0x53 = 0000019C, 000001A? ; ???

0x5A is also another, but it wasn't listed in the Retreat Map's event list. (Map 85 was what I was looking at.)


Tiles that are edited:...
Look at the pointer at 020301A4.
[020301A4]+0x8000 for the first tile to be changed.
[020301A4]+0x8200 for the second tile to be changed.

If OOB to the north -=0x200
If OOB to the west -=0x4
Title: Re: OOB Tile replacement - Air's Rock
Post by: Plexa on 28, August, 2017, 10:06:44 PM
1) If there were a way to find a credits warp, of course its in Airs Rock.

2) This is unrelated to the sprite table being filled up after a retreat warp, correct?
Title: Re: OOB Tile replacement - Air's Rock
Post by: Daddy Poi's Oily Gorillas on 30, August, 2017, 12:54:59 AM
Well, of course! Before this topic, I kinda was messing with Walk-through-walls feature... and noticed something strange about how tiles are set... when getting off tiles/going to another unreachable location... so then that's when I looked into what was going on...
That of course, was originally in a room Retreat doesn't work, so I looked at a Retreat map a bit later to notice this thing...

---
Correct, I think... as I don't think this has anything to do with sprites.... just tilemap/map code?