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; Yeah, I guess? Dude, whats your aim or msn ^^^ And how do you do it like lowser?...
-
10-04-2005, 05:37 PM #61Advanced PSP Coder
- Registriert seit
- Oct 2005
- Ort
- Down South
- Beiträge
- 426
- Points
- 7.141
- Level
- 55
- Downloads
- 0
- Uploads
- 0
Yeah, I guess? Dude, whats your aim or msn ^^^
And how do you do it like lowser?
[center][COLOR=Green][B]- PM Me if you need help with anything - [/B] [/COLOR]
[B][SIZE=3][COLOR=DarkOrange][U]Homebrew I've Made[/U][/COLOR][/SIZE][/B]
[B]Applications:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,17,1667]PSP Alarm v0.5[/URL] [/b]
[B]Games:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1669] Virtual Escape DEMO[/URL] [w/ Lancer]
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1577]PSP Dodge v1.0[/URL][/b]
[img]http://img517.imageshack.us/img517/4735/sig3qu.jpg[/img][/center]
-
10-04-2005, 05:45 PM #62QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
I already told you what to do.. sheesh!
Pm me and I'll send you the folders.Geändert von Bilo (10-04-2005 um 05:48 PM Uhr)
-
10-04-2005, 05:48 PM #63NDS Mod
- Registriert seit
- Jul 2005
- Ort
- w00+land
- Beiträge
- 645
- Points
- 18.386
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Although I have it I don't use AIM often. If you still want to know It's MagicianFB.
Zitat von Virtue
Also I have no clue, although I've been trying to figure it out."15% percent of programing is creating a program, 85% percent is getting it to work like it should." - Me
[URL=http://www.mozilla.org/products/firefox/][IMG]http://img439.imageshack.us/img439/5667/getfirefox0sr.png[/IMG][/URL]
-
10-04-2005, 05:51 PM #64QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
No... what you do is -
1. Get a hold of something else that uses it (half of the lua apps in the files section)
2. Rename the folders to what you like
3. Delete everything but the eboots in each folder.
4. Paste all of your files and your lua script into the folder without the %
5. Edit the eboot in the % folder to include you own image/title (using PBP unpacker)
-
10-04-2005, 05:56 PM #65NDS Mod
- Registriert seit
- Jul 2005
- Ort
- w00+land
- Beiträge
- 645
- Points
- 18.386
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Poor Bilo, if only everone listened... ;)
Zitat von Bilo
"15% percent of programing is creating a program, 85% percent is getting it to work like it should." - Me
[URL=http://www.mozilla.org/products/firefox/][IMG]http://img439.imageshack.us/img439/5667/getfirefox0sr.png[/IMG][/URL]
-
10-04-2005, 06:00 PM #66QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
Indeed! ^
And I just wrote the steps for you on how to get your icon on the game list
so that you can launch your app from there.
*bow*
-
10-04-2005, 06:00 PM #67Advanced PSP Coder
- Registriert seit
- Oct 2005
- Ort
- Down South
- Beiträge
- 426
- Points
- 7.141
- Level
- 55
- Downloads
- 0
- Uploads
- 0
I don't remember you telling me, but thanks.
Zitat von Bilo
[center][COLOR=Green][B]- PM Me if you need help with anything - [/B] [/COLOR]
[B][SIZE=3][COLOR=DarkOrange][U]Homebrew I've Made[/U][/COLOR][/SIZE][/B]
[B]Applications:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,17,1667]PSP Alarm v0.5[/URL] [/b]
[B]Games:
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1669] Virtual Escape DEMO[/URL] [w/ Lancer]
[URL=http://files.pspupdates.qj.net/cgi-bin/cfiles.cgi?0,0,0,0,12,1577]PSP Dodge v1.0[/URL][/b]
[img]http://img517.imageshack.us/img517/4735/sig3qu.jpg[/img][/center]
-
10-04-2005, 06:01 PM #68QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
^ no probs
-
10-04-2005, 09:44 PM #69
- Registriert seit
- Sep 2005
- Beiträge
- 3
- Points
- 4.437
- Level
- 42
- Downloads
- 0
- Uploads
- 0
First time coding a game with physics and first time using lua. I am trying to get a 2d collision detection working in lua, i only need rect/rect detection so i don't need anything too fancy. Are there any examples written in lua script? I have been reading
http://www.harveycartel.org/metanet/...tutorialA.html
but as his source code is flash/action script i can't look at it.
I really need a lesson in 2d geometry more than a collision detection example in lua but a lua example would be so very helpful.
Any starting links? pointers? source code?
-
10-05-2005, 07:28 AM #70Developer

- Registriert seit
- Sep 2005
- Ort
- Sweden
- Beiträge
- 941
- Points
- 10.075
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Sorry to post my question again but how do I get a text when I push a button to not disapear after I have released the button??
Code:System.usbDiskModeActivate() white = Color.new(255, 255, 255) while true do screen:clear() pad = Controls.read() if pad:cross() then screen:print(20, 18, "1", white) end screen.waitVblankStart() screen.flip() end
-
10-05-2005, 07:39 AM #71QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
screen.waitVblankStart()
screen.flip()
that should be after your text to make it stay... I think..
if pad:cross() then
screen
rint(20, 18, "1", white)
screen.waitVblankStart()
screen.flip()
end
-
10-05-2005, 07:47 AM #72QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
*.xm files play in lua..so it seems :)
I thought only wav's did.
-
10-05-2005, 09:06 AM #73
Ahaa...Okay thanks alot! :Jump:
Zitat von Bilo
-
10-05-2005, 09:18 AM #74QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
^ No probs :)
Hope everything goes well.
-
10-05-2005, 10:08 AM #75
Well yeah... I ain't the one to complane =) Besides, what Does "()" actually do?
Geändert von lingon (10-05-2005 um 10:28 AM Uhr)
-
10-05-2005, 10:27 AM #76NDS Mod
- Registriert seit
- Jul 2005
- Ort
- w00+land
- Beiträge
- 645
- Points
- 18.386
- Level
- 86
- Downloads
- 0
- Uploads
- 0
I've never heard of .xm
Zitat von Bilo
"15% percent of programing is creating a program, 85% percent is getting it to work like it should." - Me
[URL=http://www.mozilla.org/products/firefox/][IMG]http://img439.imageshack.us/img439/5667/getfirefox0sr.png[/IMG][/URL]
-
10-05-2005, 10:28 AM #77QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
Zitat von lingon
Probably not.
I spend most of my day at work going between C and Actionscript so I dont think I'd like to be spending the rest staring at lines of lua.
It gets boring after a while ya know? :)
Although.... my game will be out in a couple of days
I like it.. maybe someone else will :)
-
10-05-2005, 10:30 AM #78
lol, I'm sure you get tired of it after a while...Lookin forward to your game.
-
10-05-2005, 10:31 AM #79QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
Extended Modular files
Zitat von MagicianFB
.xm files are game sound files.
-
10-05-2005, 10:31 AM #80NDS Mod
- Registriert seit
- Jul 2005
- Ort
- w00+land
- Beiträge
- 645
- Points
- 18.386
- Level
- 86
- Downloads
- 0
- Uploads
- 0
I'm working on an rpg.
Zitat von Bilo
"15% percent of programing is creating a program, 85% percent is getting it to work like it should." - Me
[URL=http://www.mozilla.org/products/firefox/][IMG]http://img439.imageshack.us/img439/5667/getfirefox0sr.png[/IMG][/URL]
-
10-05-2005, 11:07 AM #81
If I for exampel wanna define
as one whole thing, as example "a" then how would I do that?Code:if pad:cross() then screen:blit(0, 0, lua, false) screen:print(50, 218, "Detta programm skapades utav Carl R den 2 Okt.", svart) screen:print(50, 228, "2005 enbart i inlärnings syfte.", svart) screen:print(220,170, "[]: Avsluta", svart) screen.flip()
-
10-05-2005, 11:07 AM #82Rock Star

- Registriert seit
- Aug 2005
- Ort
- CT| FW: 4.01 M33-2
- Beiträge
- 11.844
- Points
- 70.899
- Level
- 100
- Downloads
- 0
- Uploads
- 0
sorry, i dont quite understand your question..

-
10-05-2005, 11:09 AM #83QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
Zitat von lingon
do you mean set it as a function? that can be called or do you mean use this within an if?
To make it a function just say
function nameoffunction()
and declare it before you try and call it
-
10-05-2005, 12:21 PM #84
I mean it like its declared by Bilo I think. I wanna be able to just type a short command and it will do that with the pad:cross thing. So thanks again Bilo and ofcourse TeamOveload for caring. =)
-
10-05-2005, 12:36 PM #85QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
^ no probs buddy :)
-
10-05-2005, 12:39 PM #86
well more troubles sadly :cry
Lua will only load the first part of my script, which displays text... It wont load any thing after that.
black = Color.new(0, 0, 0)
screen
rint(200, 130, "Board", black)
screen.flip()
while true do
screen.waitVblankStart()
end
board = Image.load("boardnew.png" )
screen:blit(0, 0, board, false)
screen:flip()
while true do
screen:waitVblankStart()
endGeändert von cools (10-06-2005 um 12:57 PM Uhr)
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude
http://www.cools.biaklan.com
Currently Working on ?????
Quote of the Week
-
10-05-2005, 01:19 PM #87
Entering Text
How can I make something where the user enters text? Like on the PSP when you click on a text box the dialog comes up that has the letters and numbers like on a cell phone. Is there a way to get that?
PLEASE PLEASE PLEASE EMAIL ME!!!!!!
[email protected]
-
10-05-2005, 01:42 PM #88QJ Gamer Blue
- Registriert seit
- Sep 2005
- Ort
- In your garage
- Beiträge
- 73
- Points
- 4.648
- Level
- 43
- Downloads
- 0
- Uploads
- 0
Zitat von cools
That should work ^Code:board = Image.load("boardnew.png") screen:blit(0, 0, board, false) black = Color.new(0, 0, 0) screen:print(200, 130, "Board", black) screen.flip() while true do screen.waitVblankStart() endGeändert von Bilo (10-05-2005 um 03:49 PM Uhr)
-
10-05-2005, 01:46 PM #89NDS Mod
- Registriert seit
- Jul 2005
- Ort
- w00+land
- Beiträge
- 645
- Points
- 18.386
- Level
- 86
- Downloads
- 0
- Uploads
- 0
I'll try and make one...
Zitat von Dremth
"15% percent of programing is creating a program, 85% percent is getting it to work like it should." - Me
[URL=http://www.mozilla.org/products/firefox/][IMG]http://img439.imageshack.us/img439/5667/getfirefox0sr.png[/IMG][/URL]
-
10-05-2005, 02:17 PM #90
I did that, but the text goes away when the pictures load. I want the Text and the Pictures to show up at the same time. Thanks Anyway...
Zitat von Bilo
PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude
http://www.cools.biaklan.com
Currently Working on ?????
Quote of the Week


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