What did i do wrong?

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Stretch Arm-Strong
Posts: 5
Joined: Tue Oct 11, 2005 9:24 am

What did i do wrong?

Post by Stretch Arm-Strong »

Alright im just starting so its very basic.. but what i want it to do is have a loading screen and than show a picture and play a song... heres what i have


++++++++++++++++++++++++++++++++++++++++
pink = Color.new(255, 0, 255)

screen:print(194, 136, "Loading: 0%", pink)
screen.flip()

background = Image.load("background.png")

screen:clear()
screen:print(194, 136, "Loading: 20%", pink)
screen.flip()

screen:clear()
screen:print(194, 136, "Loading: 40%", pink)
screen.flip()

screen:clear()
screen:print(194, 136, "Loading: 60%", pink)
screen.flip()

boltsnd = Sound.load("song.mp3")

screen:clear()
screen:print(194, 136, "Loading: 80%", pink)
screen.flip()

screen:clear()
screen:print(194, 136, "Loading: 90%", pink)
screen.flip()

screen:clear()
screen:print(194, 136, "Loading: 100%", pink)
screen.flip()

screen.waitVblankStart(60)

screen:blit(0, 0, background, false)
screen.waitVblankStart()
screen.flip()

boltsnd:play()
screen.waitVblankStart(240)
screen.flip()
Music.volume(128)

while true do
screen:blit(0, 0, background, false)

end
++++++++++++++++++++++++++++++++

I have the background.png, and song.mp3 files saved in the same folder that i saved INDEX.lua...which is in applications in a folder called TESTING....what there is wrong?

--Stretch Arm-Strong

((((btw while i was playing CS:S i was refferred here by another guy and he said that you guys were really nice and could help me out....so stick to his word))))
thsock
Posts: 25
Joined: Sun Sep 25, 2005 1:04 pm

Post by thsock »

You cant load/play a .mp3
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

I didn't include mp3, because you have to pay for it: http://www.mp3licensing.com/royalty/

Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

Shine wrote:I didn't include mp3, because you have to pay for it: http://www.mp3licensing.com/royalty/

Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod
This is absolute crap. I hate when companies attempt to comercialise file formats. File formats should be open source. If there's a better way to store data, then it should be used to further the evolution of man-kind, not to line the pockets of CEOs and their investment bankers. </rant>
Proud Dvorak User
US 1.5 PSP (Original)
thsock
Posts: 25
Joined: Sun Sep 25, 2005 1:04 pm

Post by thsock »

surely there is some way you could include mp3..
jimjamjahaa
Posts: 17
Joined: Mon Oct 03, 2005 5:00 am

Post by jimjamjahaa »

Zenurb wrote:
Shine wrote:I didn't include mp3, because you have to pay for it: http://www.mp3licensing.com/royalty/

Perhaps someday Ogg Vorbis will be included. In the meantime you can use some MOD: http://www.google.com/search?q=xm+s3m+it+mod
This is absolute crap. I hate when companies attempt to comercialise file formats. File formats should be open source. If there's a better way to store data, then it should be used to further the evolution of man-kind, not to line the pockets of CEOs and their investment bankers. </rant>
i think thats why ogg came about.
Post Reply