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 ...
-
03-21-2007, 05:21 AM #6301QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- beside my PC
- Beiträge
- 520
- Points
- 6.446
- Level
- 52
- Downloads
- 0
- Uploads
- 0
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)"
-
03-21-2007, 05:33 AM #6302QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
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.
-
03-21-2007, 06:12 AM #6303QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- beside my PC
- Beiträge
- 520
- Points
- 6.446
- Level
- 52
- Downloads
- 0
- Uploads
- 0
i do have the folders...i tried just ms0: too it doesnt work
-
03-21-2007, 06:17 AM #6304lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
opps, sorry its \n
-
03-21-2007, 06:17 AM #6305QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
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.
-
03-21-2007, 06:23 AM #6306lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
Whats the code your using?
-
03-21-2007, 06:40 AM #6307QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- beside my PC
- Beiträge
- 520
- Points
- 6.446
- Level
- 52
- Downloads
- 0
- Uploads
- 0
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
-
03-21-2007, 07:51 AM #6308QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
im getting the same error but with SG57s test script its ok...
Zitat von ai3gtmc
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
03-21-2007, 08:00 AM #6309QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- beside my PC
- Beiträge
- 520
- Points
- 6.446
- Level
- 52
- Downloads
- 0
- Uploads
- 0
Zitat von myschoo
hmmm this is not good...
we need to find a way to fix this thing in our code or psp
-
03-21-2007, 08:10 AM #6310QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
its something to do with OUR scripts... i just tested my other older code and worked, but not new one :/
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
03-21-2007, 08:25 AM #6311QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- beside my PC
- Beiträge
- 520
- Points
- 6.446
- Level
- 52
- Downloads
- 0
- Uploads
- 0
hmmm scripts?...it works on my friends psp...
-
03-21-2007, 08:27 AM #6312QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
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
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
03-21-2007, 12:28 PM #6313QJ Gamer Blue
- Registriert seit
- Oct 2005
- Ort
- North Carolina
- Beiträge
- 181
- Points
- 5.393
- Level
- 47
- Downloads
- 0
- Uploads
- 0
You script it, just use notepad and save it as a .lua file
Zitat von Frenchb0yenius
-
03-21-2007, 12:30 PM #6314QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
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
-
03-21-2007, 12:53 PM #6315QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
nah that doesnt matter
and yeh i tried another luaplayer aswell -_-[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
03-21-2007, 02:30 PM #6316lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
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.
-
03-21-2007, 02:54 PM #6317QJ Gamer Green
- Registriert seit
- Aug 2006
- Ort
- Cross Country Course
- Beiträge
- 794
- Points
- 6.863
- Level
- 54
- Downloads
- 0
- Uploads
- 0
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)
-
03-21-2007, 03:24 PM #6318I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Use the animation lib by Grimfate126. Google it if you have trouble finding it.
Zitat von PSPgamer512

-
03-21-2007, 05:55 PM #6319QJ Gamer Green
- Registriert seit
- Aug 2006
- Ort
- Cross Country Course
- Beiträge
- 794
- Points
- 6.863
- Level
- 54
- Downloads
- 0
- Uploads
- 0
thanks, i've downloaded it but ill need to extract it on my other computer, this one doesn't have winrar...
Zitat von Access_Denied
-
03-21-2007, 06:53 PM #6320
My values are stored as variables, so this doesn't work. If i have:
Zitat von Anti-QJ
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.Code:test1 = 41 test2 = 3 tests = "\ntest1 \ntest2" file:write(tests) file:close()
-
03-21-2007, 07:17 PM #6321
just use:
Zitat von ro0kie42
It will return the variable value instead of the stringCode:tests = "\n" .. test1 .. "\n" .. test2
-
03-21-2007, 07:28 PM #6322QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
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.
-
03-21-2007, 07:43 PM #6323QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- beside my PC
- Beiträge
- 520
- Points
- 6.446
- Level
- 52
- Downloads
- 0
- Uploads
- 0
Zitat von xpack
doesnt work..
-
03-21-2007, 09:54 PM #6324words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
ai - By default, the CWD (current working directory) is wherever the EBOOT.PBP is. Meaning loading an image:
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.Code:myimage = Image.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
-
03-21-2007, 11:21 PM #6325QJ Gamer Green
- Registriert seit
- Jan 2007
- Ort
- beside my PC
- Beiträge
- 520
- Points
- 6.446
- Level
- 52
- Downloads
- 0
- Uploads
- 0
Zitat von SG57
yesw i know that but still it wont let me copy anyfile
-
03-22-2007, 06:21 AM #6326QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
the problem is, we CANT write or read from MS...
Zitat von SG57
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 -_-[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
03-22-2007, 09:07 AM #6327QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
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.
-
03-22-2007, 10:04 AM #6328QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
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[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
03-22-2007, 11:35 AM #6329Developer

- Registriert seit
- Oct 2006
- Ort
- San Diego
- Beiträge
- 177
- Points
- 4.205
- Level
- 41
- Downloads
- 0
- Uploads
- 0
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.
-
03-22-2007, 12:29 PM #6330QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
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...[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]


LinkBack URL
About LinkBacks
Mit Zitat antworten


Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum