Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ff3:ff3us:patches:madsiur:cycle [2018/10/22 11:35] madsiur [Offsets] |
ff3:ff3us:patches:madsiur:cycle [2019/02/12 12:12] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
==== Patch data ==== | ==== Patch data ==== | ||
<WRAP 600px> | <WRAP 600px> | ||
- | |Name |Day / Night Cycle (beta 1) | | + | |Name |Day / Night Cycle (beta 2) | |
|Author | |Author | ||
|Link | |Link | ||
Line 18: | Line 18: | ||
</ | </ | ||
- | ==== Offsets | + | ==== Space Used ==== |
<WRAP 600px> | <WRAP 600px> | ||
- | |$C0D613 - $C0D800 | + | |$C0D613 - $C0D63B|Previously Unused, New Code. |
- | |$EE43BD | + | |$D4F650 |
- | |$EE84BC | + | |$EEAF01 |
- | |$EE8769 | + | </ |
- | |$EE8A55 | + | |
- | |$EEAF01 | + | ==== New Free Space ==== |
+ | <WRAP 150px> | ||
+ | |$EE84BC | ||
+ | |$EE8769 | ||
+ | |$EE8A55 | ||
</ | </ | ||
==== Description ==== | ==== Description ==== | ||
Line 33: | Line 37: | ||
This is a complete day / night cycle that work everywhere you want: on regular map, on world maps and during world map events or mode 7. The battle backgrounds can also reflect the time of the day.\\ | This is a complete day / night cycle that work everywhere you want: on regular map, on world maps and during world map events or mode 7. The battle backgrounds can also reflect the time of the day.\\ | ||
- | The game goes through a day or night then will gradually switch to day or night by tinting the screen toward blue or the opposite. The day length is customizable as well as the number of color transitions, | + | The game goes through a day or night then will gradually switch to day or night by tinting the screen toward blue or the opposite. The day length is customizable as well as the number of color transitions, |
- | If you use a map on the world map, after the tent event the day will be set to the beginnign of the morning. You can check if it's daytime or nighttime in events with an unused event bit I've chosen. This event bit can also be changed if needed.\\ | + | If you use a map on the world map, after the tent event the day will be set to the beginnign of the morning. Also, if you are in a desert battle at night, the wavy effect will be disabled. You can check if it's daytime or nighttime in events with an unused event bit I've chosen. This event bit can also be changed if needed. This event bit would be useful for any change involving night time but this is out of scope for now.\\ |
Finally there is an unused event command ($69) that I now use to manage the cycle. 69 01 will freeze the cycle, meaning the timer will stop and period of the day will stay the same everywhere until 69 02 is used, which restart the timer. 69 03 disable the cycle, meaning the timer stop as well as the initial tinting everywhere. On the next map load, it will look as vanilla game. 69 04 enable the cycle meaning timer is restarted and initial tinting as well, meaning on next map load, the map will look the same as before the disable command (69 03). Note that 69 03 and 69 04 should be used right after a fade out or right before a map load. They are not meant to be used in the middle of an event because they could break the cycle and transitions.\\ | Finally there is an unused event command ($69) that I now use to manage the cycle. 69 01 will freeze the cycle, meaning the timer will stop and period of the day will stay the same everywhere until 69 02 is used, which restart the timer. 69 03 disable the cycle, meaning the timer stop as well as the initial tinting everywhere. On the next map load, it will look as vanilla game. 69 04 enable the cycle meaning timer is restarted and initial tinting as well, meaning on next map load, the map will look the same as before the disable command (69 03). Note that 69 03 and 69 04 should be used right after a fade out or right before a map load. They are not meant to be used in the middle of an event because they could break the cycle and transitions.\\ | ||
Line 64: | Line 68: | ||
; look black and blue only. On the other hand, values below 4 would | ; look black and blue only. On the other hand, values below 4 would | ||
; make nighttime and daytime look quite similar. | ; make nighttime and daytime look quite similar. | ||
- | + | ||
- | !nightBattle | + | !nightValue |
- | ; will result in a nighttime | + | ; will result in a nighttime. as an example, if setting is 5, |
- | ; | + | ; |
- | ; | + | |
</ | </ | ||
Line 91: | Line 94: | ||
</ | </ | ||
- | [[http:// | + | Regarding the above data, the hack will not consider the world maps and serpent Trench data, meaning the cycle is always enabled and unfreezable on those maps. The only exception is if the cycle is disabled by the event command, then it will reflect on world maps. When a regular map is not tintable, the timer will continue working on these map, the difference is that they will never tint. When you set a map to be freezable, the tint will freeze as well as the timer. |
+ | |||
+ | **[[http:// | ||