RELEASE emuiibo - MitM'ing NFP services for Amiibo emulation

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by XorTroll, Apr 17, 2019 at 1:14 PM.


    14,211

    180
    Front-page RELEASE
    Hi everyone!

    I noticed a few days ago there was a project called switch-nfp-mitm, which had lots of forks, but none of them properly working (people reported it barely worked, and with some games), thus I decided to try to fix it, or to improve it as much as I could. Well, the results were that good, that I've just managed to get it working perfectly, even with a nice system of combos for Amiibo swapping, in just 2 days.

    So, well, here's the result:

    emuiibo

    emuiibo is a background process, like Atmosphere's modules, hid-mitm..., which MitM's NFP (nfp:user) services to support Amiibo emulation.

    Usage

    Download the latest release from https://github.com/XorTroll/emuiibo/releases and place it on your SD card, according to your CFW.

    According to tests, should work on any CFW which allows NSP sysmodules (Atmosphere, ReiNX).

    You also have to set the boot2 flag, whose location depends on the CFW:

    • Atmosphere: create a file named boot2.flag inside titles/0100000000000352/flags directory.

    • ReiNX: create a file named boot2.flag inside titles/0100000000000352 directory.
    Combos
    All the input combos are performed with R-Stick pressing and pressing the D-pad in an specific direction (at the same time). Combos must (should) be done before or after the game starts looking for amiibos.

    • Toggle amiibo emulation: Press R-Stick (like it was a button) and also pressing the D-pad up. Toggles/untoggles emulation.

    • Toggle amiibo emulation once: Same as above, but pressing the D-pad right. Toggles emulation once, after emulating an amiibo then it will untoggle automatically.

    • Untoggle amiibo emulation: Same as above, but pressing the D-pad down. Untoggles amiibo emulation, and should be used as a way to fully ensure it is untoggled, in case you don't know whether it's toggled or not.

    • Swap amiibo: Same as above, but pressing the D-pad left. Moves to the next amiibo in the amiibo directory, if last one starts again with the first one. Only has effect if amiibo emulation is toggled.
    Emuiibo's amiibo directory is sd:/emuiibo. Place your amiibo dumps (must be *.bin files) there.

    Amiibo emulation
    Emuiibo gets amiibo's data, but the register info (amiibo name, write dates, mii) is auto-generated, as it isn't present on amiibo dumps:

    • Name will be the file's name (Amiibo.bin -> Amiibo), but if the name is bigger than 10 chars it will be hardcoded to Emuiibo.

    • Write date is hardcoded to 15th June 2019.

    • The amiibo's mii (owner) is hardcoded to the first mii found in the console mii database.
    Amiibo dumps
    Dumps consist on *.bin files, which must be 540 bytes (perhaps even more?). They can be dumped with several tools.

    For developers
    This MitM process also hosts a custom service, nfp:emu, which can be used to control amiibo swapping and emulation by IPC.

    You have an implementation for C/C++ and libnx in here.

    GitHub: https://github.com/XorTroll/emuiibo
    Releases: https://github.com/XorTroll/emuiibo/releases

    Hope you enjoy this useful tool!
     
    Discussion (180 replies)
  1. Stecker8

    Stecker8 Plug

    Member
    3
    Oct 9, 2015
    Here
    Nice. Well Done
     
  2. KiiWii

    KiiWii Contributor

    pip Contributor
    17
    Nov 17, 2008
    United Kingdom
    Wow that is amazing :)

    Thank you!
     
  3. XorTroll
    OP

    XorTroll Dev: Goldleaf, emuiibo, Brew.js...

    Member
    11
    Dec 28, 2017
    Spain
    Nowhere
    Also, forgot to mention that if emulation is untoggled, normal amiibos work perfectly :)
     
    zfreeman, nachuz, KiiWii and 2 others like this.
  4. blawar

    blawar GBAtemp Advanced Fan

    Member
    8
    Nov 21, 2016
    United States
    how can you license code that you didn’t even write? (you can’t). This project is mired in license violations and stolen code.
     
  5. Brayton

    Brayton GBAtemp Regular

    Member
    4
    Feb 6, 2016
    United States
    Great job!
     
  6. linuxares

    linuxares I'm not a generous god!

    Moderator
    16
    Aug 5, 2007
    Sweden
    @WerWolv Add to Kosmos Toolbox for hotswap? :)
     
    lordelan and XorTroll like this.
  7. XorTroll
    OP

    XorTroll Dev: Goldleaf, emuiibo, Brew.js...

    Member
    11
    Dec 28, 2017
    Spain
    Nowhere
    Most if the project is rewritten, and I've talked with the base repo's dev about the license, so he is aware. Given credit to every contributor anyway
     
  8. linuxares

    linuxares I'm not a generous god!

    Moderator
    16
    Aug 5, 2007
    Sweden
    Any logo for it btw? Or do you hope someone can throw together one?
     
  9. XorTroll
    OP

    XorTroll Dev: Goldleaf, emuiibo, Brew.js...

    Member
    11
    Dec 28, 2017
    Spain
    Nowhere
    Well, as it's a background process I haven't come up with any logo.
    Wouldn't be a bad idea tho...
     
    linuxares likes this.
  10. 8BitWonder

    8BitWonder Small Homebrew Dev

    Member
    10
    Jan 23, 2016
    United States
    47 4F 54 20 45 45 4D
    Wow, nice work!

    I'll have to give this a try later. :)
     
  11. linuxares

    linuxares I'm not a generous god!

    Moderator
    16
    Aug 5, 2007
    Sweden
    Well we got some excellent theme makers. They can probably throw together a logo to your liking!

    (I was thinking mostly for the HB Store ;))
     
  12. x65943

    x65943 Dr. Rabbi Prince X, Sr., Ed. D.

    Moderator
    14
    GBAtemp Patron
    x65943 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jun 23, 2014
    United States
    Midwest
    Wow seriously impressive

    I am so excited to try this out
     
  13. linuxares

    linuxares I'm not a generous god!

    Moderator
    16
    Aug 5, 2007
    Sweden
    "Write date is hardcoded to 15th June 2019." - @XorTroll you troll :P
     
  14. blawar

    blawar GBAtemp Advanced Fan

    Member
    8
    Nov 21, 2016
    United States
    Doesn't matter if you have his permission to use the code or not, you cannot copyright code that you did not write, the code is not yours. Did you speak with Dave's Devil about using his code?
     
  15. limpbiz411

    limpbiz411 GBAtemp Regular

    Member
    5
    Oct 12, 2007
    United States
    so no way to run this on SXOS?

    I was hoping for something like this on 3ds and wiiu as well. Awesome
     
    Last edited by limpbiz411, Apr 17, 2019 at 2:29 PM
  16. Fan3k

    Fan3k Member

    Newcomer
    1
    Dec 17, 2018
    Germany
    Ssbu with latest update tottaly freezes console. Why
     
  17. linuxares

    linuxares I'm not a generous god!

    Moderator
    16
    Aug 5, 2007
    Sweden
    It's opensource so it could technically be ported. But I suspect those system are on the backburner.
     
    wicksand420 and limpbiz411 like this.
  18. Ericthegreat

    Ericthegreat Not New Member

    Member
    9
    Nov 8, 2008
    United States
    Vana'diel
    As long as he isn't charging and gives credit he should be fine....
     
    Tinnetju likes this.
  19. Minox

    Minox Thanks for the fish

    Former Staff
    13
    Aug 27, 2007
    Japan
    If he has permission to use the code then what is the problem?
     
    crissal, chronoss, SaffronXL and 9 others like this.
Loading...