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 

file organization on memory stick

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



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Sep 03, 2005 8:46 am    Post subject: file organization on memory stick Reply with quote

There are some ideas in other posts, how the files with PhysicsFS and without should be organized, which we should discuss before releasing a new version. The unordered list of ideas, somtimes contrary:

- storing only EBOOT.PBP in /PSP/GAME/luaplayer
- to avoid EBOOT.PBP replication, games are saved in /PSP/LuaPlayer/Applications only
- to allow starting Lua Player games without a loader, games can be stored in PSP/GAME/luaplayer
- using /PSP/LuaPlayer/Documents/gameName for data saved from the games (output redirect and restriction to the Documents game directory is possible with PhysicsFS)
- distributing common used Lua libraries, like a pad event handler class, in /PSP/GAME/luaplayer/Library
- using /PSP/GAME/luaplayer/Library/system.lua as startup script
- using /PSP/GAME/luaplayer/script.lua as startup script
- System.changeDirectory("game.zip") uses the files within game.zip as if it were a normal directory (with PhysicsFS)
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Sat Sep 03, 2005 10:46 am    Post subject: Reply with quote

Shine,

What particular webpage(s) are you referring to regarding PhysicsFS if I may ask?

Google lists over 500 references for PhysicsFS.
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sat Sep 03, 2005 4:45 pm    Post subject: Reply with quote

KawaGeo wrote:
What particular webpage(s) are you referring to regarding PhysicsFS if I may ask?

Google lists over 500 references for PhysicsFS.


Yes, it's all the same. The homepage is the first Google result: http://icculus.org/physfs/
Back to top
View user's profile Send private message
nevyn



Joined: 31 Jul 2005
Posts: 136
Location: Sweden

PostPosted: Sun Sep 04, 2005 1:18 am    Post subject: Reply with quote

I agree with all the points but the first one ;)

Or actually, I sorta disagree with the third point, but it does make sense to deploy some apps standalone, without Lower and all that other stuff.

Here's my proposed file structure for the standard distribution:
Code:
luaplayer/EBOOT.PBP
luaplayer/Applications/ (all applications but file browser)
luaplayer/Documents/ (save game folder like proposed)
luaplayer/System/Library/ (for libraries)
luaplayer/System/Startup/ (for the file browser, currently Lowser)
luaplayer/System/system.lua (startup script)


but ALSO allowing for a distribution that looks like this:
Code:
somegame/EBOOT.PBP (the LuaPlayer binary)
somegame/script.lua (Some game or application)
(somegame/System/Library/) (if needed/wanted)


Or even like this, so that a Lowser user could just take the Some game folder and discard the rest:
Code:
somegame/EBOOT.PBP (the LuaPlayer binary)
somegame/Some game/script.lua (Some game or application)
(somegame/System/Library/) (if needed/wanted)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Sun Sep 04, 2005 1:44 am    Post subject: Reply with quote

Ok, I agree with all three layout concepts and we store anything in /PSP/GAME/luaplayer [or game name for standalone]. Then on startup Lua Player scans the current folder in this sequence:

- script.lua
- System/system.lua
- if nothing found with the previous scans, all folders for "folderName/script.lua"

This is the most flexible concept.
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