Results 1 to 4 of 4

Thread: A big & oddness problem! Need everyones help!!

  
  1. #1
    zrx-power is offline -Hacks Newbie
    Join Date
    Apr 2007
    Posts
    30
    Rep Power
    13

    Default

    I had write these codes
    if ((io.open("ms0:/backups/saves/mod/topmenu_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/topmenu_plugin.rco","flash0:/vsh/resource/topmenu_plugin.rco","no")
    end

    if ((io.open("ms0:/backups/saves/mod/system_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/system_plugin.rco","flash0:/vsh/resource/system_plugin.rco","no")
    end

    if ((io.open("ms0:/backups/saves/mod/01-12.bmp","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/01-12.bmp","flash0:/vsh/resource/01-12.bmp","no")
    end

    if ((io.open("ms0:/backups/saves/mod/impose_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/impose_plugin.rco","flash0:/vsh/resource/impose_plugin.rco","no")
    end

    if ((io.open("ms0:/backups/saves/mod/system_plugin_fg.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/system_plugin_fg.rco","flash0:/vsh/resource/system_plugin_fg.rco","no")
    end

    if ((io.open("ms0:/backups/saves/mod/system_plugin_bg.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/system_plugin_bg.rco","flash0:/vsh/resource/system_plugin_bg.rco","no")
    end

    if ((io.open("ms0:/backups/saves/mod/ltn0.pgf","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/ltn0.pgf","flash0:/font/ltn0.pgf","no")
    end

    if ((io.open("ms0:/backups/saves/mod/opening_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/opening_plugin.rco","flash0:/vsh/resource/opening_plugin.rco","no")
    end

    if ((io.open("ms0:/backups/saves/mod/gameboot.pmf","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/gameboot.pmf","flash0:/vsh/resource/gameboot.pmf","no")
    end

    if ((io.open("ms0:/backups/saves/mod/savedata_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/savedata_plugin.rco","flash0:/vsh/resource/savedata_plugin.rco","no")
    end

    if ((io.open("ms0:/backups/saves/mod/game_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/game_plugin.rco","flash0:/vsh/resource/game_plugin.rco","no")
    end
    But when i run it ~it gives me
    error:cannot find 'ms0:/backups/saves/mod/savedata_plugin.rco'
    Error:No cript file found
    but the savedata_plugin.rco is in the floder!
    when i remove the savedata_plugin.rco it gives me
    error:cannot find 'ms0:/backups/saves/mod/game_plugin.rco'
    Error:No cript file found
    but the game_plugin.rco is in the floder!

    when i remove these two file from the floder,it won't run into error!!
    i think the problem might be in the file open&close

    so i chang these codes into
    if ((io.open("ms0:/backups/saves/mod/topmenu_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/topmenu_plugin.rco","flash0:/vsh/resource/topmenu_plugin.rco","no")
    io.open("ms0:/backups/saves/mod/topmenu_plugin.rco","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/system_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/system_plugin.rco","flash0:/vsh/resource/system_plugin.rco","no")
    io.open("ms0:/backups/saves/mod/system_plugin.rco","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/01-12.bmp","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/01-12.bmp","flash0:/vsh/resource/01-12.bmp","no")
    io.open("ms0:/backups/saves/mod/01-12.bmp","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/impose_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/impose_plugin.rco","flash0:/vsh/resource/impose_plugin.rco","no")
    io.open("ms0:/backups/saves/mod/impose_plugin.rco","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/system_plugin_fg.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/system_plugin_fg.rco","flash0:/vsh/resource/system_plugin_fg.rco","no")
    io.open("ms0:/backups/saves/mod/system_plugin_fg.rco","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/system_plugin_bg.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/system_plugin_bg.rco","flash0:/vsh/resource/system_plugin_bg.rco","no")
    io.open("ms0:/backups/saves/mod/system_plugin_bg.rco","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/ltn0.pgf","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/ltn0.pgf","flash0:/font/ltn0.pgf","no")
    io.open("ms0:/backups/saves/mod/ltn0.pgf","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/opening_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/opening_plugin.rco","flash0:/vsh/resource/opening_plugin.rco","no")
    io.open("ms0:/backups/saves/mod/opening_plugin.rco","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/gameboot.pmf","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/gameboot.pmf","flash0:/vsh/resource/gameboot.pmf","no")
    io.open("ms0:/backups/saves/mod/gameboot.pmf","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/savedata_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/savedata_plugin.rco","flash0:/vsh/resource/savedata_plugin.rco","no")
    io.open("ms0:/backups/saves/mod/savedata_plugin.rco","r"):close()
    end

    if ((io.open("ms0:/backups/saves/mod/game_plugin.rco","r"))==NULL) then
    a=a+1
    else
    System.writeFile("ms0:/backups/saves/mod/game_plugin.rco","flash0:/vsh/resource/game_plugin.rco","no")
    io.open("ms0:/backups/saves/mod/game_plugin.rco","r"):close()
    end
    But it runs into the same error as before!

    Can some one give me a help??
    Writting this makes me tried~~


  2. #2
    Zora 182 is offline -Hacks Enthusiast
    Join Date
    Jun 2006
    Location
    Hyrule Rank:Hero
    Posts
    418
    Rep Power
    14

    Default

    I'm not too good in lua, but if you need help on this and fast, go over to evilmana.com, they helped me with some of my scripts

  3. #3
    pirata nervo is offline Programmer -Hacks Titan
    Join Date
    Mar 2007
    Posts
    5,529
    Rep Power
    18

    Default

    When you run it with your psp?:
    verify if that .rco files are decrypted.
    Console Addicted - The news about your console, every day!
    Console Addicted Forums

  4. #4
    zrx-power is offline -Hacks Newbie
    Join Date
    Apr 2007
    Posts
    30
    Rep Power
    13

    Default

    Quote Originally Posted by pirata nervo
    When you run it with your psp?:
    verify if that .rco files are decrypted.
    Yes all the rco files is good~and decrypted~
    but the problem is still out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •