HUBOL ‐ Extending the Day ⁄ Night System for All Outdoor Maps - haven1433/HexManiacAdvance GitHub Wiki
Click here for HUBOL's main page. HUBOL is short for "Haven's Unofficial Build of Leon's dynamic Pokémon expansion."
Credits: PacoScarso
Prologue
As you probably know, in HUBOL, the day/night system is implemented, but unfortunately, it only works in Pallet Town. That’s not ideal, is it?
The reason behind this is simple: the day/night system only works with Pallet Town’s secondary tileset — specifically with palette sets 8, 9, and A, and only for colors in positions 8, 9, and A.
What if you want all tilesets to support the day/night system without expanding the tileset table?
Steps
- Navigate to offset 14BE604. You'll see a pointer there (highlighted in red). This points to Pallet Town’s secondary tileset (in most cases, it will be 2D4AAC). Change that pointer to 2D4A94, which instead refers to the primary overworld tileset.
- In the blue box, you’ll find the palette set that will be affected by the night lighting. This means that 3 specific colors in that set will act as "night lights" once it gets dark.
In Paco's case, palette set 8 was chosen. Change it accordingly to the one you want to use.
- In the green box, you define the positions of the 3 colors that will act as illuminated colors during nighttime. These are usually the white or blue window lights of houses, for example.
Paco chose positions C, D, and E in the palette (because those are the index of the colors they've used for their windows). Change them accordingly to the ones you want to use.
To summarize, every color at positions C, D, and E in palette set 8 will now be treated as a light source during night transitions. Furthermore, since we changed the pointer to use the main outdoor tileset (2D4A94), this behavior will now apply to all tilesets, as long as the maps are marked as outdoor.
Warning
This will affect every tileset using said palette, so be sure to check all your maps and change their palette index.