Homebrew [release] sockfile python

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
I made a new Python version of sockfile that works with the new FBI 2 protocol (so it wont work with FBI 1)
It should work with both Python 2 and Python 3 and it uses the same command line arguments as the official sockfile.
https://github.com/svanheulen/sockfile_python

Edit: I added a new script to the repository!

The "net_installer.pyw" script runs a HTTP server and displays a QR code that can be scanned by FBI to install the specified CIA/TIK file.

You do need to install the "pyqrcode" Python module, which can easily be done by just opening your console/terminal and typing:
Code:
pip install --user pyqrcode

Once that's all set, you can just drag-and-drop a CIA/TIK file (or a folder containing CIA/TIK files) onto the script, then scan the QR code with FBI. (Note: you need to keep the window open until the install on your 3DS finishes)

On Linux and Mac you can also use the "-t" argument to have the QR code display in the terminal if you want :)
Code:
./net_installer.pyw -t /path/to/cia/file.cia

Edit: I renamed the "qr_installer.pyw" script to "net_installer.pyw" and added support for the new network install protocol added in FBI 2.4.5

You can use the new protocol like this:
Code:
./net_installer.pyw --send x.x.x.x /path/to/file.cia
Where "x.x.x.x" if the IP address of your 3DS (displayed by FBI).
If you don't use the "--send" argument (or if you drag-and-drop files onto the script) it will display the QR code.

I also added a script for the old FBI 1.x protocol, just because.


GUI display:
GyDfZ0E.png

Terminal display:
yt9f9jz.png
 
Last edited by moghedien,

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
Excellent job! However I found a minor issue. You can't specify the port.
Yeah, the port is hard-coded to 5000 in FBI so I did the same. If there is an actual use case for needing to specify the port I can certainly add that option.
 

retroguy

Well-Known Member
Member
Joined
Nov 28, 2006
Messages
116
Trophies
1
XP
299
Country
Netherlands
Nice. Can I install a few CIA's at once with the python script? If so, wha'ts the command line? Just a space between the CIA names?

And what is the commandline for showing the transfer speed in the window (I'm using this script with a .bat so I only need to type in the CIA name, and I would like to add the 'show transfer speed' command).
 
Last edited by retroguy,

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
Nice. Can I install a few CIA's at once with the python script? If so, wha'ts the command line? Just a space between the CIA names?
For the sockfile.py script, yes, exactly. For the qr_installer.pyw script it only serves one CIA file.

--------------------- MERGED ---------------------------

There is no way to show the transfer speed
 

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
I updated the QR code installer to allow installing multiple files with a single QR code. Just give it a path to a folder containing some CIA/TIK files. Keep in mind that if there are too many files FBI might have a hard time reading the QR code.
 

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
I renamed the "qr_installer.pyw" script to "net_installer.pyw" and added support for the new network install protocol added in FBI 2.4.5

You can use the new protocol like this:
Code:
./net_installer.pyw --send x.x.x.x /path/to/file.cia
Where "x.x.x.x" if the IP address of your 3DS (displayed by FBI).
If you don't use the "--send" argument (or if you drag-and-drop files onto the script) it will display the QR code.

I also added a script for the old FBI 1.x protocol, just because.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I thought PS4/5 and Xbox One emulation would be kind of easy since they basically just a PC
  • ColdBlitz @ ColdBlitz:
    they sorta are a pc
  • K3Nv2 @ K3Nv2:
    They haslve dedicated on board chips that aren't tweaked like x64/x32 afaik
  • ColdBlitz @ ColdBlitz:
    but its a custom os for both of them
  • ColdBlitz @ ColdBlitz:
    designed for only specific hardware
  • ColdBlitz @ ColdBlitz:
    so you have to learn to emulate that specific hardware which isn't as easy as you'd think
  • K3Nv2 @ K3Nv2:
    It's a locked down Linux distro basically
  • Psionic Roshambo @ Psionic Roshambo:
    I think the only custom hardware is to do with the SSD and a security chip
  • Psionic Roshambo @ Psionic Roshambo:
    Probably combined in one chip
  • K3Nv2 @ K3Nv2:
    They place married security chips onto boards iirc
  • Psionic Roshambo @ Psionic Roshambo:
    Damn Frontier is offering 5Gbps now lol
  • K3Nv2 @ K3Nv2:
    I honestly can't recommend any of the big 3 this years I'd say buy a rog ally z1 if we're being honest
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly after the PS3 and 360 I just went full PC
  • K3Nv2 @ K3Nv2:
    Every games basically cross platform they only have about 6 titles making it worth the $600 price tag
  • Psionic Roshambo @ Psionic Roshambo:
    Didn't see much need for a console, all the advantages have kind of disappeared
  • ColdBlitz @ ColdBlitz:
    the ps3 used to support installing linux because the cpu was so powerful
  • K3Nv2 @ K3Nv2:
    Then the games are $70 and they want to reboot and refresh the same game every year
  • K3Nv2 @ K3Nv2:
    The ps3 was always Linux they just found a way to make it open source
  • ColdBlitz @ ColdBlitz:
    I'm avoiding buying from the big 3 at all atm
  • Psionic Roshambo @ Psionic Roshambo:
    At one point PC game pads where poorly supported, loading a game had setup, it was complicated. Now it's almost as easy as a console.
  • ColdBlitz @ ColdBlitz:
    nintendo needs to up their game soon
  • K3Nv2 @ K3Nv2:
    Yeah even bt support for Xbox one controllers are just as easy as pairing
  • ColdBlitz @ ColdBlitz:
    considering the steamdeck can emulate the switch (yikes) theres almost 0 reason to buy the switch apart from playing online and using cartridges
  • K3Nv2 @ K3Nv2:
    Xinput and 360 dongles were a driver nightmare
  • K3Nv2 @ K3Nv2:
    I remember having to manually put in drivers and what not
    K3Nv2 @ K3Nv2: I remember having to manually put in drivers and what not