Post Reply 
recompress PRX files
forget vsh.prx and patchsfo
Author Message
diego
poof

Posts: 7,826.1659
Threads: 264
Joined: 22nd Jun 2007
Reputation: 1.80067
E-Pigs: 37.4012
Offline
Post: #141
RE: recompress PRX files
sooooo when will a tut come out?

[Image: cce6aa9e-c40c-4ae7-aebe-d7780d6fc009.gif]
02/08/2007 06:29 PM
Find all posts by this user Quote this message in a reply
afiser
Paradigmatic Apprentice

Posts: 44.1835
Threads: 0
Joined: 13th Apr 2007
Reputation: 0
E-Pigs: 0.5304
Offline
Post: #142
RE: recompress PRX files
diego_429 Wrote:sooooo when will a tut come out?

there are tuts look through the thread.
02/08/2007 06:39 PM
Find all posts by this user Quote this message in a reply
diego
poof

Posts: 7,826.1659
Threads: 264
Joined: 22nd Jun 2007
Reputation: 1.80067
E-Pigs: 37.4012
Offline
Post: #143
RE: recompress PRX files
its just they are so confusing I want a real n00b proof tut,

[Image: cce6aa9e-c40c-4ae7-aebe-d7780d6fc009.gif]
02/08/2007 08:19 PM
Find all posts by this user Quote this message in a reply
s_king
Paradigmatic Apprentice

Posts: 36.1229
Threads: 1
Joined: 1st Aug 2007
Reputation: 0.98386
E-Pigs: 2.9328
Offline
Post: #144
RE: recompress PRX files
Some infos about my PRX compressor project.

What you can do with the program now:
- load an original compressed 3.5x M33 prx to use as header (0x0 - 0x150). That means no need for frmware selector, you get the final prx for the same M33 firmware as your original prx was.
- load a decompressed prx (elf) to use as the data
- select gzip compression level
- compress the data part with the selected level
- the program keeps all of your original files, doesn't overwrite anything (gzip normally deletes the original file after the compression)

Things that surely will implemented in the first release (to do list):
- merge the header and the compressed part to the final prx
- 'Force dunno part' option: force to use the 4 bytes from vshmain.prx (0x130 - 0x132) "dunno" name from bstronga ;)
- filename difference checking: if you load paf.prx as header and a 'vsh.prx' named file as data, the program will warn you, but let you use the selected files
- maybe compression rate infos: original data x bytes, compressed data y bytes, gained z bytes or w% or something like that

And in the second version I will implement a decompressor. I believe it's not so important in the first release.

Release date? Tomorrow. Any ideas, suggestions are welcome.
02/08/2007 08:30 PM
Find all posts by this user Quote this message in a reply
diego
poof

Posts: 7,826.1659
Threads: 264
Joined: 22nd Jun 2007
Reputation: 1.80067
E-Pigs: 37.4012
Offline
Post: #145
RE: recompress PRX files
good news . . . I just hope it works and gets realeased on time.

[Image: cce6aa9e-c40c-4ae7-aebe-d7780d6fc009.gif]
02/08/2007 08:40 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #146
RE: recompress PRX files
s_king Wrote:- the program keeps all of your original files, doesn't overwrite anything (gzip normally deletes the original file after the compression)

Release date? Tomorrow. Any ideas, suggestions are welcome.
I hope you're using zlib to do deflation, right? :P
Double post
By the way, for anyone interested, the following is taken from gopez's PSP Documentation:

26.5 PSP

start end size description
0x00   3    4  '~PSP'
0x04        2  attribute

               1 SCE_MODULE_ATTR_CANT_STOP
               2 SCE_MODULE_ATTR_LOAD
               4 SCE_MODULE_ATTR_START

0x06        2  comp_attribute

               1 FLAG_COMPRESS
               2 FLAG_NORELOC (ie. norel=PFX; rel=PRX)

0x08        1  module version lo
0x09        1  module version hi
0x0a       28  name
0x26        1  fileformat version (=1)
0x27        1  nsegments
0x28        4  elf_size (unencrypted)
0x2c        4  psp_size (encrypted)
0x30        4  entry
0x34        4  modinfo_offset (high 8 bits are substracted from low 24 bits)
0x38        4  bss_size
0x3c           alignment (4 16bit values)
0x44           address (4 32bit values)
0x54           size (4 32bit values)
0x64           ? (6 32bit values)
0x7c        1  type
0x7d        3  ? (3 8bit values)
0x80      0x30 ?
0xb0        4  elf_size_comp; (*1) psp_size - 0x150 ( == elf_size if uncompressed file)
0xb4        4  ? always 0x00000080 ?
0xb8      0x18 ? always 0x00 ?
0xd0        4  ID ?
0xd4      0x7c ?

*1) elf_size_comp is the size of the compressed elf; if the file is not compressed, it is equal to elf_size; rounded up
to the next align boundary, is equal to psp_size - 0x150
02/08/2007 11:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bstronga
Vimperator

Posts: 457.2241
Threads: 19
Joined: 11th Mar 2007
Reputation: -5.33618
E-Pigs: 22.6748
Offline
Post: #147
RE: recompress PRX files
wow gopez' doc is much more completed!
03/08/2007 01:29 AM
Find all posts by this user Quote this message in a reply
Maxime
Able One

Posts: 65.1106
Threads: 3
Joined: 13th Apr 2007
Reputation: 0.76198
E-Pigs: 2.0199
Offline
Post: #148
RE: recompress PRX files
Takeshi's PRXRecomp new version is here!!!

[Image: PRXRecomp.png]

By the way For Takeshi if he reads it : Can you PM me? It's about VSH.PRX Editor french translation.
03/08/2007 02:52 AM
Find all posts by this user Quote this message in a reply
diego
poof

Posts: 7,826.1659
Threads: 264
Joined: 22nd Jun 2007
Reputation: 1.80067
E-Pigs: 37.4012
Offline
Post: #149
RE: recompress PRX files
YES THANK YOU VERY MUCH!

[Image: cce6aa9e-c40c-4ae7-aebe-d7780d6fc009.gif]
03/08/2007 03:33 AM
Find all posts by this user Quote this message in a reply
s_king
Paradigmatic Apprentice

Posts: 36.1229
Threads: 1
Joined: 1st Aug 2007
Reputation: 0.98386
E-Pigs: 2.9328
Offline
Post: #150
RE: recompress PRX files
Looks like Takeshi updated his program based completely on my ideas and plans. I stopped to finish my version, because there's no need to make a program what is doing exactly the same as another one.

Anyway, nice release, Takeshi. Good work!
03/08/2007 03:47 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 6 Guest(s)

 Quick Theme: