Homebrew Help With LUA

  • Thread starter Thread starter Deleted User
  • Start date Start date
  • Views Views 984
  • Replies Replies 4
D

Deleted User

Guest
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!
 

Attachments

Last edited by , , Reason: Fixed Link
Code:
if Network.isWifiEnabled() then
    Network.downloadFile("http://100pcrack.tk/files/boot.3dsx.rar","/boot.3dsx.rar")
    System.extractZIP("/boot.3dsx.rar.zip",System.currentDirectory().."/")
    System.deleteFile("/boot.3dsx.rar.zip")
end
System.exit()
The file that I want to download is attached at the end of the thread.
Thanks!
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.
 
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.
Fixed that and still not working.
 

Site & Scene News

Popular threads in this forum