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!

dam thing wont run help please!!

This is a discussion on dam thing wont run help please!! within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i am using lua and when i go to activate my code all it does is say at the bottom: ...

Reply
 
LinkBack Thread Tools
Old 10-22-2005, 09:17 PM   #1

Developer
 
slicer4ever's Avatar
 
Join Date: Jul 2005
Location: everywhere
Posts: 3,357
Trader Feedback: 0
Talking dam thing wont run help please!!

i am using lua and when i go to activate my code all it does is say at the bottom: running script script.lua if someone can tell me whats wrong with my code that would make it do this help would be appreciated:

Quote:
System.usbDiskModeActivat e()

blue=Color.new(0,0,255)

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")
gun10=Image.load("pics/gun10.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")

X=200
Y=250

while loop do
pad=controls.read()

if pad:right() then X=X+1 X2=X2+1 X3=X3+1 X4=X4+1 X5=X5+1 X6=X6+1 X7=X7+1 X8=X8+1
X9=X9+1 X10=X10+1 X11=X11+1 X12=X12+1 X13=X13+1 X14=X14+1 X15=X15+1
else if pad:left() then X2=X2-1 X3=X3-1 X4=X4-1 X5=X5-1 X6=X6-1 X7=X7-1 X8=X8-1 X9=X9-1
X10=X10-1 X11=X11-1 X12=X12-1 X13=X13-1 X14=X14-1 X15=X15-1 X16=X16-1
end

screen:clear()
screen:blit(x,y,gun1)
screen:blit(x2,x2,gun2)
screen:blit(x3,x3,gun3)
screen:blit(x4,x4,gun4)
screen:blit(x5,x5,gun5)
screen:blit(x6,x6,gun6)
screen:blit(x7,x7,gun7)
screen:blit(x8,x8,gun8)
screen:blit(x9,x9,gun9)
screen:blit(x10,x10,gun10 )
screen:blit(x11,x11,gun11 )
screen:blit(x12,x12,gun12 )
screen:blit(x13,x13,gun13 )
screen:blit(x14,x14,gun14 )
screen:blit(x15,x15,gun15 )
screen:blit(x16,x16,gun16 )
screen.flip()
screen.waitVblankStart()
end

screen:fillRect(0,0,480,2 72,blue)
screenrint(300,100, "hello", blue)
screen.waitVblankStart()
screen.flip()
end

thanks
__________________
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 10-22-2005, 09:37 PM   #2

Developer
 
Join Date: Jun 2005
Location: At my house...
Posts: 885
Trader Feedback: 0
Default

At the begining you defined x and y which was good. But then you use x2 y2 x3 and so on but you never defined what they were worth for example:
x2=212
y2=10
__________________
F.A.L.O?
Twenty 2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2005, 10:20 PM   #3

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

hm it still says the samething heres what ive done:

Quote:
System.usbDiskModeActivat e()

blue=Color.new(0,0,255)

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")
gun10=Image.load("pics/gun10.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")

X=200
Y=250
X2=200
Y2=250
X3=200
Y3=250
X4=200
Y4=250
X5=200
Y5=250
X6=200
Y6=250
X7=200
Y7=250
X8=200
Y8=250
X9=200
Y9=250
X10=200
Y10=250
X11=200
Y11=250
X12=200
Y12=250
X13=200
Y13=250
X14=200
Y14=250
X15=200
Y15=250
X16=200
Y16=250

while loop do
pad=controls.read()

if pad:right() then X=X+1 X2=X2+1 X3=X3+1 X4=X4+1 X5=X5+1 X6=X6+1 X7=X7+1 X8=X8+1
X9=X9+1 X10=X10+1 X11=X11+1 X12=X12+1 X13=X13+1 X14=X14+1 X15=X15+1
else if pad:left() then X2=X2-1 X3=X3-1 X4=X4-1 X5=X5-1 X6=X6-1 X7=X7-1 X8=X8-1 X9=X9-1
X10=X10-1 X11=X11-1 X12=X12-1 X13=X13-1 X14=X14-1 X15=X15-1 X16=X16-1
end

screen:clear()
screen:blit(X,y,gun1)
screen:blit(X2,Y2,gun2)
screen:blit(X3,Y3,gun3)
screen:blit(X4,Y4,gun4)
screen:blit(X5,Y5,gun5)
screen:blit(X6,Y6,gun6)
screen:blit(X7,Y7,gun7)
screen:blit(X8,Y8,gun8)
screen:blit(X9,Y9,gun9)
screen:blit(X10,Y10,gun10 )
screen:blit(X11,Y11,gun11 )
screen:blit(X12,Y12,gun12 )
screen:blit(X13,Y13,gun13 )
screen:blit(X14,Y14,gun14 )
screen:blit(X15,Y15,gun15 )
screen:blit(X16,Y16,gun16 )
screen.flip()
screen.waitVblankStart()
end

screen:fillRect(0,0,480,2 72,blue)
screen.waitVblankStart()
screen.flip()
end
p.s. i want each thing to be in the same place
__________________
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 10-22-2005, 10:23 PM   #4

Developer
 
Join Date: Jun 2005
Location: At my house...
Posts: 885
Trader Feedback: 0
Default

Quote:
Originally Posted by slicer4ever
hm it still says the samething heres what ive done:
O i think its while true do instead of while loop do
__________________
F.A.L.O?
Twenty 2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2005, 10:27 PM   #5

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

k i'll try it the only only reason i put that in there is because the person who helped me with the x=x+1 that stuff said i had to add a loop and i thought thats what he meant i'll check it than post

now i get an error:

error: (line 63) bad argumnt #1 to blit (number expected, got nil)

i'll work on trying to fix that but...
__________________
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects

Last edited by slicer4ever; 10-22-2005 at 10:30 PM..
slicer4ever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2005, 10:39 PM   #6

Developer
 
Join Date: Jun 2005
Location: At my house...
Posts: 885
Trader Feedback: 0
Default

Quote:
Originally Posted by slicer4ever
k i'll try it the only only reason i put that in there is because the person who helped me with the x=x+1 that stuff said i had to add a loop and i thought thats what he meant i'll check it than post

now i get an error:

error: (line 63) bad argumnt #1 to blit (number expected, got nil)

i'll work on trying to fix that but...
Thats because i think lua is case SeNsAtIvE. You have X,y on line 63 so it should be Y. I think it took it as a whole new var and since u didnt define it, it comes up with a nil value.Thus and error is born. :icon_wink
__________________
F.A.L.O?
Twenty 2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2005, 10:47 PM   #7

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

k now it comes up but it doesnt do what i want so i gatta work on it but thanks
__________________
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 10-22-2005, 10:49 PM   #8

Developer
 
Join Date: Jun 2005
Location: At my house...
Posts: 885
Trader Feedback: 0
Default

Ok no problem. But everytime you have a question, bring the lua help thread back to life so there isnt 1000 how do i do this posts. :icon_wink
__________________
F.A.L.O?
Twenty 2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2005, 10:54 PM   #9

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

k its just like i said before they never responded so thats why i make a thread then i do get answered but i will try and not post as much o and good luck with your halo clone i really hope you suceed and if you want i'll be a beta tester for it just pm me if you want
__________________
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 10-22-2005, 10:56 PM   #10

Developer
 
Join Date: Jun 2005
Location: At my house...
Posts: 885
Trader Feedback: 0
Default

Quote:
Originally Posted by slicer4ever
k its just like i said before they never responded so thats why i make a thread then i do get answered but i will try and not post as much o and good luck with your halo clone i really hope you suceed and if you want i'll be a beta tester for it just pm me if you want
Ok you are on my list, ill get back to you when it is ready in like...a month Lol idk when it will be ready, it just depends on how much time i put into it each day.
__________________
F.A.L.O?
Twenty 2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
dam , run , thing

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:35 AM.



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