![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on new to lua within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; i wanted to make my own game and i dint know anything about lua or C / C++ so i ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
i wanted to make my own game and i dint know anything about lua or C / C++ so i followed this-
http://www.psp-programming.com/tutor...a/lesson02.htm to learn a bit and when i was finished the TUTORIAL i put the folder with music, images and my script.lua in a folder in the normal place ( PSP\GAME\luaplayer\Applic ations) and when i went to run the script it said "no script found restart" Please Can any one help? Tis is my script after folowing the tutorial- Code:
pink = Color.new(255, 0 , 153)
blue = Color.new(0 , 153, 255)
orange = Color.new(255, 102, 0)
gray = Color.new(153, 153, 153)
black = Color.new(0 , 0 , 0)
background = Image.load("images/background.jpg")
screen:print(194, 136, "Loading: 0%", pink)
screen.flip()
screen:print(194, 136, "Loading: 20%", pink)
screen.flip()
circle = Image.load("images/buttons/circle_button.png")
down = Image.load("images/buttons/down_arrow.png")
screen:clear()
screen:print(194, 136, "Loading: 40%", pink)
screen.flip()
l = Image.load("images/buttons/left_trigger.png")
left = Image.load("images/buttons/left_arrow.png")
screen:clear()
screen:print(194, 136, "Loading: 60%", pink)
screen.flip()
r = Image.load("images/buttons/right_trigger.png")
right = Image.load("images/buttons/right_arrow.png")
boltsnd = Sound.load("music/comp.wav")
screen:clear()
screen:print(194, 136, "Loading: 80%", pink)
screen.flip()
square = Image.load("images/buttons/square_button.png")
triangle = Image.load("images/buttons/triangle_button.png")
screen:clear()
screen:print(194, 136, "Loading: 90%", pink)
screen.flip()
up = Image.load("images/buttons/up_arrow.png")
x = Image.load("images/buttons/cross_button.png")
splash = Image.load("images/lua.png")
screen:clear()
screen:print(194, 136, "Loading: 100%", pink)
screen.flip()
screen:blit(0, 0, splash, false)
screen.waitVblankStart()
screen.flip()
boltsnd:play()
screen.waitVblankStart(240)
Music.volume(128)
screen:blit(0, 0, background, false)
pad = Controls.read()
screen:print(135, 251, "Press 'Start' to restart", blue)
screen:print(110, 261, "Press 'Select' for a screenshot", blue)
screen:print(383, 35, "Support:", black)
screen:print(365, 45, "PS3Lounge.net", orange)
screen:print(365, 55, "scriptscribbler.com/psp", gray)
screen.flip()
if pad:cross() then
screen:blit(50, 228, x)
screen.flip()
end
if pad:circle() then
screen:blit(90, 195, circle)
screen.flip()
end
if pad:triangle() then
screen:blit(45, 165, triangle)
screen.flip()
end
if pad:square() then
screen:blit(15, 195, square)
screen.flip()
end
if pad:up() then
screen:blit(60, 40, up)
screen.flip()
end
if pad:right() then
screen:blit(90, 65, right)
screen.flip()
end
if pad:down() then
screen:blit(60, 80, down)
screen.flip()
end
if pad:left() then
screen:blit(30, 65, left)
screen.flip()
end
if pad:l() then
screen:blit(4, 6, l)
screen.flip()
end
if pad:r() then
screen:blit(403, 4, r)
screen.flip()
end
if pad:select() then screen:save("screenshot.tga") end
if pad:start() then
break
end
end
|
|
|
|
|
|
#6 |
![]() ![]() <img src="images/smilies/psp.gif" border="0" alt="" title="" cl***="inlineimg" /> <img src="images/smilies/Punk.gif" border="0" alt="" title="" cl***=&
|
you also have no while true do, so it will onlyrun once
and take out all your screenflips an put this at the bottom(before end) screen.waitVblankStart() screen.flip()
__________________
|
|
|
|
|
|
#7 |
![]() ![]() total-Z
|
LuaPlayer is programmed to ALWAYS say "no script file found". There should be an error above it, what does it say?
If you are only getting "no script file found", then you set up luaplayer wrong. Make a new folder in /Applications/ with your program name, then put index.lua inside it.
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#9 | ||
![]() |
Quote:
and to Quote:
2nd line ---press start to restart |
||
|
|
|
![]() |
| Tags |
| lua |
| Thread Tools | |
|
|