Quest to hack parallax barrier to NES VC games

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by WiiUBricker, Jul 19, 2016.

  1. WiiUBricker
    OP

    WiiUBricker Insert Custom Title

    Member
    6,980
    4,010
    Sep 19, 2009
    Argentina
    Espresso
    Nintendo's VC emulator is an all-in-one emulator. It has one config.ini for settings of all emulators. For NES roms you can change the resolution by simply editing the width and height values. So since the parallax barrier (that thing that causes 'scanlines' when disabled) is disabled when running NES roms and enabled when running GBC roms, I attempted to enable it for NES roms.

    First I compared the available settings for NES and GBC roms:

    Warning: Spoilers inside!

    As you can see, for NES roms there aren't any screen settings except width, height and some padding. For GBC roms there is a setting for the parallax effect among other screen settings. I copied the whole block over to the [NES] section because why not? Then I did rebuild the CIA and installed it.

    Result: No changes. It's as if all settings I copied over are ignored by the emulator.

    Then I inspected the other files inside the RomFS folder. There is a folder for GPU shaders. Maybe the settings were ignored because the shaders of NES and GBC roms differ from each other. I extracted a GBC CIA and looked inside its shaders folder. Almost all of the shaders in there are name like the shaders in the NES rom. So I swapped the shadders of the NES rom with the shaders of the GBC rom.

    Result: App crashes and kicks me back to the home menu.

    My last attempt was to just replace the GBC rom from the GBC CIA with the NES rom from the NES CIA, renamed accordingly.

    Result: App crashes and kicks me back to the home menu.

    Any ideas?
     
    Last edited by WiiUBricker, Jul 19, 2016
    B_E_P_I_S_M_A_N likes this.
  2. B_E_P_I_S_M_A_N

    B_E_P_I_S_M_A_N I have graced this thread with my presence.

    Member
    744
    2,695
    Jun 7, 2016
    United States
    Sixth Circle of Hell
    Well, I'm no expert ROM Hacker (in fact, I'm barely a ROM Hacker at all), but try comparing the EXEFS of both CIAs.

    Also, try searching the ROMFS for any other files that could be influencing this.

    Later on, I'll open up one of my NES CIAs and see what this about.
     
  3. LoganK93

    LoganK93 GBAtemp Advanced Fan

    Member
    607
    348
    Dec 5, 2012
    United States
    It is likely enabled in GBC roms due to the fact that you can actually use "3d" While playing GB/GBC if you hold select(?) when launching it makes a gameboy show on the top screen, which also uses the 3d effect (which would mean it uses the parallax barrier and thus it is always able to be activated.) The NES has no comparable feature so the barrier and 3d in general are never enabled.
     
  4. WiiUBricker
    OP

    WiiUBricker Insert Custom Title

    Member
    6,980
    4,010
    Sep 19, 2009
    Argentina
    Espresso
    The ExeFS contains only UI stuff like icon, logo etc. The rest is manual, download play and banner. So really there is only the RomFS left.

    I highly doubt it's enabled in roms themselves. Else how could you explain that this "3D" effect you are talking about is still there when you inject random roms off the internet? The emulator decides whether it activates the parallax barrier or not.