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; it depends on how long do you spend with coding per day/week etc but it takes few months to be ...
-
02-27-2007, 12:15 PM #5851QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
it depends on how long do you spend with coding per day/week etc
but it takes few months to be good :)
[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]
-
02-27-2007, 12:44 PM #5852I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
A decent coder? About 6 months. That's if you spend about an hour a day coding. A good coder? About a year.
Zitat von pspaquaforce

-
02-27-2007, 01:12 PM #5853
i spend about 2hrs to 3hrs a day
it's hard i hate how its case sensitive looks like i have to tri and speelllll bettteerrr. lol
-
02-27-2007, 01:22 PM #5854is not posting very often

- Registriert seit
- Feb 2006
- Ort
- omnipresent
- Beiträge
- 5.162
- Points
- 33.152
- Level
- 100
- Downloads
- 0
- Uploads
- 0
The apps that come with luaplayer aren't that great to learn and expand on, the best are applications that do something similar to what you want to do, maybe having other featurews too, then see how its all integrated
What did we think the world would look like in 2015?
http://forums.qj.net/501501-post26.html
Zitat von Abe
-
02-27-2007, 01:43 PM #5855
i have a good base code with really good notes and i use the lua cheat sheet some what helpfull. If only I had someone at my school that actally codes.
Thier all retards some off the kids with psp's don't even know what firware is or even a umd. The computer guy sits on his @$$ all day and plays call of duty and other games and gets paid for it i would love that job:Jump:
-
02-27-2007, 01:53 PM #5856I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Yeah, it's hard finding a person near you who codes. One of my friends went to college and learned C, but forgot all of it. I know way more than him.

-
02-27-2007, 01:55 PM #5857
that must of been a big waste of money
-= Double Post =-
Does anyone have that stuiped Study Island thing in school and if so is their any cheats or hacks for itGeändert von pspaquaforce (02-27-2007 um 02:07 PM Uhr) Grund: Automerged Doublepost
-
02-27-2007, 03:06 PM #5858
Theres about 30 devs at the moment. And thats around the world.
Zitat von pspaquaforce
And all the people at my school who know even an ounce of coding for the computer just play OmG cOuNtStRiKe!!!!111 all day. Pathetic.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-27-2007, 03:23 PM #5859QJ Gamer Blue
- Registriert seit
- Jan 2007
- Ort
- U.S.
- Beiträge
- 405
- Points
- 7.014
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Hey everyone- just a quick pregunta. When I eventually attempt to make an English-Spanish dictionary for Todo Espanol, what would be the most effective way to do that? I'd have to type up a document w/ all of the words, wouldn't I? I couldn't imagine any alternatives- that'll take a long time!
-
02-27-2007, 03:35 PM #5860
why would you turn your psp into a English-Spanish dictionary why not just buy 1 .
My spanish classes are fun last time a nice fight broke out it was sweet the kid jumped on him and started punching the living ***** out of the other kid
-
02-27-2007, 04:00 PM #5861QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
I disagree with that (although it depends on how you define decent and good coders). For industry level, I would say at least 2 years developing a wide range of projects both individually and in groups of various sizes. For me, its taken 3 years to be good enough for the industry and another to really know my material in terms of the programming concepts and development practises in additional to my C++ skills. Even then, I am still learning every day.
Zitat von Access_Denied
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
02-27-2007, 04:10 PM #5862
i think he means just for lua
-
02-27-2007, 04:16 PM #5863QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
The language doesn't matter, I was referring to actually being a good programmer in general. Once you grasp the concepts of the a paradigm, you could pick up most high level languages in the same or similar paradigm ( Lua, Python, C#, Java ) quite easily in a month. The lower level languages ( C, C++, ASM ) will take longer due to the nature of the languages (Some would argue C++ would take years if not longer to fully master).
Zitat von pspaquaforce
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
02-27-2007, 04:28 PM #5864
Can someone help me with my animation I have made my animation sprite which it is just rain i just need to add it in my script but it has to load when i get to the third bg, so would i do "if background3.x = true then
animation()
or something like that
-
02-27-2007, 04:32 PM #5865I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
When I said 'good', I didn't mean that he could run out and get a programming job. I meant that he'd be able to create some good homebrew games.
Zitat von yaustar
-= Double Post =-
yaustar pretty much answered your question, but it doesn't matter about the language. The important thing is to be able to understand and have a good knowledge of the Game Programming Theory. Once you understand that, you can easily move to any other language. I suggest that you read up on the Game Programming Theory, as it will help you code.
Zitat von pspaquaforce
Geändert von Access_Denied (02-27-2007 um 04:35 PM Uhr) Grund: Automerged Doublepost

-
02-27-2007, 05:17 PM #5866
what exactly is this Game Programming Theory?
-
02-27-2007, 06:30 PM #5867
any help on my anamation
-
02-27-2007, 06:44 PM #5868QJ Gamer Blue
- Registriert seit
- Jan 2007
- Ort
- U.S.
- Beiträge
- 405
- Points
- 7.014
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Any ideas for the translator? Thanks.
-
02-27-2007, 09:33 PM #5869QJ Gamer Blue
- Registriert seit
- Jul 2006
- Ort
- Alabama
- Beiträge
- 142
- Points
- 4.241
- Level
- 41
- Downloads
- 0
- Uploads
- 0
if Background3.x <= 480 and background3.x >= -480 then
Zitat von pspaquaforce
animation()
end
That will call animation() as long as background3 is anywhere onscreen. You can tweak the numbers if you want animation() called only if background3 is mostly onscreen (try <= 240 and >= -240 for a good example).
It hasn't happened yet. I've never made anything worth releasing.hey Aphonia how long did it take you to be a decent coder?
John Nash could be involved. That's all I know. Its useless.
Zitat von emericaska8r
-
02-28-2007, 02:22 AM #5870QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Zitat von Access_Denied
I agree "(Game) Programming Theory" is a bit of a buzzword. Game programming is no different to normal programming.
Zitat von emericaska8r
Read "Coding Complete" or "Pragmatic Programmer" at least to get an idea of common programming practises and 'thoery'.[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
02-28-2007, 11:58 AM #5871
ok thanks
-
02-28-2007, 03:07 PM #5872
aphonia thanks but i don't have any animation code at all if you code show a animation code as a function or explan it to me that would be great.
here's my animation
-
02-28-2007, 03:35 PM #5873Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von pspaquaforce
use animlib. search on it on dl.qj.net
(its actually called Lua Animation Lib)
download the latest version (v4 i think), cause i supports sprite sheets.--------------------------------------------------------------------------------------
-
02-28-2007, 04:11 PM #5874
thats what i used to make this but i don't know how to use it in my script do i say dofile("animation.lua") or do i copy and paste some stuff. Because It didn't really have a good readme.
-
02-28-2007, 04:43 PM #5875lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
You dofile it at the begging of your code.
Then use the now functions code you can use.
Download and read the read me
-
02-28-2007, 04:48 PM #5876Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von pspaquaforce
heh, my bad about the readme. once you have dofiled the lib, you can use its functions. call them just like any other function you would use in lua, with the correct parameters. here is a quick tut. it covers loading. blitting is much simpler, and you should be able to figure it out on your own.
http://forums.qj.net/f-psp-developme...tly-83149.html--------------------------------------------------------------------------------------
-
02-28-2007, 04:59 PM #5877
thanks for your help
-
02-28-2007, 05:56 PM #5878
- Registriert seit
- Aug 2006
- Beiträge
- 16
- Points
- 3.859
- Level
- 39
- Downloads
- 0
- Uploads
- 0
I have a problem with my code. The whole code is too long, so i'll post the snippet.
The error I get is '<eof>' expected near 'end'. What does this mean?Code:--function for complete compounding process functionCompound() --start compounding interest while gt - gtd > 1 do functionCompoundStart() end --finish compounding interest if gt - gtd == 1 then functionCompoundFinish() end end
-
02-28-2007, 07:54 PM #5879QJ Gamer Blue
- Registriert seit
- Jul 2006
- Ort
- Alabama
- Beiträge
- 142
- Points
- 4.241
- Level
- 41
- Downloads
- 0
- Uploads
- 0
Lord_Artorius, I can't tell for sure because you didn't post the whole code, but I don't think you're defining your functions right, because this works:
Spoiler for code:
Put a space between 'function' and what you want the function to be called, and call the function with just the name, not 'function name' or 'functionname'.
Also, <eof> stands for 'end of file.'
-
02-28-2007, 08:03 PM #5880Look at my user title :p
- Registriert seit
- Feb 2006
- Ort
- Texas
- Beiträge
- 1.183
- Points
- 14.103
- Level
- 77
- Downloads
- 0
- Uploads
- 0
is there a way to unincode my code if i used lua compiler?
**********, ********** :p
http://img143.imageshack.us/img143/6...boysfanij8.gif


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