QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

is LUA hard to learn?

This is a discussion on is LUA hard to learn? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; im so noobish at programing. is it super hard to learn LUA? is that the thing i should start with ...

Reply
 
LinkBack Thread Tools
Old 04-05-2006, 01:36 AM   #1
 
Join Date: Jan 2006
Location: stevens bumhole
Posts: 10,308
Trader Feedback: 0
Question is LUA hard to learn?

im so noobish at programing. is it super hard to learn LUA? is that the thing i should start with if i havent ever tryed coding before and want to learn?
madsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 01:41 AM   #2

Developer
 
kozine's Avatar
 
Join Date: Mar 2006
Location: Isle of Wight
Posts: 491
Trader Feedback: 0
Default

I have experience in HTML and PHP but never actually tried this type of Programming. Its relativatly easy to learn. Ive been doing it for about three weeks now and ive learnt a hella of lot. Take a look at these tuts. These are where I learnt from:

http://www.evilmana.com
http://www.scriptscribbler.com/psp/lua/lesson01.htm
http://www.scriptscribbler.com/psp/lua/lesson02.htm

Hope this helps
__________________


PM me for a sig like this!

http://dspspforums.com/forums/index.php SIGN UP NOW!
kozine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 01:51 AM   #3
 
Join Date: Jan 2006
Location: stevens bumhole
Posts: 10,308
Trader Feedback: 0
Default

thank you so much! il start learning noow!
madsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 02:23 AM   #4
 
Join Date: Jan 2006
Location: stevens bumhole
Posts: 10,308
Trader Feedback: 0
Default

damn, its not that hard! hurray! im going to make my own game! thanks for the tutorial again kozine!
madsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 02:34 AM   #5
 
Join Date: Jan 2006
Location: stevens bumhole
Posts: 10,308
Trader Feedback: 0
Default

need help! im going through the second tutorial and i have a problem. ive done exactly as it says:

System.usbDiskModeActivat e()

pink = Color.new(255, 0 , 153)
blue = Color.new(0 , 153, 255)
orange = Color.new(255, 102, 0)
gray = Color.new(153, 153, 153)
black = Color.new(0 , 0 , 0)

screenrint(194, 136, "Loading: 0%", pink)
screen.flip()

background = Image.load("images/background.jpg")

screen:clear()
screenrint(194, 136, "Loading: 20%", pink)
screen.flip()

circle = Image.load("images/buttons/circle_button.png")
down = Image.load("images/buttons/down_arrow.png")

screen:clear()
screenrint(194, 136, "Loading: 40%", pink)
screen.flip()

l = Image.load("images/buttons/left_trigger.png")
left = Image.load("images/buttons/left_arrow.png")

screen:clear()
screenrint(194, 136, "Loading: 60%", pink)
screen.flip()

r = Image.load("images/buttons/right_trigger.png")
right = Image.load("images/buttons/right_arrow.png")
boltsnd = Sound.load("music/comp.wav")

screen:clear()
screenrint(194, 136, "Loading: 80%", pink)
screen.flip()

square = Image.load("images/buttons/square_button.png")
triangle = Image.load("images/buttons/triangle_button.png")

screen:clear()
screenrint(194, 136, "Loading: 91%", pink)
screen.flip()

up = Image.load("images/buttons/up_arrow.png")
x = Image.load("images/buttons/cross_button.png")
splash = Image.load("images/lua.gif")

screen:clear()
screenrint(194, 136, "Loading: 100%", pink)
screen.flip()

screen.waitVblankStart(60 )

screen:blit(0, 0, splash, false)
screen.waitVblankStart()
screen.flip()

boltsndlay()

screen.waitVblankStart(24 0)
Music.volume(128)
screen.flip()

-------------
the psp freezez at 90%! what am i doing wrong?
madsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 03:02 AM   #6
 
mnky's Avatar
 
Join Date: Feb 2006
Location: Between your mothers legs.
Posts: 2,518
Trader Feedback: 0
Default

well if you dont have 1.5 youll need to get rid of this line
System.usbDiskModeActivat e()
and make sur you have the exact right name for your images, lua is case sensitive
mnky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 03:13 AM   #7
Think, Do, Gloat.
 
TPTaylor's Avatar
 
Join Date: Nov 2005
Location: England, Norwich
Posts: 1,422
Trader Feedback: 0
Default

I thought there had to be a while true to loop in lua scripts? I don't see one there?
TPTaylor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 03:31 AM   #8
11th Squad Captain
 
c5cha7's Avatar
 
Join Date: Jun 2005
Location: You are here -----> 名前: アダム | 飲むコー&#1
Posts: 2,562
Trader Feedback: 0
Default

You wanna know how i started learning lua??
I used no tutorials... BUT there was a game called
GORED awhile back, i thought that it may be a good
idea to have a small look around, then boom
(I got so caught up in lua i basically learnt it..)
But all fun ended when i tried to create a game with no help etc...
Just when Virtue said to me online AIM "Do you even know lua?"
i started thinking.. then i got serious about it and boom,
i learnt everything i needed again and more.
The best thing was, I created a Lua OS before i actually
properly knew lua...

Thats my life story, and try drinking coffee while coding
as it helps alot!
__________________
FAVORITE GAME! - BEER & ANIME! - SO EXICTING!

開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋
Currently Working On: - Flashmod V2.50 - Flashmod V2.60
Currently Drinking: Coffee! - 私はコーヒーを飲む
Chao Garden: DEMO v0.6
Chao Garden V0.5b Review!
c5cha7 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 03:44 AM   #9
 
PopcOrn DeVil's Avatar
 
Join Date: Jan 2006
Location: Western Australia
Posts: 1,044
Trader Feedback: 0
Default

The usb part doesn't work on our higher versions .
PopcOrn DeVil is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 03:48 AM   #10
 
Join Date: Jan 2006
Location: stevens bumhole
Posts: 10,308
Trader Feedback: 0
Default

Quote:
Originally Posted by c5cha7
You wanna know how i started learning lua??
I used no tutorials... BUT there was a game called
GORED awhile back, i thought that it may be a good
idea to have a small look around, then boom
(I got so caught up in lua i basically learnt it..)
But all fun ended when i tried to create a game with no help etc...
Just when Virtue said to me online AIM "Do you even know lua?"
i started thinking.. then i got serious about it and boom,
i learnt everything i needed again and more.
The best thing was, I created a Lua OS before i actually
properly knew lua...

Thats my life story, and try drinking coffee while coding
as it helps alot!
cool! btw, im a coffee adaict so that should not be a problem. il try as hard as i can on this. i want to make my dark flower game more playble! i have 1.50 btw so i dont see the problem that happends! :P
madsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 05:08 AM   #11

Save The World
 

 
Join Date: Oct 2005
Location: Bedford, England
Posts: 1,389
Trader Feedback: 0
Default

I think your problem is that its trying to load a .gif file, chage the file to a .png and try again.
__________________
Vaza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 06:37 AM   #12

is not posting very often
 
Glynnder's Avatar
 
Join Date: Feb 2006
Location: omnipresent
Posts: 5,161
Trader Feedback: 0
Default

I like your attitude - reminds me of me.

But its a bit ni-ive however thats spelt, you can't just go - oooo this looks quite easy lets make a game, it'll take time. Good luck though and even when ur situationseems hopeless keep trying, It took me 7 hours to get ONE thing to work in one of my apps
__________________
Quote:
Originally Posted by Abe
Either way, if you don't know, don't guess. Stick to answering questions about stuff you're qualified to answer, like Pokemon questions or something along those lines.
http://forums.qj.net/501501-post26.html
Glynnder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 07:04 AM   #13
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default

I started coding for LUA from GMOD(Garry's Mod For Half-Life 2) and been coding since the version 9.0.3 or sumthing like that came out It's really easy :P
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 07:08 AM   #14
 
EminentJonFrost's Avatar
 
Join Date: Dec 2005
Location: Here
Posts: 2,715
Trader Feedback: 0
Default

Quote:
Originally Posted by madsoul
need help! im going through the second tutorial and i have a problem. ive done exactly as it says:

System.usbDiskModeActivat e()

pink = Color.new(255, 0 , 153)
blue = Color.new(0 , 153, 255)
orange = Color.new(255, 102, 0)
gray = Color.new(153, 153, 153)
black = Color.new(0 , 0 , 0)

screenrint(194, 136, "Loading: 0%", pink)
screen.flip()

background = Image.load("images/background.jpg")

screen:clear()
screenrint(194, 136, "Loading: 20%", pink)
screen.flip()

circle = Image.load("images/buttons/circle_button.png")
down = Image.load("images/buttons/down_arrow.png")

screen:clear()
screenrint(194, 136, "Loading: 40%", pink)
screen.flip()

l = Image.load("images/buttons/left_trigger.png")
left = Image.load("images/buttons/left_arrow.png")

screen:clear()
screenrint(194, 136, "Loading: 60%", pink)
screen.flip()

r = Image.load("images/buttons/right_trigger.png")
right = Image.load("images/buttons/right_arrow.png")
boltsnd = Sound.load("music/comp.wav")

screen:clear()
screenrint(194, 136, "Loading: 80%", pink)
screen.flip()

square = Image.load("images/buttons/square_button.png")
triangle = Image.load("images/buttons/triangle_button.png")

screen:clear()
screenrint(194, 136, "Loading: 91%", pink)
screen.flip()

up = Image.load("images/buttons/up_arrow.png")
x = Image.load("images/buttons/cross_button.png")
splash = Image.load("images/lua.gif")

screen:clear()
screenrint(194, 136, "Loading: 100%", pink)
screen.flip()

screen.waitVblankStart(60 )

screen:blit(0, 0, splash, false)
screen.waitVblankStart()
screen.flip()

boltsndlay()

screen.waitVblankStart(24 0)
Music.volume(128)
screen.flip()

-------------
the psp freezez at 90%! what am i doing wrong?
Lua doesnt load gifs.
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]
EminentJonFrost is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 07:28 AM   #15

AKA Homer
 
Moonchild's Avatar
 
Join Date: Jan 2006
Location: Sweden
Posts: 1,779
Trader Feedback: 0
Default

Quote:
Originally Posted by Glynnder- PSPro
I like your attitude - reminds me of me.

But its a bit ni-ive however thats spelt, you can't just go - oooo this looks quite easy lets make a game, it'll take time. Good luck though and even when ur situationseems hopeless keep trying, It took me 7 hours to get ONE thing to work in one of my apps
You mean naive?

Anyway, I first started with some coding for lua yesterday. And that was to help Kozine. So I'm not that experienced, but I learn fast
__________________


Click Here if you want a Winamp Currently Playing Userbar like the one above.
Moonchild is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 07:48 AM   #16
 
Join Date: Jan 2006
Location: stevens bumhole
Posts: 10,308
Trader Feedback: 0
Default

thanks! now it works!
madsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 09:13 AM   #17

Developer
 
kozine's Avatar
 
Join Date: Mar 2006
Location: Isle of Wight
Posts: 491
Trader Feedback: 0
Default

Yea and homer was a great help
__________________


PM me for a sig like this!

http://dspspforums.com/forums/index.php SIGN UP NOW!
kozine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-05-2006, 04:24 PM   #18
 
Altair's Avatar
 
Join Date: Jan 2006
Posts: 506
Trader Feedback: 0
Default

hmm i thought it was pretty similar to basic, or well that version you have on the TI-83. Thats how i learned coding, lol. I also know html and javascript. Also i learned to read a couple more, because i needed that to complete hack challenges. I think all languages are a bit alike. That is except for C and assembly ofcourse. Ofcourse there are different commands, but the way of coding is the same.
__________________
LUA manual:
[url]http://www.lua.org/manual/5.0/manual.html[/url]

LUA Wiki:
[url]http://wiki.ps2dev.org/psp:lua_player[/url]
Altair is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 03:31 AM   #19
Mindless Fanboy
 
Join Date: Mar 2006
Posts: 1,907
Trader Feedback: 0
Default

it isn't particularly hard. i am a total n00b but it is quiet easy to learn the basics then just build up from there. read yeldarbs tutorials. they are the best.
FLai is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 03:46 AM   #20
 
Altair's Avatar
 
Join Date: Jan 2006
Posts: 506
Trader Feedback: 0
Default

Also read PSPMillionair's they're really good aswell.
__________________
LUA manual:
[url]http://www.lua.org/manual/5.0/manual.html[/url]

LUA Wiki:
[url]http://wiki.ps2dev.org/psp:lua_player[/url]
Altair is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 04:19 AM   #21
 
PopcOrn DeVil's Avatar
 
Join Date: Jan 2006
Location: Western Australia
Posts: 1,044
Trader Feedback: 0
Default

Yeah I suggest you first read the yeldarb tutorials then www.evilmana.com's as you need a little bit of a gist for PSPMillionaires's but once you do they are extremely helpful!
PopcOrn DeVil is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 09:34 AM   #22
 
ct-boy's Avatar
 
Join Date: Feb 2006
Location: England
Posts: 1,037
Trader Feedback: 0
Default

I need help it tells me make a script.cmd file with notepad but when I do it it still is with the .txt extension what do i do?
__________________
I own a Playstation 3,PSP and a Wii add me on psn: azazin,

[QUOTE=TheMasterChef]Who gives a rat's ass about the size anyway?? It is not like you carry it around every day.[/QUOTE]
ct-boy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 09:45 AM   #23
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default

Open in notepad:
File->Save as->Saving extension:*(all)->script.cmd
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 09:46 AM   #24
 
ct-boy's Avatar
 
Join Date: Feb 2006
Location: England
Posts: 1,037
Trader Feedback: 0
Default

ok thanks
__________________
I own a Playstation 3,PSP and a Wii add me on psn: azazin,

[QUOTE=TheMasterChef]Who gives a rat's ass about the size anyway?? It is not like you carry it around every day.[/QUOTE]
ct-boy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 09:47 AM   #25
 
Rixorster's Avatar
 
Join Date: Apr 2006
Posts: 109
Trader Feedback: 0
Default

No problem ;3 (btw, if ya need any help, don't hesitate to ask me, i've been coding for lua like 6-8 months :P )
Rixorster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
hard , learn , lua

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 08:05 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us