Skip to content

Bit-perfect Silver Version differences implemented#131

Open
MDTravisYT wants to merge 17 commits intopret:masterfrom
MDTravisYT:master
Open

Bit-perfect Silver Version differences implemented#131
MDTravisYT wants to merge 17 commits intopret:masterfrom
MDTravisYT:master

Conversation

@MDTravisYT
Copy link
Copy Markdown
Contributor

@MDTravisYT MDTravisYT commented Apr 3, 2026

If the ROM is compiled with the SILVER flag defined (code actually checks if not GOLD, so it really can be anything), it now produces a near bit-perfect output of Silver Version, as long as a silver-debug ROM is provided. I say near-bit perfect as it only differs in the header, which I'm not sure how to change.
I'm also not sure how to adjust the Makefile so both versions can compile independently like other pret projects. That part's out of my range of knowledge.

MDTravisYT and others added 14 commits February 26, 2026 15:28
A number was skipped, causing all IDs past $28 to be misaligned in the comments.
Co-authored-by: Narishma-gb <194818981+Narishma-gb@users.noreply.github.com>
Also changes TOWN_0D to NIGHTTIME.
Documented Function9543, Function9536, Function9527
Documented 2 bugs, and 3 functions.
It would make more sense to make duplicate sprite IDs reference the latest definition of it instead of the earliest. Let's say I included the sprite, but commented it out. Now the label it pointed to falls into the next sprite over, thus making it the same as the next sprite over. This change also makes much more sense with certain maps now. Rockets are defined properly in Team Rocket areas, Red's Mom is now defined in her house, and the League buildings are filled with CoolTrainers.
@Rangi42
Copy link
Copy Markdown
Member

Rangi42 commented Apr 4, 2026

Nice work! @MDTravisYT To fix the header you might need to edit the "Global check value" in home/init.asm. Be sure to support a "-correctheader" build as well.

@Rangi42 Rangi42 marked this pull request as draft April 4, 2026 00:06
@MDTravisYT

This comment was marked as outdated.

@MDTravisYT

This comment was marked as resolved.

@MDTravisYT MDTravisYT changed the title Near bit-perfect Silver Version differences implemented Bit-perfect Silver Version differences implemented Apr 4, 2026
@MDTravisYT MDTravisYT marked this pull request as ready for review April 4, 2026 06:54
@MDTravisYT
Copy link
Copy Markdown
Contributor Author

I'll let someone else handle the Makefile side of things. If you provide a debug Silver ROM as the baserom.gb and compile with the -DSILVER flag on, you'll now get a bit-perfect compile of Silver version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants