| View previous topic :: View next topic |
| Author |
Message |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sat Sep 03, 2005 8:46 am Post subject: file organization on memory stick |
|
|
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 |
|
 |
KawaGeo
Joined: 27 Aug 2005 Posts: 191 Location: Calif Mountains
|
Posted: Sat Sep 03, 2005 10:46 am Post subject: |
|
|
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 |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sat Sep 03, 2005 4:45 pm Post subject: |
|
|
| 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 |
|
 |
nevyn
Joined: 31 Jul 2005 Posts: 136 Location: Sweden
|
Posted: Sun Sep 04, 2005 1:18 am Post subject: |
|
|
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 |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sun Sep 04, 2005 1:44 am Post subject: |
|
|
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 |
|
 |
|