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!

C or LUA

This is a discussion on C or LUA within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; ok well i tried to start learning C but i was learning the wrong thing first and its a lot ...

Reply
 
LinkBack Thread Tools
Old 08-02-2008, 07:18 AM   #1
 
zeroxorxdiexskater's Avatar
 
Join Date: Sep 2006
Location: 3.03OE-C
Posts: 1,098
Trader Feedback: 0
Default C or LUA

ok well i tried to start learning C but i was learning the wrong thing first and its a lot harder than i expected, now somewhere i heard LUA is easier than C so should i stick with C or go to LUA
__________________
CuRrEnT fIrMwArE [SIZE="3"][FONT="Times New Roman"][COLOR="Red"][B][I][U]3.90 M33-2 SLIM TA-085V2 with TimeMachine 0.1[/U][/I][/B][/COLOR][/FONT][/SIZE]
[WIP] Trogdor! (ON HOLD converting to LUA, but almost caught up)
zeroxorxdiexskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 07:29 AM   #2
 
MiKeY188's Avatar
 
Join Date: Apr 2008
Location: Ireland
Posts: 979
Trader Feedback: 0
Default

its up to you c is also good for windows where i think lua is mainly PSP. C gives you 2 options. It also depends on what you want to make for the PSP.
MiKeY188 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 07:31 AM   #3
Enter Custom Title
 
Davee's Avatar
 
Join Date: Sep 2006
Real First Name: Davee
Location: Perth, Scotland
Posts: 1,041
Trader Feedback: 0
Default

Stick with C. Get some decent books though and you'll do fine.
Davee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 07:43 AM   #4
Enter Custom Title
 
Join Date: Feb 2006
Location: National Front Disco
Posts: 13,063
Trader Feedback: 0
Default

Quote:
Originally Posted by MiKeY188 View Post
its up to you c is also good for windows where i think lua is mainly PSP. C gives you 2 options. It also depends on what you want to make for the PSP.
You couldn't be more wrong. Games that have used Lua:

Aleph One
Company of Heroes
Crysis
Garry's Mod
Grim Fandango
PlayStation Home
Ragnarok Online
Star Wars: Empire at War and Universe at War: Earth Assault
The Guild 2
World of Warcraft
Moose is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 07:51 AM   #5

Developer
 
Nielkie's Avatar
 
Join Date: Jul 2006
Posts: 549
Trader Feedback: 0
Default

Go for a middle ground: Python.
__________________


Nielkie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 08:26 AM   #6
 
zeroxorxdiexskater's Avatar
 
Join Date: Sep 2006
Location: 3.03OE-C
Posts: 1,098
Trader Feedback: 0
Default

o sorry i forgot to mention i am planning on making games, simple ones
and if you decide why i should choose that give me reasons please
__________________
CuRrEnT fIrMwArE [SIZE="3"][FONT="Times New Roman"][COLOR="Red"][B][I][U]3.90 M33-2 SLIM TA-085V2 with TimeMachine 0.1[/U][/I][/B][/COLOR][/FONT][/SIZE]
[WIP] Trogdor! (ON HOLD converting to LUA, but almost caught up)
zeroxorxdiexskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 09:04 AM   #7

Developer
 
slicer4ever's Avatar
 
Join Date: Jul 2005
Location: everywhere
Posts: 3,357
Trader Feedback: 0
Default

lol, both are used for making games and applications, it's whatever the programmer wants to make, i'd say stick with c, but just slow down, learn some more of the basics(http://forums.qj.net/showpost.php?p=...5&postcount=32), you'll be fine
__________________
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
slicer4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 09:29 AM   #8
 
mohaas05's Avatar
 
Join Date: Jan 2007
Real First Name: mohaas05
Location: Land of honey
Just Played: San Andreas
Posts: 4,255
Trader Feedback: 0
Default

Quote:
Originally Posted by Moose Island View Post
You couldn't be more wrong. Games that have used Lua:

Aleph One
Company of Heroes
Crysis
Garry's Mod
Grim Fandango
PlayStation Home
Ragnarok Online
Star Wars: Empire at War and Universe at War: Earth Assault
The Guild 2
World of Warcraft
Lua is only used for certain scripts like missions, etc. Its not used in the actual game programming.
__________________
www.mohaas05.co.cc
mohaas05 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 09:32 AM   #9
Enter Custom Title
 
Join Date: Feb 2006
Location: National Front Disco
Posts: 13,063
Trader Feedback: 0
Default

Quote:
Originally Posted by mohaas05 View Post
Lua is only used for certain scripts like missions, etc. Its not used in the actual game programming.
I know... I did read the page I posted.
Moose is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 10:05 AM   #10
 
Join Date: Jan 2008
Posts: 612
Trader Feedback: 0
Default

"Lua is only used for certain scripts like missions, etc. Its not used in the actual game programming."
Tell that to the people who made Psychonauts. Lua is responsible for doing 2/3 of what happens in that game, C++ is used for the graphics and the very lowlevel engine.
TurtlesPwn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 12:20 PM   #11
 
Join Date: Apr 2008
Posts: 498
Trader Feedback: 0
Default

it depends on how much effort you are going to put into acctually coding. if you just want to do this for like 6 months, and then your going to quit or get bored with it, then do LUA if you think you might do this for alittle longer, then mabey like C. Although I do suggest Python, more powerful than lua, but it's still a scripting language and is pretty easy to learn.
PSProgramer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 12:28 PM   #12
 
zeroxorxdiexskater's Avatar
 
Join Date: Sep 2006
Location: 3.03OE-C
Posts: 1,098
Trader Feedback: 0
Default

i will be doing this for much longer than 6 months haha i am taking computer programming, web design, and classes like that this upcoming year in school so hopefully as school goes on this stuff will become much easier but im gonna stick with C i suppose
__________________
CuRrEnT fIrMwArE [SIZE="3"][FONT="Times New Roman"][COLOR="Red"][B][I][U]3.90 M33-2 SLIM TA-085V2 with TimeMachine 0.1[/U][/I][/B][/COLOR][/FONT][/SIZE]
[WIP] Trogdor! (ON HOLD converting to LUA, but almost caught up)
zeroxorxdiexskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 12:40 PM   #13

Developer
 
Join Date: Mar 2006
Posts: 1,026
Trader Feedback: 0
Default

Do yourself a favor and learn both
__________________

Check out my homebrew & C tutorials at http://insomniac.0x89.org/
Coder formerly known as Insomniac197

Quote:
tshirtz: what is irshell ??
Atarian_: it's where people who work for the IRS go when they die
Insert_Witty_Name is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 01:14 PM   #14
 
mohaas05's Avatar
 
Join Date: Jan 2007
Real First Name: mohaas05
Location: Land of honey
Just Played: San Andreas
Posts: 4,255
Trader Feedback: 0
Default

Lua is good for some things, like more simple applications. But it is not nearly as flexible as C for more specific tasks.
__________________
www.mohaas05.co.cc
mohaas05 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 05:53 PM   #15

Developer
 
yaustar's Avatar
 
Join Date: Jun 2006
Location: UK
Posts: 2,317
Trader Feedback: 0
Default

For a new programmer and out of the two languages you listed, Lua. However, it doesn't change the fact you STILL need to learn the basics thoroughly before jumping into any non-trivial development.

Personally, I would forget about PSP development for moment and work purely on the PC with Python which is a great language and is simple enough for beginners to great to grips with.
yaustar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 06:33 PM   #16
 
mohaas05's Avatar
 
Join Date: Jan 2007
Real First Name: mohaas05
Location: Land of honey
Just Played: San Andreas
Posts: 4,255
Trader Feedback: 0
Default

Or if you want to do C, you can start with Java. It has a very similar structure to C. This program is great at teaching it:

http://home.cc.gatech.edu/dorn/jeroo
__________________
www.mohaas05.co.cc
mohaas05 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 10:15 PM   #17
 
Join Date: May 2008
Posts: 46
Trader Feedback: 0
Default

If you are having trouble learning C then you need a better book (or better tutorials). Don't use PSP tutorials to learn C because quite frankly, most are rubbish. You won't learn C from them, they only teach you the 'how', not the 'why'. So people end up copypasting code thinking they 'know' how to do something but don't understand the logic behind it.

Sure you learn some code that draws some graphics and plays some sounds but you won't understand why a piece of code was written the way it was or how it really works. They also focus too heavily on how to use particular libraries & api's. You won't learn C programming this way.

Just stick with C, grab some good books and go through it step-by-step. Don't skip stuff and go straight to "i wanna create a game". Make sure you fully & completely understand one step before moving on to the next step.

Learning C shouldn't be hard, it is only hard when you are learning from crappy material.
pspersanonymous is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-02-2008, 10:51 PM   #18

lol
 
Anti-QuickJay's Avatar
 
Join Date: Aug 2006
Real First Name: Robert
Location: Whittier, CA
Just Played: Madden 10
Posts: 5,791
Trader Feedback: 0
Default

Learn Python for the computer first.
Anti-QuickJay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 12:38 AM   #19
Raining
 
wicked_fable's Avatar
 
My Mood: Relaxed
Join Date: Jun 2005
Real First Name: Daniel
Location: In The Fog...
Just Played: Persona 4
Posts: 545
Trader Feedback: 0
Default

Well, speaking as a beginner myself I started learning Lua first. I am also undertaking Python alongside of Lua and am going to take a course on C++ programming in school. For me this is pretty easy because I can learn some basic programming for the PSP which has helped me with learning Python. And Python is, in my opinion, a little bit more in line with some of the more powerful programming languages so it(from what I have seen of C++ from Herbert Shildt's "C++ From the Ground Up") helps me figure out C++ a little bit.

I am just a beginner but I just wanted to show you the way I see things and am learning currently.
__________________

Last edited by wicked_fable; 08-03-2008 at 12:58 AM..
wicked_fable is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 03:12 AM   #20
 
Join Date: Jul 2008
Location: Italy
Posts: 138
Trader Feedback: 0
Default

LUA is very limited, instead C is perfect to program any thing...
Gefa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 03:24 AM   #21

Developer
 
Nielkie's Avatar
 
Join Date: Jul 2006
Posts: 549
Trader Feedback: 0
Default

Quote:
Originally Posted by Gefa View Post
LUA is very limited, instead C is perfect to program any thing...
Not really. For writing basic (or even quite advanced) games, it's fine.
__________________


Nielkie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 11:54 AM   #22

I'm Baaaack!
 
Access_Denied's Avatar
 
Join Date: May 2006
Location: Waukegan,Illinois
Posts: 2,185
Trader Feedback: 0
Default

C.
-=Double Post Merge =-
Quote:
Originally Posted by Gefa View Post
LUA is very limited, instead C is perfect to program any thing...
Wrong. Since Lua is based on C, Lua can do everything C can do.
__________________

Last edited by Access_Denied; 08-03-2008 at 11:55 AM.. Reason: Automerged Doublepost
Access_Denied is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 12:21 PM   #23
 
Join Date: Jul 2007
Posts: 11
Trader Feedback: 0
Default

LUA more user friendly IMO.
giddo89 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 12:39 PM   #24
 
zeroxorxdiexskater's Avatar
 
Join Date: Sep 2006
Location: 3.03OE-C
Posts: 1,098
Trader Feedback: 0
Default

im gonna stick with c since ive been already learning about it, i will keep reading tutorials on C/++ and will add onto my game every once in a while, i am gonna take classes on computer programming (a general class on languages which will help me in all the languages) and might release a first version of my game (no guarantee when it will be released or how good it will be)
__________________
CuRrEnT fIrMwArE [SIZE="3"][FONT="Times New Roman"][COLOR="Red"][B][I][U]3.90 M33-2 SLIM TA-085V2 with TimeMachine 0.1[/U][/I][/B][/COLOR][/FONT][/SIZE]
[WIP] Trogdor! (ON HOLD converting to LUA, but almost caught up)
zeroxorxdiexskater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 12:47 PM   #25

I'm Baaaack!
 
Access_Denied's Avatar
 
Join Date: May 2006
Location: Waukegan,Illinois
Posts: 2,185
Trader Feedback: 0
Default

Quote:
Originally Posted by zeroxorxdiexskater View Post
im gonna stick with c since ive been already learning about it, i will keep reading tutorials on C/++ and will add onto my game every once in a while, i am gonna take classes on computer programming (a general class on languages which will help me in all the languages) and might release a first version of my game (no guarantee when it will be released or how good it will be)
That class would probably be a programming theory class. Programming Theory is the part of programming that is universal to all languages. Once you've got a handle on C, take a look at Lua, and you will realize that it's much easier for you to learn a second language.

Also, right choice with C, as it's much more versatile, since it's been ported to many different systems.
__________________
Access_Denied is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-03-2008, 12:53 PM   #26
No longer a community member.
 
a_noob's Avatar
 
Join Date: Sep 2006
Location: Over there.
Posts: 666
Trader Feedback: 0
Default

LOL, c isnt ported mate, rather there are compilers for most any system
a_noob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-04-2008, 04:03 AM   #27

Developer
 
yaustar's Avatar
 
Join Date: Jun 2006
Location: UK
Posts: 2,317
Trader Feedback: 0
Default

Quote:
Originally Posted by zeroxorxdiexskater View Post
i will keep reading tutorials on C/++ )
C is not the same as C++. Learn one, not both.
yaustar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-04-2008, 07:52 AM   #28
No longer a community member.
 
a_noob's Avatar
 
Join Date: Sep 2006
Location: Over there.
Posts: 666
Trader Feedback: 0
Default

Yaustar, *Learn one then both.*
Much better plan. But yeah i believe C is more essential.
And most definately learn on the computer, makes the learning process 100% easier.
Also there is tons of documentation for what ever you plan to do on the pc but for the psp, there is less documentation and less support, remember the psp sdk is not official but rather a collection of stubbed Official functions, IE we found where they reside in memory and call them.
a_noob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-04-2008, 09:13 AM   #29
 
Join Date: Dec 2007
Location: East Midlands, UK
Posts: 66
Trader Feedback: 0
Default

personallyi think that everybody who has posted here has good reason for what they have said but ye c might be more versatile etc and lua may be low level but its down to you have how quickly you grasp information, if you do grasp thing quickly then id say start with c but then again when i started i did not have a clue where to start so i decided to go with lua and i actually picked it up quite fast made few little progs then decided to go for c and because i did that im picking c up faster than i expected lol

If you have started coding with C which i think you have then stick with C and dont rush it, take it all in and think logical its not the language thats good its the coder, the language does not make the game the coder does, the language is an essential part but itdoes not matter you can still do alot of things in lua which you can do in C it just takes time.

lol now ive finished my rant of crap ill leave you to rack your brain lol
Luke
lukespalding is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-04-2008, 09:31 AM   #30
 
Join Date: Mar 2007
Posts: 755
Trader Feedback: 0
Default

Quote:
Originally Posted by lukespalding View Post
personallyi think that everybody who has posted here has good reason for what they have said but ye c might be more versatile etc and lua may be low level but its down to you have how quickly you grasp information, if you do grasp thing quickly then id say start with c but then again when i started i did not have a clue where to start so i decided to go with lua and i actually picked it up quite fast made few little progs then decided to go for c and because i did that im picking c up faster than i expected lol

If you have started coding with C which i think you have then stick with C and dont rush it, take it all in and think logical its not the language thats good its the coder, the language does not make the game the coder does, the language is an essential part but itdoes not matter you can still do alot of things in lua which you can do in C it just takes time.

lol now ive finished my rant of crap ill leave you to rack your brain lol
Luke

Lua is a higher level language than C, not lower level.
__________________
[I][U]QJ took away my sig. :([/U][/I]
michaelp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
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 09:39 PM.



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