SNES9x for Old 3DS

Discussion in '3DS - Homebrew Development and Emulators' started by bubble2k16, Jul 25, 2016.

  1. bubble2k16
    OP

    bubble2k16 GBAtemp Fan

    Member
    10
    Jul 25, 2016
    Senegal
    Hmm... things have gotten a little lively. :) I'm currently working on a number of things:

    - cheats, kind of experimental, but since it's using the one already written in Snes9x... it is supposed to work, unfortunately I've seen games crash or behave weirdly once the cheats are activated.

    - the special speed hack for some class of games that use a special 'wait for interrupt' instruction. The original one committed to Github may have some timing problems, which fortunately doesn't affect DKC1/2/3. But it might cause problems in other games. So I'm experimenting some fixes... I just hope it doesn't break any other games. If it does I may remove this for the coming release, so wish my luck.

    @LongTimeLurker - I'll have a look at the makerom problem again.

    @suzsuzuki, and other devs who'd like to compile the latest commits: in order to remove all the debugging stuff that may slow down emulation, please do the following before compiling:
    1. In 3dssnes9x.h, uncomment #define RELEASE
    2. In 3dssnes9x.h, uncomment #define RELEASE_SHADER
    3. In 3dsgpu.h, uncomment #define REAL3DS
    It should give you a good speed increase and remove all the debugging stuff.


    A number of other things:
    @mqk9999 - Yes thanks for the feedback. I know most of the problems you mentioned. Just haven't had the time to fix them. Some are much more difficult to fix, because they require some overhaul of the way graphics are handled.

    @DiscostewSM - Thanks for pointing us FFMQ's problem. I've never gone that far to see that problem occurring. And yes, your suggestion is excellent. Will probably include in 2 release's time. I've frozen this release's features and I am just testing as many things as I can to ensure things still work sanely.
     
  2. KJ1

    KJ1 Old Member

    Member
    5
    GBAtemp Patron
    KJ1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 2, 2014
    India
    @bubble2k16 Hey there, just wanna know, whether, it would be possible to increase the volume on this emulator beyond 3ds's normal capacity? If so, is it easy for you to get it in the next release? :)
     
  3. xyxa

    xyxa Dokoro

    Member
    2
    Aug 24, 2016
    Somalia
    @bubble2k16 - I wish you luck, first of all. ^_^ The work that you have been doing continues to be astounding, thoughtful and it is very much appreciated.
     
  4. bubble2k16
    OP

    bubble2k16 GBAtemp Fan

    Member
    10
    Jul 25, 2016
    Senegal
    @KJ1 - Yes the up and coming release will allow you to control the sound's amplification per game.
     
    DrkBeam, yoshinatsu and KJ1 like this.
  5. KJ1

    KJ1 Old Member

    Member
    5
    GBAtemp Patron
    KJ1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 2, 2014
    India
    Yay, thanks man! :) And, btw, what do you mean by "up", has it been already released?
     
  6. yoshinatsu

    yoshinatsu GBAtemp Fan

    Member
    4
    Sep 14, 2009
    Greece
    Downtown Jigoku
    It's just a way of saying "upcoming".
     
    Last edited by yoshinatsu, Aug 30, 2016
    KJ1 likes this.
  7. KJ1

    KJ1 Old Member

    Member
    5
    GBAtemp Patron
    KJ1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 2, 2014
    India
    Oh okay, thanks for letting me know! :)
     
  8. LongTimeLurker

    LongTimeLurker GBAtemp Regular

    Member
    1
    Aug 25, 2016
    Canada
    There's an "unstable" build (read as: not an official release) in this very thread that has improved sound control. You might get a slight performance loss because of the debugging information, but releases are very frequent so it shouldn't be a big deal while you wait for the official build.
     
    KJ1 likes this.
  9. ArtemisM

    ArtemisM Kupo for Kupo Nuts

    Member
    5
    Apr 14, 2010
    United States
    My bad. I hope posting redundancies isn't annoying. I'm just blitzing through titles and taking notice of everything and jotting it down since I have extensive experience with the SNES library as an end-user. That being said, I've been omitting japanese titles. Do you want me to document those as well?
     
  10. suzsuzuki

    suzsuzuki GBAtemp Fan

    Member
    4
    Aug 25, 2016
    Brazil
    @bubble2k16 I changed the main code to open zip files. It recognizes the rom inside the zip like file.zip#rom.smc, but when open it's only a black screen. Any tip about how can I try to fix it?
     
  11. KJ1

    KJ1 Old Member

    Member
    5
    GBAtemp Patron
    KJ1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 2, 2014
    India
    Really? Thanks man! :) Will try it out ASAP!
     
  12. bubble2k16
    OP

    bubble2k16 GBAtemp Fan

    Member
    10
    Jul 25, 2016
    Senegal
    v0.4 is out:

    - Experimental cheat feature. Requires you to have the .CHT file
    (May corrupt your save game, use at your own risk)

    - Added settings to enable turbo buttons (per game)

    - Added settings to allow user to amplify volume (per game)
    You can amplify between 1.0 - 3.0x with 0.25x steps in between.
    (beware of sound clipping that results in terrible sounds)

    - Palette hack for Secret of Mana to ensure that the dialog borders are blue
    (the bottom status window still behaves oddly due to palette changes)

    - Transparency fixes:
    o Legend of Zelda's prologue's dark room
    o Reported dark tints on several games like Doremi Fantasy, Bomberman, Secret of Mana, Chrono Trigger
    o Gradient shading on dialog boxes for Chrono Trigger and Final Fantasy III (battles) appear correct.

    - Fixed window clip problems.

    - Fixed mode 7 glitches causing mode 7 bugs in Secret of Mana, NHL 94, Magical Quest 3

    - Fixed a number of sprite clipping problems
    o Megaman 7's Dr Wily's spaceship in the intro now pans in from the left correctly
    o Tales of Phantasia's trainee's sprites (after the intro) now clips correct

    - Fixed color inconsistency causing some white sprites to be visible on a white background
    (eg. in NHL's EA Sports intro screen)

    - Added speed hack for games that use the WAI instruction
    (esp Donkey Kong Country 1, 2, 3 should see a good speed increase)

    - Added hack to avoid hiding sprites even if they exceed the maximum number the real hardware can display.
    Apparently, this fixes the missing cursor in Final Fantasy III.


    - And other bugs.


    EDIT: Forgot to mention, a small number of games actually run slower. Like Axelay... the fixed transparency effects now look correct in the game, but have too much for this port to take. :(

    EDIT 2: I also added hacks to wait for about 10 seconds (up to a max of 60 seconds) before saving SRAM into SD for Final Fantasy Mystic Quest. This reduces the stutters.
     

    Attached Files:

    Last edited by bubble2k16, Sep 1, 2016
    KJ1, Wargla, cvskid and 11 others like this.
  13. nooby89

    nooby89 A normal member with a stupid alias

    Member
    4
    Aug 18, 2015
    Canada
    omg thank
     
  14. bubble2k16
    OP

    bubble2k16 GBAtemp Fan

    Member
    10
    Jul 25, 2016
    Senegal
    @mqk9999 - Of course, by all means, please go ahead to test the Japanese games! By the way, please continue to post any other problems you find in English or non-English games. There might be some things that I do not know yet. :) Like the Actraiser 2 problem you mentioned.

    @suzsuzuki - Hmm... I'm not sure what's the problem. Can you send me your codes?

    Oh if any gateway users can share if the current CIA is installable, that would be great.
     
    Last edited by bubble2k16, Aug 31, 2016
  15. suzsuzuki

    suzsuzuki GBAtemp Fan

    Member
    4
    Aug 25, 2016
    Brazil
    Nothing big, just added this line on 3dsmain.cpp (line 900)

    Code:
    !strstr(dir->d_name, ".zip") &&
    And then the emulator can recognize zip files. I saw many codes related to zipped roms, then thought it will be able to open zipped roms
     
  16. bubble2k16
    OP

    bubble2k16 GBAtemp Fan

    Member
    10
    Jul 25, 2016
    Senegal
    @suzsuzuki - Well, yes it should... since the codes are already available, but I am not sure why it doesn't work. :) I'll have a look at it again tomorrow.
     
  17. suzsuzuki

    suzsuzuki GBAtemp Fan

    Member
    4
    Aug 25, 2016
    Brazil
    Many thanks! I gonna review the code too, maybe I can help in something :)
     
  18. bubble2k16
    OP

    bubble2k16 GBAtemp Fan

    Member
    10
    Jul 25, 2016
    Senegal
    @suzsuzuki - Yes sure, please do! Help is always welcome. :) I am personally itching to fix the Power Rangers Fighting Edition graphical glitch, and the missing top left tile glitch.

    But you can see where you'd like to add / fix stuff. :)
     
    Coto likes this.
  19. yoshinatsu

    yoshinatsu GBAtemp Fan

    Member
    4
    Sep 14, 2009
    Greece
    Downtown Jigoku
    Incredible! New version out!
    Will test all the games that suffered from dark tint/transparency issues, and will update the compatibility list accordingly!
     
  20. DeslotlCL

    DeslotlCL GBAtemp's scalie trash

    Member
    11
    Oct 28, 2015
    United States
    Speed increase on the dkc series? THANK YOU SO MUCH! :lol:
     
Loading...