Homebrew RELEASE LGMA (Use Google Drive with DZ to download your games)

darriousx

Member
Newcomer
Joined
Aug 5, 2018
Messages
17
Trophies
0
Age
34
XP
196
Country
United States
So, I have downloaded the client_id.json. I ran the LGMA.exe ftp server with the correction location copied into locations.conf. DZ sees the file and it connects just fine but it's completely empty. Is there something I'm doing incorrectly?

I have installed the Google Client Library with the "pip install..." command, etc.
 
Last edited by darriousx,

Kaiton

Member
Newcomer
Joined
Dec 17, 2018
Messages
10
Trophies
0
Age
28
XP
77
Country
United States
So, I have downloaded the client_id.json. I ran the LGMA.exe ftp server with the correction location copied into locations.conf. DZ sees the file and it connects just fine but it's completely empty. Is there something I'm doing incorrectly?

I have installed the Google Client Library with the "pip install..." command, etc.

You were only supposed to follow the first step on the google drive api page (not sure it really matters just saying)
also do you have them on the root of your drive or in a folder? works flawlessly when they're placed on the root.

as a side note tinfoil(dz) opens incredibility slow for some reason with just under 50gb worth of nsp's, not sure if this is an api or internet issue atm but I had well over 500gb of nsps yesterday on my drive and took a 3rd of the time to load..
 
Last edited by Kaiton,

darriousx

Member
Newcomer
Joined
Aug 5, 2018
Messages
17
Trophies
0
Age
34
XP
196
Country
United States
You were only supposed to follow the first step on the google drive api page (not sure it really matters just saying)
also do you have them on the root of your drive or in a folder? works flawlessly when they're placed on the root.

as a side note tinfoil(dz) opens incredibility slow for some reason with just under 50gb worth of nsp's, not sure if this is an api or internet issue atm but I had well over 500gb of nsps yesterday on my drive and took a 3rd of the time to load..
Yeah, I just realized, a few minutes ago, that I was only supposed to do the first step, oh well!

I have it in switch/dz/locations.conf. However, I tried to use an ftp client to connect to my PC from my phone, and every time I attempt to connect I'm getting an authentication error. I'm not entirely sure what to do next lol
 

Kaiton

Member
Newcomer
Joined
Dec 17, 2018
Messages
10
Trophies
0
Age
28
XP
77
Country
United States
Yeah, I just realized, a few minutes ago, that I was only supposed to do the first step, oh well!

I have it in switch/dz/locations.conf. However, I tried to use an ftp client to connect to my PC from my phone, and every time I attempt to connect I'm getting an authentication error. I'm not entirely sure what to do next lol

Apologies I should have elaborated I meant for the location of your nsp's on your google drive. (as for the testing on mobile make sure your anti virus or windows defender isnt doing anything fucky)
also check the ports you assigned and make sure they're not in use for anything else that might be using them
 
Last edited by Kaiton,

darriousx

Member
Newcomer
Joined
Aug 5, 2018
Messages
17
Trophies
0
Age
34
XP
196
Country
United States
Apologies I should have elaborated I meant for the location of your nsp's on your google drive. (as for the testing on mobile make sure your anti virus or windows defender isnt doing anything fucky)
also check the ports you assigned and make sure they're not in use for anything else that might be using them
Well, I'm unsure what I'm doing wrong, or even doing right, at this point, haha. I'll keep trying but I turned off my firewall/windows defender, made sure to select 'not-in-use' ports, and have even entered in my PC credentials, however, I'm just really hitting a road block with not being able to connect lol

Edit: Wow.... I could've swore I had an NSP file in my root directory but I definitely didn't. I moved it and it worked like a charm!! Something on my phone must've not accepted the "anonymous" login.
Edit2: If there was a way to organize this then it would be perfect!
Edit3: Well, if I change the remote directory to a folder I created then everything in that folder I can see and edit. I'm even able to see 'shared' folders but I'm unsure if I can view more than 100, at least on my FTP client on my PC. I'll check DZ and update.
 
Last edited by darriousx,

Kaiton

Member
Newcomer
Joined
Dec 17, 2018
Messages
10
Trophies
0
Age
28
XP
77
Country
United States
Well, I'm unsure what I'm doing wrong, or even doing right, at this point, haha. I'll keep trying but I turned off my firewall/windows defender, made sure to select 'not-in-use' ports, and have even entered in my PC credentials, however, I'm just really hitting a road block with not being able to connect lol

Edit: Wow.... I could've swore I had an NSP file in my root directory but I definitely didn't. I moved it and it worked like a charm!! Something on my phone must've not accepted the "anonymous" login.
Edit2: If there was a way to organize this then it would be perfect!
Edit3: Well, if I change the remote directory to a folder I created then everything in that folder I can see and edit. I'm even able to see 'shared' folders but I'm unsure if I can view more than 100, at least on my FTP client on my PC. I'll check DZ and update.

Its the simplest things sometimes:rofl2::toot: Glad its working for ya now do keep me updated on that 3rd edit tho quite curious myself.
 

darriousx

Member
Newcomer
Joined
Aug 5, 2018
Messages
17
Trophies
0
Age
34
XP
196
Country
United States
Its the simplest things sometimes:rofl2::toot: Glad its working for ya now do keep me updated on that 3rd edit tho quite curious myself.
It really is:D.. So, here's what I've found so far... It would be great to just run this in the DZ nro so that I could just read files in my Gdrive directly without having to funnel the traffic through my Desktop (or other device). Thankfully, speeds are nice at about 6-7mbps whether I'm installing a local file from my PC or one being transferred from Gdrive.

Another thing, it definitely seems to only be loading a portion of what's in the folder. Currently, on both my FTP client on my phone/DZ it stops at about 100files (137GB). Not sure why that is.
This is a decent solution but it is currently not 'entirely' working for me. Have you had any different results?

Edit: I almost forgot!! Yes, I am able to install from folders that are simply 'shared' with me but are not on my drive. However, the same issue remains where it only loads a small portion of NSPs in the entire folder.
Edit 2: It would be better to have this implementation directly loaded into the DZ (Tinfoil) program so that you wouldn't have to funnel the downloading from your Desktop to your Switch, which pretty much defeats the purpose except to save some local disk space.
 
Last edited by darriousx,
  • Like
Reactions: Don Jon

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,454
Country
Has anyone got this working with sx installer? It doesn’t seem to want to work for me. I’m not sure if my settings are incorrect can anyone give me idea what goes where in the boxes in sx installer alongside the lgma server just to confirm it is correct? I presume you just put the lgma server settings in sx installer and save the locations.conf the username lgma and password supposed to be the IP address? I’m struggling with this and it’s ridiculous for me! Also the IP address of the lgma server is this your pc ip or your switch ip? Is it the same as using FileZilla.
 
Last edited by Reecey,

Kaiton

Member
Newcomer
Joined
Dec 17, 2018
Messages
10
Trophies
0
Age
28
XP
77
Country
United States
Has anyone got this working with sx installer? It doesn’t seem to want to work for me. I’m not sure if my settings are incorrect can anyone give me idea what goes where in the boxes in sx installer alongside the lgma server just to confirm it is correct? I presume you just put the lgma server settings in sx installer and save the locations.conf the username lgma and password supposed to be the IP address? I’m struggling with this and it’s ridiculous for me! Also the IP address of the lgma server is this your pc ip or your switch ip? Is it the same as using FileZilla.

As im not to familiar with the sx os im going to go out on a limb and assume its similar so heres my best guess to get you up and running, as long as you have the homebrew app store you'll find the latest "Tinfoil(dz)" on there, grab that and you should be all set for the switch portion for now. Follow steps 1-3 on your computer, place the lgma.exe and all its files in a folder on your desktop then take the "credentials.json" and rename it "client_id.json" and place it with those files. run the lgma.exe and follow the prompts (for the ip it'll say "likely: 196.168.1.xxx") just use that and press enter and it'll ask for a port next make it something like for example 5001.

As you've said you've used filezilla before use that to obtain the locations.conf from sdmc/switch/dz/ and also in that same directory you need to place your keys.txt.
and edit locations.conf to look like the file I attached, or just use the one I provided and change .txt to .conf and make sure to edit it with your info as needed.
restore the edited file and load up tinfoil(dz) and bing. bang. boom. so long as you have a nsp on the root of your google drive (with the titleid in its name) it should now show up under -new games in tinfoil. hope it works for yah:yay:
 

Attachments

  • locations.txt
    94 bytes · Views: 219
Last edited by Kaiton,
  • Like
Reactions: Reecey

pr0dukt

Well-Known Member
Newcomer
Joined
Sep 9, 2018
Messages
67
Trophies
0
Age
36
XP
224
Country
United States
This works. Quite reliably in fact. Kudos on the execution for this. Passthru download speeds even hold up.
Don't even really need a GUI tbh, most people here who use server hosting APIs are accustomed to calling everything from cmd anyways, and its just going to sit in the background and keep up the drive link anyways. I wouldn't exert too much energy creating a GUI unless you get a crowd of people who just have no clue what is going on, asking for one.

Again, nice work with this.
 

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,454
Country
As im not to familiar with the sx os im going to go out on a limb and assume its similar so heres my best guess to get you up and running, as long as you have the homebrew app store you'll find the latest "Tinfoil(dz)" on there, grab that and you should be all set for the switch portion for now. Follow steps 1-3 on your computer, place the lgma.exe and all its files in a folder on your desktop then take the "credentials.json" and rename it "client_id.json" and place it with those files. run the lgma.exe and follow the prompts (for the ip it'll say "likely: 196.168.1.xxx") just use that and press enter and it'll ask for a port next make it something like for example 5001.

As you've said you've used filezilla before use that to obtain the locations.conf from sdmc/switch/dz/ and also in that same directory you need to place your keys.txt.
and edit locations.conf to look like the file I attached, or just use the one I provided and change .txt to .conf and make sure to edit it with your info as needed.
restore the edited file and load up tinfoil(dz) and bing. bang. boom. so long as you have a nsp on the root of your google drive (with the titleid in its name) it should now show up under -new games in tinfoil. hope it works for yah:yay:
Thank you for the detailed description I will have ago this time around and let you know :)
 

pr0dukt

Well-Known Member
Newcomer
Joined
Sep 9, 2018
Messages
67
Trophies
0
Age
36
XP
224
Country
United States
Only if your account's drive (the one you log into with email and password) is the DIRECT owner of the content in question. I've done some testing with this, and found out even if import content from another user's drive directly into one of my public shared folders, and then forward that very folder to passthru serve to DZ, it will not allow access to the file for download and install. I can then right click said content, make a copy of it in the same folder, that will then be generated with me as it's sole owner, and it will serve up to DZ without a hitch. Decent speeds too, despite not being able to see what they are on the DZ side, due to being accessed through the app's file browser rather than the new games queue.

So in short, as long as you're the owner of the content you're attempting to serve, whether it be in your direct drive, team drive within your account, or hosted from a drive shared with you, it will work. If someone else is the primary owner, with you as an authorized user or co-owner, it will not serve, and you will end up erroring out during the attempt to install it.
 
Last edited by pr0dukt,

leorod199

Active Member
Newcomer
Joined
Jun 8, 2014
Messages
37
Trophies
0
Age
37
XP
427
Country
Brazil
Hello everyone, all right? I found this app "https://github.com/andresoviedo/google-drive-ftp-adapter" that makes an google drive FTP server.
Tinfoil recognizes all games but does not work. I put images with the errors.


Server running:
IMG-20181231-000437.jpg


Error message:
IMG-20181231-000401.jpg


IMG-20181231-000351.jpg



The LGMA app does not recognize all the games on my google drive.
 
  • Like
Reactions: SaulFemm

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,864
Trophies
2
Location
At Home :)
XP
4,454
Country
I gave up in the end trying to get this working I used every possible method to connect but it wouldn’t work. It didn’t really matter to me that much getting it going and I think even if I did get it working it would be quicker for me with my connection to download it straight off google drive and on to my sd card, it would save time doing it that way but really it was a matter of convenience over time but never mind.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-