file organization on memory stick

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

Moderators: Shine, Insert_witty_name

Post Reply
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

file organization on memory stick

Post by Shine »

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)
KawaGeo
Posts: 191
Joined: Sat Aug 27, 2005 6:52 am
Location: Calif Mountains

Post by KawaGeo »

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
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

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/
nevyn
Posts: 136
Joined: Sun Jul 31, 2005 5:05 pm
Location: Sweden
Contact:

Post by nevyn »

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: Select all

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: Select all

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: Select all

somegame/EBOOT.PBP (the LuaPlayer binary)
somegame/Some game/script.lua (Some game or application)
(somegame/System/Library/) (if needed/wanted)
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

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.
Post Reply