crazyquark / nfc-amiibo

A tool to create amiibo tags using libnfc
42 stars 7 forks source link

Could not open ~/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin #5

Closed Payme42 closed 3 years ago

Payme42 commented 3 years ago

once more i have an error i cant find awnsers to,

Could not open ~/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin

im using wls2 and ubuntu

Edduaardo commented 3 years ago

Are you using single or double quotes when passing this parameter? Try this: "~/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin" When you have spaces on the name of the file use double/single quotes. If this still does not work try using the full path instead of ~ (with quotes).

Payme42 commented 3 years ago

I was this is the whole command

./nfc-amiibo ~/key_retail.bin "~/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin"

Payme42 commented 3 years ago

could not open either way Could not open C:/Users/Payne4108/Documents/Amiiiiiiibo/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin Could not open ~/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin

Payme42 commented 3 years ago

there is a tilda ~ tho in the commoand right?

./nfc-amiibo ~/key_retail.bin "C:/Users/Payne4108/Documents/Amiiiiiiibo/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin"

and key_retail.bin is in C:/Users/Payne4108/Documents/Amiiiiiiibo/key_retail.bin

but

./nfc-amiibo "~/key_retail.bin" "~/[SSB] 10 - Pikachu.bin"

doesnt work i even moved them both to the same location

Payme42 commented 3 years ago

missclick

Edduaardo commented 3 years ago

You said you are using WLS2 Ubuntu right? The path that WLS uses is not C:, it's /mnt/c/. But I think the correct path should be "~/Documents/Amiiiiiiibo/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin" Try this command: ./nfc-amiibo ~/Documents/Amiiiiiiibo/key_retail.bin "~/Documents/Amiiiiiiibo/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin" If still gives you error, try the full path, it should be "/mnt/c/Users/Payne4108/Documents/Amiiiiiiibo/Animal Crossing/Cards/Series 2/[AC] 188 - Ankha.bin"

It's seems that you don't understand what ~ means in Linux, it's appointment to your home folder i.e. your C:/Users/Payne4108 or /mnt/c/Users/Payne4108.

Payme42 commented 3 years ago

no such file or directory

Edduaardo commented 3 years ago

Are you sure the file actually exists in the path that you are passing as parameter?

Payme42 commented 3 years ago

yes i have it right here image

Payme42 commented 3 years ago

i am using cd nfc-amiibo idk if that changes somthing

Payme42 commented 3 years ago

image

Edduaardo commented 3 years ago

Again, it's wrong. Try the last command. You forgot the dot in ./nfc-amiibo and the key file is not in ~/key_retailt.bin it's in /mnt/c/Users/Payne4108/Documents/Amiiiiiiibo/key_retail.bin. I won't reply anymore since it's not a problem with the program. I really recommend you about learning Command Line and how directory works if you really want to continue doing this.

Payme42 commented 3 years ago

It worked! but not for the amiibo file ill try using a differnt one thank you

Payme42 commented 3 years ago

oh lol just an update if anyone else has this problem, make sure the nfc reader is pluygged in