NOOB Info

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
NOODL3
Posts: 3
Joined: Mon Aug 21, 2006 5:14 am

NOOB Info

Post by NOODL3 »

ok i am very very new to lua but i know some basics. I started learning lua for the primarly purpose of game/application dev. for the psp. Right now i am a noob and need some resources and some guidence. I need to know what i need for me to be able to write programs on my pc, compile them(if needed) transfer them to my psp and run them. I have read the lua tutorial.
please dont flame me i just want to get to the point where i can just write my own programs and them test them on my psp, then if good enough maybe submit them to the public.
JC
Posts: 16
Joined: Fri Jun 02, 2006 9:30 am

Post by JC »

First off check out
http://www.luaplayer.org/

There you can download both windows and PSP versions of Lua Player.
You can use any text editor to edit your code.
You can test your programs on your PC using the windows version of LUAPlayer and then transfer the code to your PSP. The file extension for LUA is usually .lua and there is no need to compile. You should be aware that not all commands that work on the PSP version work on the PC version.


HTH,
JC
Remember, don't sweat the petty things
and don't pet the sweaty things.......
NOODL3
Posts: 3
Joined: Mon Aug 21, 2006 5:14 am

Post by NOODL3 »

that was very very helpfull and very well written, thank you

-NOODL3-
NOODL3
Posts: 3
Joined: Mon Aug 21, 2006 5:14 am

Post by NOODL3 »

One more question though, when in the read my for lua player for windows it says to open it with the command prompt with "luaplayer yourscript.lua" Thats not working for me, any suggestions. Thanks again

and yes i made a .lua file named yourscript
KawaGeo
Posts: 191
Joined: Sat Aug 27, 2005 6:52 am
Location: Calif Mountains

Post by KawaGeo »

The PC version of Lua Player is not up to date yet. You'll need to modify some in your code before attempting to run it on your PSP.

I am hoping someone would be able to update the PC version soon.
Geo Massar
Retired Engineer
JC
Posts: 16
Joined: Fri Jun 02, 2006 9:30 am

Post by JC »

Where have you installed luaplayer ?
You will probably need to give an explicit path to the luaplayer.exe.

The why I tend to do things is install something along the following:

1) install luaplayer in c:\luaplayer
2) Make a new directory for the game/app i am working on like
c:\luaplayer\test
3) So the file I am editing is c:\luaplayer\test\yourscript.lua
4) Open a command prompt and cd c:\luaplayer\test
5) from this directory run ..\luaplayer yourscript.lua


This should run the yourscript.lua file. There are probably other/better ways to structure things but this works for me.

If you are still having problems post the error you are getting and I may be able to shed some more light.

HTH,
JC
Remember, don't sweat the petty things
and don't pet the sweaty things.......
Post Reply