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!

file browsers coded in lua ??????

This is a discussion on file browsers coded in lua ?????? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi ive decided to work on a browser for my psp in lua and eventually release it when it nears ...

Reply
 
LinkBack Thread Tools
Old 07-08-2007, 11:58 PM   #1
Developer and Tutor.
 
FaT3oYCG's Avatar
 
My Mood: Happy
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
Exclamation file browsers coded in lua ??????

Hi ive decided to work on a browser for my psp in lua and eventually release it when it nears completion but there is one main thing that i cant quite seem to find out. ???? quite simply i would like to assign the triangle button to go up a directory on the memory stick when it is pressed.

how would i do that ?????

e.g.

if
pad:triangle()
then
go up one dir
end

Last edited by FaT3oYCG; 07-09-2007 at 01:04 AM..
FaT3oYCG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 12:41 AM   #2
 
myschoo's Avatar
 
Join Date: Jul 2006
Location: Middle Europe
Posts: 1,281
Trader Feedback: 0
Default

look on evilmana there is sample by TP
__________________
[CENTER][SIZE="1"][1 Year QJ Member]
[COLOR="Sienna"][LUA Coder and C Learner][/COLOR]
[URL="http://dl.qj.net/Ball-Revamped-Clone-v.1-PSP-Homebrew-Games/pg/12/fid/15231/catid/195"] [COLOR="SlateGray"][Ball Revamped Clone v0.1][/COLOR] [/URL]
[URL="http://dl.qj.net/Phil-s-Shooting-Range-v0.3-PSP-Homebrew-Games/pg/12/fid/11542/catid/194"] [COLOR="SlateGray"][Phil's Shooting Range v0.3][/COLOR] [/URL]
[URL="http://dl.qj.net/Organization-Apps/pg/12/fid/14248/catid/190"][COLOR="SlateGray"][HideFile PRX v2][/COLOR][/URL]
[URL="http://dl.qj.net/SSR-PRX-v1.1-PSP-Homebrew-Applications/pg/12/fid/14725/catid/151"][COLOR="SlateGray"][SSR PRX v1.1][/COLOR][/URL] [/SIZE][/CENTER]
myschoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 12:45 AM   #3
Developer and Tutor.
 
FaT3oYCG's Avatar
 
My Mood: Happy
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
Default

ok thanks

EDIT:

ive been there and the code doesnt tell me what i need to know ive already programmed that bit like tp's but i want to specifically know how to go back a directory (DIR) when triangle is pressed!!!!!!!!

anyone know?????

thanks

Last edited by FaT3oYCG; 07-09-2007 at 12:57 AM..
FaT3oYCG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 03:34 AM   #4

is not posting very often
 
Glynnder's Avatar
 
Join Date: Feb 2006
Location: omnipresent
Posts: 5,161
Trader Feedback: 0
Default

cd(..)

or
system.currentDirectory = ..
or somethign
__________________
Quote:
Originally Posted by Abe
Either way, if you don't know, don't guess. Stick to answering questions about stuff you're qualified to answer, like Pokemon questions or something along those lines.
http://forums.qj.net/501501-post26.html
Glynnder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 06:17 AM   #5
 
Join Date: Mar 2007
Posts: 755
Trader Feedback: 0
Default

check out the wiki, list all functions:
http://wiki.ps2dev.org/psp:lua_playe...ayer_functions
__________________
[I][U]QJ took away my sig. :([/U][/I]
michaelp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 07:24 AM   #6
Developer and Tutor.
 
FaT3oYCG's Avatar
 
My Mood: Happy
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
Default

thanks mike i looked over my code after looking at the site and found the problem it all works now

thanks

----- F@T3oYCG -----
FaT3oYCG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 12:48 PM   #7
 
Join Date: Aug 2006
Posts: 1,633
Trader Feedback: 0
Default

Don't use the filebrowser on evilmana; it's old and very inefficient.

Oh and to go up a directory by pressing triangle try doing something like this:

Code:
if pad:triangle() and not oldpad:triangle() then
System.currentDirectory("..")
filelist = System.listDirectory()
select = 1
end
TacticalPenguin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2007, 01:15 PM   #8
Developer and Tutor.
 
FaT3oYCG's Avatar
 
My Mood: Happy
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
Default

Thanks tp but ive already sorted it

i used this code:

Code:
if
pad:triangle() and oldpad:triangle() ~= pad:triangle()
then
System.currentDirectory("..")
current = 1
listitems = System.listDirectory()
getnames = table.getn(listitems)
end
FaT3oYCG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
browsers , coded , file , lua

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 08:06 AM.



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