![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 someone please help me make a file browser for LuaPlayer HMv2? i've tried a bunch of times but i ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#9991 |
![]() QJ Gamer Blue
|
can someone please help me make a file browser for LuaPlayer HMv2?
i've tried a bunch of times but i can't figure out to make it work. please help ps. i've already tried the code from evilmana.com codebase and it doesn't work in LuaPlayer HMv2. |
|
|
|
|
|
#9992 | |
![]() |
Quote:
|
|
|
|
|
|
|
#9993 | ||
![]() ![]() QJ Gamer Silver
|
Quote:
Quote:
__________________
[Blog] [Portfolio] [Homebrew Illuminati - Serious Homebrew Development Forums] [I want to make Homebrew FAQ] [How I broke into the Games Industry] [Programming Book List] [Programming Article List] |
||
|
|
|
|
|
#9994 | |
![]() |
Quote:
|
|
|
|
|
|
|
#9995 |
![]() ![]() QJ Gamer Silver
|
So eos doesn't work as advertised? If that is the case then the only real alternative is to either ask the author to fix it, use another LuaPlayer (like PGE) or use a timer and play the music every X seconds where X is the length of the song.
OT: But after reading the readme again, the syntax correct version of the code I used should be: Code:
Ogg.load("Music.ogg");
Ogg.play();
while true do
if Ogg.eos() == 1 then
Ogg.play();
end
end
|
|
|
|
|
|
#9996 | |
![]() |
Quote:
Code:
Ogg.load("Music.ogg");
Ogg.play();
while true do
if Ogg.eos() == 1 then
screen:print(0,0,"Blah",0)
end
end
|
|
|
|
|
|
|
#9997 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,650
Trader Feedback: 0
|
oh yeah i forgot to mention i havent spoken to hm for a while but there is a problem with the sound functions.
you can only play a sound once and not loop it because they are set up wrong and the system.sound() function or whatever it is that enables some of the other sound functions some do not work and im pretty sure that if you use them they lock up your psp. if only i would have told you sooner silly me eh.
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: http://www.modern-gamer.co.uk/ Currently working on: (0) MediaGrab (0) PGE Gears Of War - On hold (Very large project). (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
#9998 | |
![]() |
Quote:
for ex. Code:
if foo.eos() then
foo.load("foo.song")
foo.play()
end
|
|
|
|
|
|
|
#9999 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,650
Trader Feedback: 0
|
i said that you could only play a sound once and not loop it i did not say however that there was no way at all to loop a sound.
|
|
|
|
|
|
#10000 |
![]() Lua guy
|
10,000th post
__________________
https://sourceforge.net/projects/projectd2/ |
|
|
|
|
|
#10002 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,650
Trader Feedback: 0
|
XD i told him to get it for a laf i would have got it myself but you just cant doubble post, look on the bright side you have the 10000th post if you look on the dev forum lol as it doesnt include the posters post XD.
|
|
|
|
|
|
#10009 | |
![]() QJ Gamer Blue
|
i need some help please, im trying to make an mp3 player in LuaPlayer HMv2. i've already got the music browser working but when you click a mp3 it freezes. here's my code:
Quote:
|
|
|
|
|
|
|
#10010 |
![]() |
Could someone please tell me how to check collision based on colour. I have checked but found nothing.
__________________
My Releases: --------------------------------------------------- [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL] [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL] [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL] [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL] |
|
|
|
|
|
#10011 | |
![]() |
I tried to convert my code to PGELua but it seems very different it don't uses screen.waitVblankstart and screen.flip and more of those kinda things..
Can you tell me how to make an alpha color in luaplayerHM? -=Double Post Merge =- Quote:
Last edited by Predricted; 06-26-2009 at 01:57 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#10012 |
![]() Lua guy
|
ColourObject = Color.new(red, green, blue, alpha)
--IN pge ColourObject = pge.gfx.createcolor(red, green, blue, alpha) |
|
|
|
|
|
#10013 |
![]() |
|
|
|
|
|
|
#10016 |
![]() ![]() QJ Gamer Bronze
Join Date: Nov 2008
Real First Name: Mohamed
Location: CAD
Just Played: X-Men Origins: Wolverine
Posts: 417
Trader Feedback: 0
|
LPHMv2 supports most of the lua code, but there are diffrent (modified) functions.
eg: Code:
screen:print(x,y,text,color) Code:
screen.print(x,y,text,size,color,glow color, pgf font from 0-7) |
|
|
|
|
|
#10020 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,650
Trader Feedback: 0
|
pge can use alpha colours and i dont think any of the other playes could it was either 255 or 0 atleast that is what i found i think it may have been a bug.
|
|
|
|
![]() |
| Tags |
| code , lib , lua , luaplayer , noobs , programming , psp programming , scripting , thread |
| Thread Tools | |
|
|