Zeige Ergebnis 271 bis 300 von 10238
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; can some1 post all the functions explain them to me thoroly...
-
11-10-2005, 08:18 PM #271words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
can some1 post all the functions explain them to me thoroly

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
11-10-2005, 08:20 PM #272QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
yea same here
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
11-11-2005, 07:54 AM #273NDS Mod
- Registriert seit
- Jul 2005
- Ort
- w00+land
- Beiträge
- 645
- Points
- 18.386
- Level
- 86
- Downloads
- 0
- Uploads
- 0
Here's the ones specific to luaplayer:
Zitat von SG57
http://luaplayer.org/functions.txt
These two are sort of the same, although some time I find the second link easier to understand:
http://www.lua.org/pil/
http://www.lua.org/manual/5.0/"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]
-
11-11-2005, 08:07 AM #274Advanced PSP Coder
- Registriert seit
- Oct 2005
- Ort
- Down South
- Beiträge
- 426
- Points
- 7.141
- Level
- 55
- Downloads
- 0
- Uploads
- 0
You should be able to understand the functions. You didn't even say please, you just asked a VERY big task of us, or basically told us to do that. Which functions do you not understand?
[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]
-
11-11-2005, 08:56 AM #275QJ Gamer Gold
- Registriert seit
- Jul 2005
- Ort
- GA | Banned: 3 | Warned: 3
- Beiträge
- 2.253
- Points
- 12.479
- Level
- 73
- Downloads
- 0
- Uploads
- 0
Okay, i need help with my bullet moement code. Now, i can make the bullet shoot out of the plane, no matter where it is located, but now i must make it MOVE! And you guys can help me, hopefully!
Okay, here is a snidbit.
elseif pad:r() then
if shoot >= 1 then
-- Blit the rest of the stuff you do as if you weren't shooting
-- don't know what all those images are so just add more screen:blit()
updateMove()
screen:blit(btXpos, btYpos, bullet1)
screen:blit(pcXpos, pcYpos, sprite)
screen.waitVblankStart()
screen.flip()
bl = bl + 1
shoot = shoot - 1
end
--that is to shoot^
elseif pad:triangle() then
if shoot <=0 then
shoot = shoot + 1
end
--that is to recharge shot^
--Functions
Bullet1 = function()
btYpos = btYpos + 2
updateMove()
screen:blit(btXpos, btYpos, bullet1)
screen.waitVblankStart()
screen.flip()
bl = bl + 1
end
--A function I made^
--Bullet System
while true do
if bl == 1 then do
Bullet1()
--What calls the function^
Somehow everytime i run the game, my PSP freezes up, im not using lua player, i am using my own eboot. It is an old one. Should i update my lua eboot with the new lua player? PLease, help me, and thanks in advance!!!
-
11-11-2005, 08:15 PM #276words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
well just some1s for a game, common ones used alot u kno so wat r they

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
11-11-2005, 08:18 PM #277Developer

- Registriert seit
- Jun 2005
- Ort
- At my house...
- Beiträge
- 886
- Points
- 8.360
- Level
- 61
- Downloads
- 0
- Uploads
- 0
There are never common functions for a game because you have to make your own functions... Work on your english a little too.
F.A.L.O?
-
11-11-2005, 09:41 PM #278QJ Gamer Gold
- Registriert seit
- Jul 2005
- Ort
- GA | Banned: 3 | Warned: 3
- Beiträge
- 2.253
- Points
- 12.479
- Level
- 73
- Downloads
- 0
- Uploads
- 0
uh twenty 2 are you talking to me?
-
11-12-2005, 02:25 AM #279words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
1st tht wasnt thorough 'make ur own' 2nd, i thot u were supposed to help not critisize

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
11-12-2005, 08:04 AM #280QJ Gamer Gold
- Registriert seit
- Jul 2005
- Ort
- GA | Banned: 3 | Warned: 3
- Beiträge
- 2.253
- Points
- 12.479
- Level
- 73
- Downloads
- 0
- Uploads
- 0
I wasnt criticising anyone, I was just asking twenty 2 if he was talking to me. Also, i you were talking to him about the english bit, listen to him, he has got a point. This isnt AOL talk, this is a forum, where spelling and grammer counts alot, and if you spell bad or diss users, people lose respect for you. At first, I would not spell great or talk AOL talk. But one user told me that you will lose respect that way, and guess what, I improved my act, and you should to. And dont throw a fight just because someone sugested you should clean up your english, he didnt say "Hey asswipe, you better speak better, or I wont help you" He just simply said to improve a little. I hope you understand my point, like a fellow user in these forums did. Because, i couldnt understand a couple of your posts above.
On topic, may someone help me with my code above? Thanks.
-
11-12-2005, 08:37 AM #281Developer

- Registriert seit
- Jun 2005
- Ort
- At my house...
- Beiträge
- 886
- Points
- 8.360
- Level
- 61
- Downloads
- 0
- Uploads
- 0
Sorry it was just hard to understand you...
Zitat von SG57
What i ment is that a function can be ANYTHING. For example:
function addone()
if adding==true then x=x+1 end
end
Then in your main coding you could say:
if moving==true then addone() end
I thought you were also making a halo sidescroller, shouldnt you know this?
And i wasnt talking to you master Inu.
F.A.L.O?
-
11-12-2005, 09:22 AM #282QJ Gamer Gold
- Registriert seit
- Jul 2005
- Ort
- GA | Banned: 3 | Warned: 3
- Beiträge
- 2.253
- Points
- 12.479
- Level
- 73
- Downloads
- 0
- Uploads
- 0
oh okay, well, um if you can can you help me. What my code demonstrates it me trying to get the bullet system to work, but to no avail, and that is not my entire coding, as i dont feel like sharing it with everyone. If you would like the whole code, I would be glad to pm it to you, just as long as someone helps me with this. Also, good luck on the Falo project!
-
11-12-2005, 11:05 AM #283...

- Registriert seit
- Oct 2005
- Ort
- The US of A Hombrew: Quak Arena Projects: RIFT
- Beiträge
- 381
- Points
- 10.603
- Level
- 68
- Downloads
- 0
- Uploads
- 0
umm...
Zitat von slicer4ever
do you mean ...? i dont even know what you mean hmmm...Code:if input:oldinput() then
and
looks like a typo of readInput()Code:read:input()
also....
is missing an endCode:function readinput() input = Controls.read() if input:oldinput() then if input:left() and listpos > 1 then listpos = listpos - 1 end if input:right() and listpos < table.getn(gunlist) then listpos = listpos + 1 end oldinput = input end
same answer as in the other thread you made...
-
11-12-2005, 11:35 PM #284words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
my fault anyway but how would i make an arc function you dont have to tell me i cud figure it out but take a lil more time

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
11-12-2005, 11:54 PM #285words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
also, sorry everyone, my computers broken and im on fired up browser and it crashes when typing alot so please forgive me

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
11-13-2005, 07:21 AM #286QJ Gamer Blue
- Registriert seit
- Oct 2005
- Ort
- Holland
- Beiträge
- 142
- Points
- 5.005
- Level
- 45
- Downloads
- 0
- Uploads
- 0
Ok this is the code.Code:--Colors yellow = Color.new(255, 255, 0) --Colors --Defining Code screen:print(194, 136, "Loading: 0%", yellow) screen.flip() background = Image.load("Images/Backgrounds/background.png") screen:clear() screen:print(194, 136, "Loading: 10%", yellow) screen.flip() object1 = Image.load("Images/Base_Blue/Structures/barracade_small.png") screen:clear() screen:print(194, 136, "Loading: 20%", yellow) screen.flip() object2 = Image.load("Images/Base_Blue/Structures/barracade_small.png") screen:clear() screen:print(194, 136, "Loading: 30%", yellow) screen.flip() player = Image.load("Images/Base_Blue/Vehecles/Suddan_Tank_Left_Down.png") screen:clear() screen:print(194, 136, "Loading: 40%", yellow) screen.flip() object4 = Image.load("Images/Base_Blue/Structures/Main_Base.png") screen:clear() screen:print(194, 136, "Loading: 50%", yellow) screen.flip() object5 = Image.load("Images/Base_Blue/Structures/adv. power plant_1.png") screen:clear() screen:print(194, 136, "Loading: 60%", yellow) screen.flip() sidebar = Image.load("Images/Base_Blue/Misc/sidebar.png") intro = Image.load("Images/Misc/intro.png") screen:clear() screen:print(194, 136, "Loading: 80%", yellow) screen.flip() Start_Menu = Image.load("Images/Misc/Start_Menu.png") screen:clear() screen:print(194, 136, "Loading: 100%", yellow) screen.flip() Bigfoot_Music = Sound.load("Music/bigfoot.wav") --Ende Defining Code --Player Spawn x = 50 y = 50 x_object = {0, 100, 200} y_object = {0, 100, 200} --End Player Spawn --Main Code while true do screen:clear() pad = Controls.read() -- showing the background + objects screen:blit(x_object[1], y_object[1], background) screen:blit(x_object[2], y_object[2], object1) screen:blit(x_object[3], y_object[3], object2) screen:blit(x_object[3], y_object[1], object4) screen:blit(x_object[2], y_object[3], object5) screen:blit(x_object[3], y_object[2], object1) -- showing the player screen:blit(x, y, player) if pad:up() then y = y - 1 if y < 50 then for i= 3,1,-1 do y_object[i] = y_object[i] + 1 end y = y + 1 end end if pad:down() then y = y + 1 if y > 222 then for i=3,1,-1 do y_object[i] = y_object[i] - 1 end y = y - 1 end end if pad:right() then x = x + 1 if x > 430 then for i=3,1,-1 do x_object[i] = x_object[i] - 1 end x = x - 1 end end if pad:left() then x = x - 1 if x < 50 then for i=3,1,-1 do x_object[i] = x_object[i] + 1 end x = x + 1 end end if pad:select() then break end --Sidebar screen:blit(370, 0, sidebar) screen.flip() --End Sidebar if pad:start() then screen:blit(0, 0, Start_Menu) screen.flip() screen.waitVblankStart(160 ) end
Now i have a problem.
Its a scroling map i know but if i come outside the map its black.
How can i change it ?
Or how can i large the map ?
And how do i make positions so that the "buildings" are stuck on the map that they move with the map ?
-
11-13-2005, 11:48 AM #287
Ive got a small question.
My problem is that I want to press a button then around 1/2-1 second later a image to be blit. I don't know the code for it and ive been looking around for a while.
I was wondering if theres a way to do it?Geändert von Sir Crx (11-13-2005 um 12:55 PM Uhr)
-
11-13-2005, 02:25 PM #288QJ Gamer Gold
- Registriert seit
- Jul 2005
- Ort
- GA | Banned: 3 | Warned: 3
- Beiträge
- 2.253
- Points
- 12.479
- Level
- 73
- Downloads
- 0
- Uploads
- 0
Okay do this
image = Image.load("image.png")
pad = Controls.read()
if pad:cross() then
screen.waitVblankStart(60 )
screen:blit(x, y, image, false)
end
That should do it. There are 60 Vblanks in one second! (x, y) are the coordinates for the picture. Hope that helped!
-
11-14-2005, 12:43 AM #289
If I do vblankstart it renders all my controls useless and it wont let me do anything.
-
11-14-2005, 01:15 AM #290
Ok well doing vblankstart is what i did before I even posted and it didnt work but for some reason after like 5 hours of changing things around it finally works.
Yet I have 2 MORE noob questions:
1) if I use the vblankstart for the delay in the image blit when I hold down the button it will flash the picture then go back to waiting, then blit it again. Its in a non stop vblankstart then blit mode. All I want is just to wait then blit it. Yet using vblankstart doesnt seem to do that.
2)If I blit too many images at once in a somewhat small space they tend to not show up if i do it fast. Yet if I go really slow in pushing the buttons i can successfully get all of them to show, but the point of my game is to move fast to blit all the images when the buttons are pushed but they tend to show whenever they feel like it.
I hope I portrayed my problem well. If not im willing to answer questions because this is the only thing holding me back from completinga major part in my code.
Thanks in advanceGeändert von Sir Crx (11-14-2005 um 01:41 AM Uhr)
-
11-14-2005, 01:02 PM #291QJ Gamer Bronze
- Registriert seit
- May 2005
- Ort
- ////////////
- Beiträge
- 399
- Points
- 7.941
- Level
- 59
- Downloads
- 0
- Uploads
- 0
ok i dont know if this is noob question or not, (probably is), ok so is there a way to to write so that whenever a the cursor goes on a certian picture it can trigger a command if the x button is pressed such as opening another image without writing something like this
if x0 < 80 then
if x0 > -10 then
if y0 < 242 then
if y0 > 215 then
EDIT, nvm allready figured out how to do it.Geändert von simmcity (11-20-2005 um 10:58 AM Uhr)
-
11-14-2005, 01:48 PM #292QJ Gamer Gold
- Registriert seit
- Jul 2005
- Ort
- GA | Banned: 3 | Warned: 3
- Beiträge
- 2.253
- Points
- 12.479
- Level
- 73
- Downloads
- 0
- Uploads
- 0
yeah, i know the feeling, because, actually, no one has answered my question, but its allright, i like helping people. I dont know what the problem it is. Very strange...
-
11-14-2005, 03:29 PM #293QJ Gamer Gold

- Registriert seit
- Jul 2005
- Ort
- everywhere
- Beiträge
- 3.526
- Points
- 17.453
- Level
- 84
- Downloads
- 1
- Uploads
- 0
k i'm back finally my comp got all mean to me in a better way to put it so i did what he said and what do u mean missing an end well maybe explaining what im trying to do well help so here it is what i'm trying to do is make something where if you push left it will blit the a certain picture left and keep going but if i press right it will go back one picture and if i push left it will go forward a picture so thats wheat i'm trying to do i'll be glad to answer questions if it helps also it still just says running script anyway so you dont gatta go back a page or 2 to find my code i well post it here i havnt really made any changes to it because my dam comp's been screwey anywho here it is
System.usbDiskModeActivat e()
blue=Color.new(0,0,255)
oldinput = Controls.read()
input = Controls.read()
screen:clear()
gun1=Image.load("pics/gun1.png")
gun2=Image.load("pics/gun2.png")
gun3=Image.load("pics/gun3.png")
gun4=Image.load("pics/gun4.png")
gun5=Image.load("pics/gun5.png")
gun6=Image.load("pics/gun6.png")
gun7=Image.load("pics/gun7.png")
gun8=Image.load("pics/gun8.png")
gun9=Image.load("pics/gun9.png")
gun10=Image.load("pics/gun10.png")
gun11=Image.load("pics/gun11.png")
gun12=Image.load("pics/gun12.png")
gun13=Image.load("pics/gun13.png")
gun14=Image.load("pics/gun14.png")
gun15=Image.load("pics/gun15.png")
gun16=Image.load("pics/gun16.png")
gunlist = {gun1, gun2, gun3, gun4, gun5, gun6, gun7, gun8, gun9, gun10, gun11, gun12, gun13, gun14, gun15, gun16}
listpos = 1
function readinput()
input = Controls.read()
if input:oldinput() then
if input:left() and listpos > 1 then
listpos = listpos - 1
end
if input:right() and listpos < table.getn(gunlist) then
listpos = listpos + 1
end
oldinput = input
end
function drawgun()
screen:blit(0,0,gunlist[listpos])
screen.flip()
end
while not input:start() do
readinput()
drawgun()
screen.waitVblankStart()
screen:clear()
end
end1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
-
11-14-2005, 09:31 PM #294
Since we started a new page I think people might forget my problem so im posting it again. Not to be a jerk, just to bump the chacne of my question being answered.
Zitat von Sir Crx
Thanks again
-
11-16-2005, 06:31 AM #295
- Registriert seit
- Jul 2005
- Beiträge
- 4
- Points
- 4.574
- Level
- 43
- Downloads
- 0
- Uploads
- 0
problems while testing
Hi folks!
I'm writing an application in LUA with LUAEDIT and I'd like to test it on my PC before putting it in the PSP, but...
how can I simulate on my PC the commands for the PSP (cross, square, x and triangle or whatever) in order to see if everything is OK?
I don't like to move each time the .lua file because I don't want to change the paths of the images)
-
11-16-2005, 06:57 AM #296
Just the same problem as I have...I'll tell you if I find a way
Zitat von simmcity
-
11-16-2005, 12:00 PM #297Rock 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
http://lumo2000.lu.funpic.de/luaplay...ows_alpha2.zip
Zitat von aldebaran
it is kindof buggy though

-
11-17-2005, 12:31 AM #298
- Registriert seit
- Jul 2005
- Beiträge
- 4
- Points
- 4.574
- Level
- 43
- Downloads
- 0
- Uploads
- 0
I did it, but I can't see any differences in this release...
Zitat von TeamOverload
so how can I play the buttons when I have my .lua program working in the DOS windows?
-
11-17-2005, 05:45 PM #299QJ Gamer Blue
- Registriert seit
- Jun 2005
- Beiträge
- 152
- Points
- 5.114
- Level
- 45
- Downloads
- 0
- Uploads
- 0
how do i use it?
Zitat von TeamOverload
-
11-19-2005, 05:24 PM #300words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
can any1 help me with an arc function?
something like
functionArc()
arrow =
soemthing like that i dunno can someone help please?:icon_sad:
...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here


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