Re: Crazy GS Experiences on rby roms
Posted by: Torchickens
Date: 2010-05-30 07:08:06
Thanks, I'll give you info on any new discoveries!
Edit: The 01XX5DD3 acts odd in R/B. I did 0A and 0B respectively, and it inverted the world. Not even kidding. View these pictures for proof.
Thats very interesting; the data structure is slightly different in R/B, so 01XX5ED3 should have been what you may have been looking for (the same effect as 01XX5DD3 on Yellow). By using 01XX5DD3 on R/B though (01XX5CD3 has the same effect on Yellow), the function is slightly different.
I just evaluated how the game loads map data a little and I think I've found out what that code does. Say if you walk into a cave, there is a little screen transition where the colours appear to fade into a black screen and the new map location is loaded, (this may actually be essential in some cases - where the map tilesets change, I guess it is possible that you would see some NPCs changing sprites before the new map has loaded). Shortly after, there is another transition until the game sets the frame back to the default (00). This code seems to alter the default transition frame, if this is (00) the game should keep the normal palette, if this value is something other than 00 when a new map is loaded the transition will not happen, because if it did a new transition would immediately follow the slight change in palette frame in game.