[RELEASE] SocketPunch - GUI Alternative to FBI's SockFile

Discussion in '3DS - Homebrew Development and Emulators' started by Joshtech, Apr 15, 2015.

  1. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    SocketPunch v0.3.4
    This is an alternate GUI network transfer for FBI based on sockfile.

    Simply put SocketPunch.jar into your folder containing CIA's on your pc.
    SocketPunch will scan working directory and folders within for CIA's.
    Queuing system allows for multiple file transfers. Allows for batch CIA installation over network.
    Just initialize the transfer on PC on 3DS and forget :P.

    Settings added: Make changes in config.txt which is created after first run (Current settings are
    savelog=true & buffersize=128)

    You can now set the ip address loaded each time. Simply append the string "ip=xx.xx.xx.xx"(replacing xx with the ip address of your 3ds) to config.txt

    Functions:
    Timestamp and Log file: SocketPunch will store a log file (log.txt) within its working directory
    containing all events.
    Auto-Retry on failed send. (Does not work for Already Installed CIA's).
    Timeout Tries: Allows you to set the amount of tries before moving onto next CIA to install (Not needed if auto-retry is enabled).

    Instructions:
    1) In FBI press Y to receive an app over the network.
    2) Set Prompts to Disabled in FBI
    3) Select(Double-Click) the CIA's from the list displayed within SocketPunch you wish to install on your 3DS.
    4) Check Auto-Retry box if you wish to keep trying to install after a failure, else SocketPunch will try for the amount of tries specified in Timeout Tries.
    5) Change IP address to your 3DS's IP (By default it will be set to your local IP, so you should only need to change last digits).
    6)Press the "Punch" button, then FBI will ask to confirm the transfer in which you would press A to confirm.

    REQUIRES: JRE 7 or Higher
    SocketPunch v0.3.4(With source): https://www.mediafire.com/?33l4su5hxxkypjg
     


  2. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,101
    1,641
    Jul 19, 2009
    United States
    Great job! Linked to this from the first post of FBI as a GUI alternative, hope you don't mind.
     
    Margen67 likes this.
  3. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    That's sweet XD
     
    Alkéryn and Margen67 like this.
  4. Arif

    Arif GBAtemp Regular

    Member
    126
    42
    Feb 12, 2006
    Netherlands
    This is great!
    If you accept requests, could you disable the theme in a future version. Or alternatively, add a dark theme option.
     
  5. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    I'll see what I can do. Hopefully next version will also give you an estimate on the time remaining. And I might see if I can get steveice10 to reinit a network transfer after a failed/successful transfer so then I could add queues. Would be like the install all cias from the directory but through the network.
     
  6. d0k3

    d0k3 3DS Homebrew Legend

    Member
    2,558
    2,571
    Dec 3, 2004
    Gambia, The
    Great work! But, does this also require the JRE installed? I prefer not to have this on my system and it would actually be the only software to use this.
     
  7. cearp

    cearp the ticket master

    Member
    7,399
    4,645
    May 26, 2008
    Tuvalu
    i guess so because - "Simply put SocketPunch.jar into your folder containing CIA's on your pc."
     
  8. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    Sorry, JRE is required to run this. If you want I could uploaded a self-contained java package? File size is around 30mbs tho...
     
  9. d0k3

    d0k3 3DS Homebrew Legend

    Member
    2,558
    2,571
    Dec 3, 2004
    Gambia, The
    I personally would prefer the self-contained Java package, but I'm sure other users will view this differently. Plus, now you'll may update frequently, and uploading ~1MB is a lot less then ~30MB, and it's the same for the download (remember, not everyone has access to a stable XMByte / sec internet connection). If you want to add a (alternative?) version with prepackaged Java (I'd use that), I suggest you do so after reaching a final version. That way you'll have a lot less hassle with that. It's your decision, of course.
     
  10. Steveice10

    Steveice10 GBAtemp Maniac

    Member
    1,101
    1,641
    Jul 19, 2009
    United States
    I could easily make it so pressing start on the success screen takes you back to the network screen instead of the file browser. Is that what you mean?

    Something like, install succeeds, SocketPunch starts attempting to reconnect in a loop, user presses start to go back to the network screen, SocketPunch is able to connect, and FBI pops up confirmation on the 3DS.

    EDIT: Changed it in the latest release to make it not go back to the file browser immediately.
     
  11. Furrymatt

    Furrymatt GBAtemp Regular

    Member
    113
    26
    Feb 10, 2013
    United States
    Monroe, North Carolina
    Wow! Thanks for this!

    Do you know an eta for success? Its been on 0.8% for about 5 mins and the 2ds is saying reading info...

    Edit: Install failed!
    could not install aPP.
    Raw error:0xe0e083f2
    module: AM (0x20)
    level: usage (0x1c)
    summary: invalid arguement (0x7)
    Description: misaligned size (0x3f2)

    Im sure their is enough space on my sd card for this

    Edit I restarted it and now its working! lol maybe third times a charm :P
     
  12. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    I've found that if you wait to long on the confirmation window before pressing confirm it will almost 100% of the time return a misaligned size erro
     
  13. Loaffy

    Loaffy GBAtemp Regular

    Member
    136
    45
    Mar 27, 2015
    Canada
    I kept getting the exact same error at different points of installing a ~500MB .cia. I tried 3 times but all 3 failed. Installing a small .cia (actually an updated version of FBI) worked fine, but I just gave up on trying to install those big .cias with socketpunch and went back to playing some games. Just seems like a packet is getting dropped or sent incorrectly, or maybe received incorrectly by FBI. Hard to say where the issue lies. But at least SD card installation works great - I just have to use a crappy old laptop for my only SD reader but oh well.

    edit: just for clarity it would fail at random points in the middle of installation. Highest was around 66%, lowest was around 25%, and there was one somewhere in the middle.
     
  14. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    Interesting, I'll test it out again.

    Thanks! I'll have a look soon. Need to wake up and have my coffee haha
     
    Furrymatt likes this.
  15. Furrymatt

    Furrymatt GBAtemp Regular

    Member
    113
    26
    Feb 10, 2013
    United States
    Monroe, North Carolina
    My install crashed when my laptop went into sleep mode :/ do you know where I can uninstall the cia that didnt finish installing?
     
  16. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    You will have to ask steveice10 on that one, tho I don't think it stays. I might be wrong
     
  17. Furrymatt

    Furrymatt GBAtemp Regular

    Member
    113
    26
    Feb 10, 2013
    United States
    Monroe, North Carolina
    alrighty and yes its on my sd somewhere because i went for 3 gigs to 550 mb MH4 btw lol
     
  18. WhoAmI?

    WhoAmI? PASTA's dirty animal

    Member
    1,273
    1,009
    Mar 15, 2015
    Poké Ball
    It doesn't work for me :( I have JRE installed...
    [​IMG]
     
  19. Joshtech
    OP

    Joshtech Advanced Member

    Newcomer
    70
    87
    Dec 1, 2014
    Queensland
    What version of JRE are you using?
     
  20. WhoAmI?

    WhoAmI? PASTA's dirty animal

    Member
    1,273
    1,009
    Mar 15, 2015
    Poké Ball
    I downloaded and installed JRE7 (latest), 64bit.