ditto
07-19-2005, 05:40 PM
Bud of mine frankiboy made this very nice tool for us *nix heads, instead of ranting about its features, I'll make it short & sweet with a c&p of the man.
Its been tested by yourstruely & frankiboy since 0.1 and all current features works for us, if you should stumble over any bugs, please be kind to reply in this thread here at maxconsole.
This is the first public release, source included.. Enjoy!
SYNOPSIS
pbped [<options>] <title>
Summary of options:
-a <SND0.AT3> : Specify sound AT3 file
-c : Hide corrupted folders (only together with -n)
-d <directory> : output directory. (Default: ./1.5 when -n, else ./1.0)
-D : Enable debug output
-e <UNKNOWN.PSP> : Specify PSP elf file
-E <EBOOT.PBP> : Use unspecified files from this PBP file
-i <ICON0.PNG> : Specify icon PNG file
-I <ICON1.PMF> : Specify icon PMF file
-m : Make a 1.0 release
-n : Make a 1.5 release
-o <EBOOT.PBP> : Output new EBOOT.PBP to this file (only valid when -n or -m is not set)
-p <PIC1.PNG> : Specify PIC1 PNG file
-s <PARAM.SFO> : Specify SFO file
-u <UNKNOWN.PNG> : Specify unknown PNG file
-U <UNKNOWN.PSAR> : Specify unknown PSAR file
<title> : Specify title (used for release directories when -n or -m is set)
DESCRIPTION
Handy tool for PSP(Sony Playstation Portable) PBP files, use this to convert 1.0-1.5(or vice versa), modify PNG, PBP, PMF etc from existing PBP, or make a PBP from scratch to both 1.0 & 1.5
OPTIONS
-a <SND0.AT3>
Specify sound AT3 file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-c
This options take advantage of the FAT file system bug in 1.5 PSPs. The two folders will be named in such a way that only one of the folders is visible for the PSP GUI. Avoids ``Corrupt data'' entries. This options is only valid when making a 1.5 release.
-d <directory>
This options defines the output directory used when making a release. If not defined, default directory is ./1.0 when making a 1.0 release and ./1.5 when making a 1.5 release. The directory where the EBOOT.PBP file is placed will be <directory>/<title>/EBOOT.PBP.
-D
Enable debug output. This options lists which files are included in the resulting PBP file and where the PBP file(s) will be placed.
-e <UNKNOWN.PSP>
Specify PSP elf file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-E <EBOOT.PBP>
Specify input PBP file. If -m or -n is not defined, either -E or -o must be defined. If -m, -n or -o is not defined, the resulting PBP file will overwrite this file. The original PBP file will be backed up with filename <EBOOT.PBP>.orig.
-i <ICON0.PNG>
Specify icon PNG file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-I <ICON1.PMF>
Specify icon PMF file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-m
Make a 1.0 release.
-n
Make a 1.5 release. To hide corrupt data icons in PSP GUI, -c must be defined.
-o <EBOOT.PBP>
Output new EBOOT.PBP to this file (only valid when -n or -m is not set) If -m or -n is not defined, either -E or -o must be defined.
-p <PIC1.PNG>
Specify PIC1 PNG file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-s <PARAM.SFO>
Specify SFO file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-u <UNKNOWN.PNG>
Specify unknown PNG file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-U <UNKNOWN.PSAR>
Specify unknown PSAR file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
<title>
Specify title (used for release directories when -n or -m is set)
EXAMPLES
Example 1: Create a 1.5 release from a 1.0 release. All necessary files are included in the 1.0 EBOOT.PBP file. Hide corrupt data entry. In this example we call the game Tetris.
pbped -n -c -E EBOOT.PBP Tetris
This will result in a release located in ./1.5/Tetris__________________________1/ and ./1.5/Tetris~1%/. Just copy both directories to your PSP/GAME/ directory to install.
Example 2: Create a 1.0 release from a 1.5 release. For the sake of this example, we use the release made in the previous example.
pbped -m -E 1.5/Tetris~1%/EBOOT.PBP -e 1.5/Tetris__________________________1/EBOOT.PBP Tetris
All files are taken from the EBOOT.PBP except from the ELF file, which is located in the other directory. Even if the file is called EBOOT.PBP, this is just an ELF file.
Example 3: Add an icon to an existing PBP file. Just overwrite the input EBOOT.PBP file. A backup of the original PBP file, will be placed in EBOOT.PBP.orig
pbped -E EBOOT.PBP -i NEWICON.PNG
LICENSE
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Its been tested by yourstruely & frankiboy since 0.1 and all current features works for us, if you should stumble over any bugs, please be kind to reply in this thread here at maxconsole.
This is the first public release, source included.. Enjoy!
SYNOPSIS
pbped [<options>] <title>
Summary of options:
-a <SND0.AT3> : Specify sound AT3 file
-c : Hide corrupted folders (only together with -n)
-d <directory> : output directory. (Default: ./1.5 when -n, else ./1.0)
-D : Enable debug output
-e <UNKNOWN.PSP> : Specify PSP elf file
-E <EBOOT.PBP> : Use unspecified files from this PBP file
-i <ICON0.PNG> : Specify icon PNG file
-I <ICON1.PMF> : Specify icon PMF file
-m : Make a 1.0 release
-n : Make a 1.5 release
-o <EBOOT.PBP> : Output new EBOOT.PBP to this file (only valid when -n or -m is not set)
-p <PIC1.PNG> : Specify PIC1 PNG file
-s <PARAM.SFO> : Specify SFO file
-u <UNKNOWN.PNG> : Specify unknown PNG file
-U <UNKNOWN.PSAR> : Specify unknown PSAR file
<title> : Specify title (used for release directories when -n or -m is set)
DESCRIPTION
Handy tool for PSP(Sony Playstation Portable) PBP files, use this to convert 1.0-1.5(or vice versa), modify PNG, PBP, PMF etc from existing PBP, or make a PBP from scratch to both 1.0 & 1.5
OPTIONS
-a <SND0.AT3>
Specify sound AT3 file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-c
This options take advantage of the FAT file system bug in 1.5 PSPs. The two folders will be named in such a way that only one of the folders is visible for the PSP GUI. Avoids ``Corrupt data'' entries. This options is only valid when making a 1.5 release.
-d <directory>
This options defines the output directory used when making a release. If not defined, default directory is ./1.0 when making a 1.0 release and ./1.5 when making a 1.5 release. The directory where the EBOOT.PBP file is placed will be <directory>/<title>/EBOOT.PBP.
-D
Enable debug output. This options lists which files are included in the resulting PBP file and where the PBP file(s) will be placed.
-e <UNKNOWN.PSP>
Specify PSP elf file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-E <EBOOT.PBP>
Specify input PBP file. If -m or -n is not defined, either -E or -o must be defined. If -m, -n or -o is not defined, the resulting PBP file will overwrite this file. The original PBP file will be backed up with filename <EBOOT.PBP>.orig.
-i <ICON0.PNG>
Specify icon PNG file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-I <ICON1.PMF>
Specify icon PMF file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-m
Make a 1.0 release.
-n
Make a 1.5 release. To hide corrupt data icons in PSP GUI, -c must be defined.
-o <EBOOT.PBP>
Output new EBOOT.PBP to this file (only valid when -n or -m is not set) If -m or -n is not defined, either -E or -o must be defined.
-p <PIC1.PNG>
Specify PIC1 PNG file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-s <PARAM.SFO>
Specify SFO file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-u <UNKNOWN.PNG>
Specify unknown PNG file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
-U <UNKNOWN.PSAR>
Specify unknown PSAR file. If an input PBP file is defined (with option -E), this file will be used instead of the file in the input PBP file.
<title>
Specify title (used for release directories when -n or -m is set)
EXAMPLES
Example 1: Create a 1.5 release from a 1.0 release. All necessary files are included in the 1.0 EBOOT.PBP file. Hide corrupt data entry. In this example we call the game Tetris.
pbped -n -c -E EBOOT.PBP Tetris
This will result in a release located in ./1.5/Tetris__________________________1/ and ./1.5/Tetris~1%/. Just copy both directories to your PSP/GAME/ directory to install.
Example 2: Create a 1.0 release from a 1.5 release. For the sake of this example, we use the release made in the previous example.
pbped -m -E 1.5/Tetris~1%/EBOOT.PBP -e 1.5/Tetris__________________________1/EBOOT.PBP Tetris
All files are taken from the EBOOT.PBP except from the ELF file, which is located in the other directory. Even if the file is called EBOOT.PBP, this is just an ELF file.
Example 3: Add an icon to an existing PBP file. Just overwrite the input EBOOT.PBP file. A backup of the original PBP file, will be placed in EBOOT.PBP.orig
pbped -E EBOOT.PBP -i NEWICON.PNG
LICENSE
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.