forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What did i do wrong?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Stretch Arm-Strong



Joined: 11 Oct 2005
Posts: 5

PostPosted: Tue Oct 11, 2005 9:28 am    Post subject: What did i do wrong? Reply with quote

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))))
Back to top
View user's profile Send private message AIM Address
thsock



Joined: 25 Sep 2005
Posts: 25

PostPosted: Tue Oct 11, 2005 11:41 am    Post subject: Reply with quote

You cant load/play a .mp3
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Tue Oct 11, 2005 6:01 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Zenurb



Joined: 30 Sep 2005
Posts: 106
Location: United Kingdom

PostPosted: Tue Oct 11, 2005 9:39 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
thsock



Joined: 25 Sep 2005
Posts: 25

PostPosted: Wed Oct 12, 2005 2:50 am    Post subject: Reply with quote

surely there is some way you could include mp3..
Back to top
View user's profile Send private message
jimjamjahaa



Joined: 03 Oct 2005
Posts: 17

PostPosted: Wed Oct 12, 2005 3:27 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group