Post Reply 
A peak at the PTF format
Author Message
matchung
Turok Makto

Posts: 1,744.2413
Threads: 180
Joined: 5th Mar 2007
Reputation: -1.62846
E-Pigs: 162.3154
Offline
Post: #91
RE: A peak at the PTF format
ZiNgA BuRgA Wrote:The file looks like it's still compressed.  You sure you uncompressed it?

that one extrct by rcotool. this one by rcoeditor..

or how to decompress?
05/10/2007 08:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #92
RE: A peak at the PTF format
It can only be decompressed with Resurssiklunssi...
05/10/2007 08:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
matchung
Turok Makto

Posts: 1,744.2413
Threads: 180
Joined: 5th Mar 2007
Reputation: -1.62846
E-Pigs: 162.3154
Offline
Post: #93
RE: A peak at the PTF format
ZiNgA BuRgA Wrote:It can only be decompressed with Resurssiklunssi...

i have no idea how resurssklunssi can do? any hint?
1. ptf file
2. convert to rco by ptf2rco
3. Resurssiklunssi to decompress the rco
4. use rcotool/rcoeditor to decompress the rco resource.
5. the point is, how to decompress the background.gim then?
(This post was last modified: 05/10/2007 09:25 AM by matchung.)
05/10/2007 08:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #94
RE: A peak at the PTF format
After converting with ptf2rco, decompress the RCO with Resurssiklunssi.  That should be all you need to do.
Once you've done that, you can extract with any rco tool.  However, the extracted file you showed me appears to be still compressed, so you probably didn't put it through Resurssiklunssi?

Anyway, if, for some odd reason the above doesn't RLZ decompress the file, you can try doing it manually.  With the extracted background, open up an RCO containing icons.  Rename the extracted background to .dat  Replace the FIRST icon in the RCO with the .dat file.  Then open up the RCO in a hex editor, go to 0x11E and change the value there from 0x01 to 0x02.  Now run the RCO through Resurssiklunssi.
After that, open the RCO up, extract the first image as a .mig, and rename to .bmp.
Here is the output from the thing you gave me.


Attached File(s)
.rar  background.rar (Size: 112.98 KB / Downloads: 491)
05/10/2007 05:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
matchung
Turok Makto

Posts: 1,744.2413
Threads: 180
Joined: 5th Mar 2007
Reputation: -1.62846
E-Pigs: 162.3154
Offline
Post: #95
RE: A peak at the PTF format
ZiNgA BuRgA Wrote:After converting with ptf2rco, decompress the RCO with Resurssiklunssi.  That should be all you need to do.
Once you've done that, you can extract with any rco tool.  However, the extracted file you showed me appears to be still compressed, so you probably didn't put it through Resurssiklunssi?

Anyway, if, for some odd reason the above doesn't RLZ decompress the file, you can try doing it manually.  With the extracted background, open up an RCO containing icons.  Rename the extracted background to .dat  Replace the FIRST icon in the RCO with the .dat file.  Then open up the RCO in a hex editor, go to 0x11E and change the value there from 0x01 to 0x02.  Now run the RCO through Resurssiklunssi.
After that, open the RCO up, extract the first image as a .mig, and rename to .bmp.
Here is the output from the thing you gave me.
but it can not convert perfectly :( incorrect color bars over the graphic


Attached File(s) Thumbnail(s)
   
05/10/2007 06:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #96
RE: A peak at the PTF format
Where'd you get that from?

It's screwed if it's not what you want...
All it is is just a decompression of the data.  No other manipulation done...
(This post was last modified: 05/10/2007 06:35 PM by ZiNgA BuRgA.)
05/10/2007 06:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
matchung
Turok Makto

Posts: 1,744.2413
Threads: 180
Joined: 5th Mar 2007
Reputation: -1.62846
E-Pigs: 162.3154
Offline
Post: #97
RE: A peak at the PTF format
ZiNgA BuRgA Wrote:Where'd you get that from?

It's screwed if it's not what you want...
All it is is just a decompression of the data.  No other manipulation done...
i did per your manually method to extract then did nothing to it :(

both from ptf theme....

here is the original background..


Attached File(s) Thumbnail(s)
   
05/10/2007 06:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #98
RE: A peak at the PTF format
Do you know how it was made?  The Sony PTF maker?
Hmm, cause if so, maybe it screws colours up on purpose or something.

Cause, all this method does is extract the image for you - no conversion has been done... Erk

Dodgey.  It places two red and blue bars across the image...  I suspect they just swapped the colour channels.

EDIT: yep, appears to be some colour channel swapping (or possibly a skipped byte or two I guess).
Bars 1 and 4: GBR
Bars 2 and 5: BRG
Bars 3 and 6: RGB (normal)


EDIT 2: Okay, here's a sort of method to fix it - it makes artefacts appear, but that's primarily because I haven't got the exact offset here.
Open up the BMP in hex editor, go to 0xFF36 and delete one byte.  Add 0xFF00 to 0xFF36, go there and delete another byte.  Keep repeating this, by adding 0xFF00 each time.
If you get the offsets correct though, it should fix up the image.
If you do the above, you should end up with something like this:
[Image: backgroundvt7.png]
The lines should be removable if you find the exact spot to delete.
(This post was last modified: 05/10/2007 08:08 PM by ZiNgA BuRgA.)
05/10/2007 07:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
matchung
Turok Makto

Posts: 1,744.2413
Threads: 180
Joined: 5th Mar 2007
Reputation: -1.62846
E-Pigs: 162.3154
Offline
Post: #99
RE: A peak at the PTF format
ZiNgA BuRgA Wrote:Do you know how it was made?  The Sony PTF maker?
Hmm, cause if so, maybe it screws colours up on purpose or something.

Cause, all this method does is extract the image for you - no conversion has been done... Erk

Dodgey.  It places two red and blue bars across the image...  I suspect they just swapped the colour channels.

EDIT: yep, appears to be some colour channel swapping (or possibly a skipped byte or two I guess).
Bars 1 and 4: GBR
Bars 2 and 5: BRG
Bars 3 and 6: RGB (normal)

EDIT 2: Okay, here's a sort of method to fix it - it makes artefacts appear, but that's primarily because I haven't got the exact offset here.
Open up the BMP in hex editor, go to 0xFF36 and delete one byte.  Add 0xFF00 to 0xFF36, go there and delete another byte.  Keep repeating this, by adding 0xFF00 each time.
If you get the offsets correct though, it should fix up the image.
If you do the above, you should end up with something like this:
[Image: backgroundvt7.png]
The lines should be removable if you find the exact spot to delete.

[Image: bggn3.jpg]
quite complex... wondering how bstronga can extract the background...
http://endlessparadigm.com/forum/showthr...6#pid49416
(This post was last modified: 05/10/2007 10:40 PM by matchung.)
05/10/2007 10:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,023.4213
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.0333
Offline
Post: #100
RE: A peak at the PTF format
^ They're from official themes.  I extracted backgrounds from those themes without problems.  I dunno why yours have weird lines, which is why I'm asking where you got those PTFs from...
06/10/2007 12:43 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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

 Quick Theme: