Seite 211 von 342 ErsteErste ... 111 161 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 261 311 ... LetzteLetzte
Zeige Ergebnis 6.301 bis 6.330 von 10238

Lua Programming Help Thread

This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; hmm something is wrong in my psp...i dont think its the code coz it works on my friend's psp...i cant ...

  
  1. #6301
    QJ Gamer Green
    Points: 6.446, Level: 52
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    beside my PC
    Beiträge
    520
    Points
    6.446
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    hmm something is wrong in my psp...i dont think its the code coz it works on my friend's psp...i cant flash or copy a file from flash to ms0

    i dont think its the flash coz if I copy a file from flash to ms0 i get the error msg saying "cannot find ms0:\(foldername)"



  2. #6302
    QJ Gamer Gold
    Points: 12.189, Level: 72
    Level completed: 35%, Points required for next Level: 261
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Under Your Bed
    Beiträge
    3.083
    Points
    12.189
    Level
    72
    Downloads
    0
    Uploads
    0

    Standard

    Try putting in a simpler place and then and folder by folder. And that method does not create folders so try making sure you have all the folders you need.

  3. #6303
    QJ Gamer Green
    Points: 6.446, Level: 52
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    beside my PC
    Beiträge
    520
    Points
    6.446
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    i do have the folders...i tried just ms0: too it doesnt work

  4. #6304
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    opps, sorry its \n

  5. #6305
    QJ Gamer Gold
    Points: 12.189, Level: 72
    Level completed: 35%, Points required for next Level: 261
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Under Your Bed
    Beiträge
    3.083
    Points
    12.189
    Level
    72
    Downloads
    0
    Uploads
    0

    Standard

    Try using my app FileFlasher to see if you can create backups. If not then its your psp. If you can then it may just be your code.

  6. #6306
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    Whats the code your using?

  7. #6307
    QJ Gamer Green
    Points: 6.446, Level: 52
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    beside my PC
    Beiträge
    520
    Points
    6.446
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    i can backup using pspfiler i dont think theres a problem in the code coz it works on my friend's psp
    -= Double Post =-
    anyway which is better LUA or C?

    i study both at the same time...
    Geändert von ai3gtmc (03-21-2007 um 06:50 AM Uhr) Grund: Automerged Doublepost

  8. #6308
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ai3gtmc
    hmm something is wrong in my psp...i dont think its the code coz it works on my friend's psp...i cant flash or copy a file from flash to ms0

    i dont think its the flash coz if I copy a file from flash to ms0 i get the error msg saying "cannot find ms0:\(foldername)"
    im getting the same error but with SG57s test script its ok...

  9. #6309
    QJ Gamer Green
    Points: 6.446, Level: 52
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    beside my PC
    Beiträge
    520
    Points
    6.446
    Level
    52
    Downloads
    0
    Uploads
    0

    Angry

    Zitat Zitat von myschoo
    im getting the same error but with SG57s test script its ok...

    hmmm this is not good... we need to find a way to fix this thing in our code or psp

  10. #6310
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    its something to do with OUR scripts... i just tested my other older code and worked, but not new one :/

  11. #6311
    QJ Gamer Green
    Points: 6.446, Level: 52
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    beside my PC
    Beiträge
    520
    Points
    6.446
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    hmmm scripts?...it works on my friends psp...

  12. #6312
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    thats strange o_O

    ok i tried everything and it doesnt work -_-
    thats pain
    -= Double Post =-
    ok i found that it cant WRITE or READ from MS... now i need to find out why...
    Geändert von myschoo (03-21-2007 um 10:57 AM Uhr) Grund: Automerged Doublepost

  13. #6313
    QJ Gamer Blue
    Points: 5.393, Level: 47
    Level completed: 22%, Points required for next Level: 157
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    North Carolina
    Beiträge
    181
    Points
    5.393
    Level
    47
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Frenchb0yenius
    I might sound like a n00b saying this, but how do you write lua code???
    You script it, just use notepad and save it as a .lua file

  14. #6314
    QJ Gamer Gold
    Points: 12.189, Level: 72
    Level completed: 35%, Points required for next Level: 261
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Under Your Bed
    Beiträge
    3.083
    Points
    12.189
    Level
    72
    Downloads
    0
    Uploads
    0

    Standard

    Try redownloading another Luaplayer Mod or whatever you use. And dont forget to use "System.currentDirectory( "ms0:/whatever")" that set the psp to read from the memory stick
    Dont know if that helps any

  15. #6315
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    nah that doesnt matter

    and yeh i tried another luaplayer aswell -_-

  16. #6316
    lol
    Points: 20.859, Level: 91
    Level completed: 2%, Points required for next Level: 491
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Whittier, CA
    Beiträge
    5.791
    Points
    20.859
    Level
    91
    Downloads
    0
    Uploads
    0

    Standard

    None of them are "better" than the other, Its how you use them, I would say LUA but thats just me, Do whatever you want to do.

  17. #6317
    QJ Gamer Green
    Points: 6.863, Level: 54
    Level completed: 57%, Points required for next Level: 87
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Cross Country Course
    Beiträge
    794
    Points
    6.863
    Level
    54
    Downloads
    0
    Uploads
    0

    Standard

    anyone wanna help me figure out this problem. I can't get a basic animation code working. when i start my game i see the character standing there but when i try to move him I get an error saying:
    attempt to perform arithmetic on global 'Timer' (a table value)

  18. #6318
    I'm Baaaack!
    Points: 17.067, Level: 83
    Level completed: 44%, Points required for next Level: 283
    Overall activity: 52,0%

    Registriert seit
    May 2006
    Ort
    Nowhere
    Beiträge
    2.186
    Points
    17.067
    Level
    83
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von PSPgamer512
    anyone wanna help me figure out this problem. I can't get a basic animation code working. when i start my game i see the character standing there but when i try to move him I get an error saying:
    attempt to perform arithmetic on global 'Timer' (a table value)
    Use the animation lib by Grimfate126. Google it if you have trouble finding it.

  19. #6319
    QJ Gamer Green
    Points: 6.863, Level: 54
    Level completed: 57%, Points required for next Level: 87
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Cross Country Course
    Beiträge
    794
    Points
    6.863
    Level
    54
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Access_Denied
    Use the animation lib by Grimfate126. Google it if you have trouble finding it.
    thanks, i've downloaded it but ill need to extract it on my other computer, this one doesn't have winrar...

  20. #6320
    Developer
    Points: 6.074, Level: 50
    Level completed: 62%, Points required for next Level: 76
    Overall activity: 0%

    Registriert seit
    Sep 2005
    Beiträge
    270
    Points
    6.074
    Level
    50
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Anti-QJ
    Im not TOO Sure on this but...
    Code:
    file = io.open("HS.txt","w")
      highscore = "/n69 /n47"
      file:write(highscore)
    file:close()
    /n is a line break, So it will write

    69
    47
    My values are stored as variables, so this doesn't work. If i have:
    Code:
    test1 = 41
    test2 = 3 
    
    
    tests = "\ntest1 \ntest2"
    file:write(tests)
    file:close()
    it will just write test1 and test2 as strings (text). What i need is to be able to write the values of test1 and test2 to the file on separate lines.

  21. #6321
    Points: 3.873, Level: 39
    Level completed: 49%, Points required for next Level: 77
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Beiträge
    47
    Points
    3.873
    Level
    39
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von ro0kie42
    My values are stored as variables, so this doesn't work. If i have:
    Code:
    test1 = 41
    test2 = 3 
    
    
    tests = "\ntest1 \ntest2"
    file:write(tests)
    file:close()
    it will just write test1 and test2 as strings (text). What i need is to be able to write the values of test1 and test2 to the file on separate lines.
    just use:
    Code:
    tests = "\n" .. test1 .. "\n" .. test2
    It will return the variable value instead of the string

  22. #6322
    QJ Gamer Gold
    Points: 11.629, Level: 70
    Level completed: 95%, Points required for next Level: 21
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Beiträge
    1.633
    Points
    11.629
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Yep, it's called concatenation. To concatenate, closer the quotes and then 2 dots and then the variable name. If you wanna open the quotes again after the variable, folow it with 2 more dots and reopen the quotes.

  23. #6323
    QJ Gamer Green
    Points: 6.446, Level: 52
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    beside my PC
    Beiträge
    520
    Points
    6.446
    Level
    52
    Downloads
    0
    Uploads
    0

    Unhappy

    Zitat Zitat von xpack
    Try redownloading another Luaplayer Mod or whatever you use. And dont forget to use "System.currentDirectory( "ms0:/whatever")" that set the psp to read from the memory stick
    Dont know if that helps any

    doesnt work..

  24. #6324
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    ai - By default, the CWD (current working directory) is wherever the EBOOT.PBP is. Meaning loading an image:
    Code:
    myimage = Image.load("image.png")
    Will load image.png from where the EBOOT is. So, by changing the CWD to the root of memory stick, youd have to place image.png on the root of your PSP in order for it find and load image.png.

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  25. #6325
    QJ Gamer Green
    Points: 6.446, Level: 52
    Level completed: 48%, Points required for next Level: 104
    Overall activity: 0%

    Registriert seit
    Jan 2007
    Ort
    beside my PC
    Beiträge
    520
    Points
    6.446
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    ai - By default, the CWD (current working directory) is wherever the EBOOT.PBP is. Meaning loading an image:
    Code:
    myimage = Image.load("image.png")
    Will load image.png from where the EBOOT is. So, by changing the CWD to the root of memory stick, youd have to place image.png on the root of your PSP in order for it find and load image.png.

    yesw i know that but still it wont let me copy anyfile

  26. #6326
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von SG57
    ai - By default, the CWD (current working directory) is wherever the EBOOT.PBP is. Meaning loading an image:
    Code:
    myimage = Image.load("image.png")
    Will load image.png from where the EBOOT is. So, by changing the CWD to the root of memory stick, youd have to place image.png on the root of your PSP in order for it find and load image.png.
    the problem is, we CANT write or read from MS...

    i.e. i was in iRshell, started lua app and pressed NOTE to take screenshot, even that didnt worked... somehow it disable ALL ms0:/ functions -_-

  27. #6327
    QJ Gamer Gold
    Points: 12.189, Level: 72
    Level completed: 35%, Points required for next Level: 261
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Under Your Bed
    Beiträge
    3.083
    Points
    12.189
    Level
    72
    Downloads
    0
    Uploads
    0

    Standard

    Try downgrading then upgrading back to your firmware. Unless you have a copy of your flash0 before the problem. I had a problem with IRSHELL as well now when I press 'O' when listening to music my psp crashs after doing the restart psp to vsh.

  28. #6328
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    ok i found the problem... PROBABLY...

    i think it was because i had opened 11 files...(io.open)
    when i reduce the number of files to 10, it works OK...

    but thanks for help anyway

  29. #6329
    Developer
    Points: 4.205, Level: 41
    Level completed: 28%, Points required for next Level: 145
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    San Diego
    Beiträge
    177
    Points
    4.205
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    Just out of curiosity, why would you be opening 10 file simultaneously? Usual practice is to open a file, read and store the data, then close the file before opening another. If your not careful you could corrupt your mem stick.

  30. #6330
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    ok coz i needed file check , i didnt know exactly how to do it so i just used:

    blah = io.open("file","r")
    if blah then
    boo = 1 else boo = 0
    end

    i tried to use blah:close() but if the file didnt exist, i got error...


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 08:59 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .