developersu / ns-usbloader

Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files.
GNU General Public License v3.0
1.82k stars 123 forks source link

M1. Success connection on Switch. Sending nsp in computer. Nothing happens. #138

Open rmvz3 opened 1 year ago

rmvz3 commented 1 year ago

v6.0 used to work perfectly in my M1 but after upgrading to v7, it doesn't work at all. Everything seems to be ok but the Switch app is waiting for the mac to send it the nsp file and the mac is waiting for the Switch to receive it.

Is there something I can do? Maybe I need to install anything else? I have already installed (up to date) libusb and I've installed the jdk-19-arm64.dmg from oracle.

developersu commented 1 year ago

mm.. try to reboot mac and switch or use another cable/USB port. I don't know what could it be.

tauba commented 1 year ago

facing the same issue here, everything seems to be working, but when I send it to switch, it says "connection successful, waiting for files to be send " nothing happens after that

I am using v7.0 (its my first time using it on mac, it is working fine on windows)

tauba commented 1 year ago

Sorry, my bad

I did the "brew install libusb" and it solved the issue

worked fine now

moseslucas commented 1 year ago

Same here. even reinstalling libusb I'm stil stuck in Waiting for list of files to be sent... in Awoo Installer.

moseslucas commented 1 year ago

Was able to work but using the NET. So In my Switch Awoo, I click via Internet. Then in my NB USB LOADER on my Mac M1, at the top there's two dropdown fields. I've selected:

Clicking Upload worked immediettley but it's slower than usb transfer.

developersu commented 1 year ago

@moseslucas Did usb method worked before? I mean in previous versions.

moseslucas commented 1 year ago

@developersu This is my first time doing this and am already at version 7 ns-usbloader. So, No.

developersu commented 1 year ago

@moseslucas Ok.. actually I don't know what is this, but here are the steps I'd do:

  1. Reboot switch.
  2. Start hbmenu via title: By pressing 'R' start any title installed.
  3. Plug usb-c/usb-c cable (make sure it's good one)
  4. Start awoo, select usb
  5. Start ns-usbloader and try again.

For instance in linux Awoo in USB mode works for me a bit strange: like it works only first time and after that I have to restart 'title-mode' and awoo.

Also try another awoo-based apps. Like the one shipped with Team-Neptune/DeepSea.

Jean-Daniel commented 1 year ago

Same here. Fails with the following exception:

java.lang.NullPointerException: Cannot invoke "java.io.File.isDirectory()" because "nspFile" is null
    at nsusbloader.com.usb.TinFoil.fileRangeCmd(TinFoil.java:180)
    at nsusbloader.com.usb.TinFoil.proceedCommands(TinFoil.java:135)
    at nsusbloader.com.usb.TinFoil.<init>(TinFoil.java:58)
    at nsusbloader.com.usb.UsbCommunications.run(UsbCommunications.java:67)
    at java.base/java.lang.Thread.run(Thread.java:833)
developersu commented 1 year ago

Looks similar to #73

Corcho911 commented 1 year ago

did someone could solve this problem?

i have an imac 2021 M1, and i cant use nsusbloader, I already tried it all. Use to work with Windows and i could run ok the program.

asyba commented 1 year ago

same issue, Awoo installer said usb not detected

Corcho911 commented 1 year ago

Sorry, my bad

I did the "brew install libusb" and it solved the issue

worked fine now

u did it on a mac m1? how can u i that?

Jean-Daniel commented 1 year ago

u did it on a mac m1? how can u i that?

Install brew and use it to install libusb

Corcho911 commented 1 year ago

u did it on a mac m1? how can u i that?

Install brew and use it to install libusb

already did that, now my switch detects the game i want to install, but it gives me an error. WhatsApp Image 2023-04-19 at 11 50 20

Corcho911 commented 1 year ago

it stays in 0.00 MB/s untill says that the installation fails. :(

before brew install libusb my switch didnt recognize the game, now it does but i cant install it

asyba commented 1 year ago

FYI: I never could make it work ns-usbloader with mac m1, so I used DBI installer with MTP method.

rmvz3 commented 1 year ago

I was unable to make it work either. But I found an Apple Silicon compiled version elsewhere (maybe Reddit) which works perfectly

developersu commented 1 year ago

@rmvz3 if it works then attach downloaded jar here. We'll check. Thanks!

rmvz3 commented 1 year ago

Well, in fact it's not a jar but a macOS .app I don't know if you'll be able to get something useful from it but… there you have: https://www.icloud.com/iclouddrive/00eHCv5IwmMIMsmsMQyt412_g#NS-USBloader

Corcho911 commented 1 year ago

Well, in fact it's not a jar but a macOS .app I don't know if you'll be able to get something useful from it but… there you have: https://www.icloud.com/iclouddrive/00eHCv5IwmMIMsmsMQyt412_g#NS-USBloader

thanks, i download it but it gives me an error.

The error in spanish says: La acción “Ejecutar el script Shell” detectó un error: “zsh:1: no such file or directory: /Applications/NS-USBloader.app/Contents/PlugIns/jdk-11.0.16.1.jdk/Contents/Home/bin/java”

rmvz3 commented 1 year ago

thanks, i download it but it gives me an error.

Hmmm… I don't know why could this happen. I've checked the file in the zip and it has these files included (just select Show content in the contextual menu and you'll be able to check it). Maybe it's any kind of permission problem

UPDATE: @Corcho911, prueba con la version que he puesto mas abajo, pero asegurate de que este en la carpeta de Aplicaciones, si no, no funcionara.

developersu commented 1 year ago

It's just version 6.1 wrapped into 'app' with java runtime inside. UPD: for some reason, with JDK :)

rmvz3 commented 1 year ago

Yes, I see (never looked inside the app until now). So, if I replace the jar with the latest version… it should work, right?. Could be a good workaround for many of us having issues with the M1 version (probably due to java misconfiguration)

developersu commented 1 year ago

Mmm.. I don't know.. JDK inside is for intel's x86_64, so I guess you'll run it in 'emulation' mode, therefore the library you'll use would be the one pre-compiled for x86_64 as well. I'd say, there is a chance that it would be working for you (in case now it works with 6.1 jar) but not necessarily for others.

rmvz3 commented 1 year ago

It works! I've just edited the .workflow file (automator script) to remove the version reference in the jar file so it just looks for "ns-usbloader.jar" instead of "ns-usbloader_6.5.jar" to be easier to update. Added the new 7.0 version renamed that way and it worked. Some caveats: the m1 jar version doesn't work (some problem with javafx if I remember), it must be the "regular" one ("ns-usbloader-7.0.jar"). Also, the app MUST be in Application folder, otherwise it will fail to find the hardcoded paths, which is what happened to @Corcho911 (not very elegant code but at least it works).

EDIT: This is the updated 7.0 version in case anyone want it: https://www.icloud.com/iclouddrive/0a04OJObLcgyIo5XzCk8B-kqQ#NS-USBloader

Corcho911 commented 1 year ago

It works! I've just edited the .workflow file (automator script) to remove the version reference in the jar file so it just looks for "ns-usbloader.jar" instead of "ns-usbloader_6.5.jar" to be easier to update. Added the new 7.0 version renamed that way and it worked. Some caveats: the m1 jar version doesn't work (some problem with javafx if I remember), it must be the "regular" one ("ns-usbloader-7.0.jar"). Also, the app MUST be in Application folder, otherwise it will fail to find the hardcoded paths, which is what happened to @Corcho911 (not very elegant code but at least it works).

EDIT: This is the updated 7.0 version in case anyone want it: https://www.icloud.com/iclouddrive/0a04OJObLcgyIo5XzCk8B-kqQ#NS-USBloader

hey thanks for all, but same error still.

rmvz3 commented 1 year ago

I will buy a pc

Unrelated to the issue. Also, then you WILL have a lot of problems XDDD

Masamune3210 commented 1 year ago

Not anymore than any other computer would have. If you want to just use windows for a couple of things, just virtualize it

zcg331793187 commented 1 year ago

same issue.

inzar98 commented 1 year ago

Just use Azul jdk19. it solves issue perfectly