Giter Site home page Giter Site logo

Comments (2)

dannye avatar dannye commented on August 31, 2024
  1. The music works fine for me (the original Red music on master, and the Crystal music on the crysaudio branch both work fine). What emulator are you using?

  2. If rgbds complains about not being able to place a section, that usually means that you tried putting more than $4000 bytes of code/data in a bank.
    But with this hack, it can also mean that it was unable to place a section at its original address. Drenn wanted it to be a priority to keep as much of the rom unmodified as possible.
    So, many sections have a hard-coded address to place the section at (you would usually omit this when declaring a section).
    This kind of section is used to place unmodified code/data at its original address regardless of the "shifting" that happens above the section. If the stuff above the section shrinks, the section will still be placed at the original address. If the stuff above the section grows, the build will fail because the section is unable to be placed at its original address (two sections are overlapping). This is a good thing because it stops us from shifting data unintentionally. The benefit of this is that the final rom is still compatible with some hex editing tools, and the address of certain data will still match what people will read about from other documents. But this real only matters to people who are hex editing. Since you are modifying the source, you can simply remove the hard coded addresses in section declarations.
    For example, in home.asm, changing:

SECTION "LoadMonFrontSprite", ROM0[$1665]

to:

SECTION "LoadMonFrontSprite", ROM0

Be careful though. DON'T modify any of the sections that come before the SECTION "Main", ROM0 in home.asm. Those sections are very precise, for hardware reasons.

  1. Oak does use his own palette in the intro. But instead of being coded in color/oak_intro.asm like the others, it's coded in engine/oak_speech.asm
    ld a, PAL_OAK

This relates to point 2. If we added all the custom code that is in color/oak_intro.asm directly into engine/oak_speech.asm, we would make the assembly routine longer shifting everything else in the bank down, which we are trying to avoid. So some of the code got moved to another location. However the Oak palette was able to fit in the original routine without making the routine longer, because of other changes.

  1. I've been using rgbds v0.2.5 for this hack. I don't see how using v0.3.0 would cause the audio bugs you are experiencing, but it's possible I suppose. Maybe switching to v0.2.5 would fix that.
    Regardless, I'm going to update this hack, and my other hacks, today to be compatible with v0.3.7

from pokered-gbc.

dannye avatar dannye commented on August 31, 2024

Finally got around to updating this hack to be compatible with rgbds v0.3.8
Closing

from pokered-gbc.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.