Help With LUA

Discussion in '3DS - Homebrew Development and Emulators' started by 100pcrack, Nov 24, 2015.

  1. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    1
    Sep 18, 2015
    Hackin'
    Hello Gbatemp:
    I was making a simple download-and-unzip LUA file changing the URL, but when I open it my screen goes red and the program doesn't read.
    Could anyone help me?
    Code:
    if Network.isWifiEnabled() then
        Network.downloadFile("http://100pcrack.tk/files/boot.3dsx.zip","/boot.3dsx.zip")
        System.extractZIP("/boot.3dsx.zip",System.currentDirectory().."/")
        System.deleteFile("/boot.3dsx.zip")
    end
    System.exit()
    The file that I want to download is attached at the end of the thread.
    Thanks!
     

    Attached Files:

    Last edited by 100pcrack, Nov 24, 2015 - Reason: Fixed Link
  2. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    You need to use a descriptor to enable httpc service usage.
     
  3. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    1
    Sep 18, 2015
    Hackin'
    How do I do that?
     
  4. machinamentum

    machinamentum GBAtemp Regular

    Member
    4
    Jul 5, 2015
    United States
    Note that you're attempting to download "boot.3dsx.rar" but you're feeding System.extractZIP "boot.3dsx.rar.zip", which shouldn't exist under these conditions, so you're potentially getting a file not found error and if that file does exist, the file you're downloading is RAR which won't decompress using a ZIP decompressor and, in the best case scenario, should silently fail.
     
  5. 100pcrack
    OP

    100pcrack GBAtemp Advanced Fan

    Member
    1
    Sep 18, 2015
    Hackin'
    Fixed that and still not working.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice