help us understanding a psx file type!

Discussion in 'Sony Programming and Development' started by karsten, Jan 18, 2008.

  1. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
    so in short, as many people knows, at auritech.eu we are working (and mainly succeeding) on hacking the psx game Final Fantasy Tactics. so far everything is going smoothly, but we are having problems with sprite editing.

    the .spr files seem to have a part that is just uncompressed picture, and a "lower" part that is somehow compressed..... and that is what we are having problem at understanding.

    can someone help, or point us to the right direction? we have no clue about psx file compression, and those compressed parts are important for having a perfectly working sprite.

    also, do any tool for editing those files exist?

    I'm GRATEFUL for ANY kind of help you people can provide!

    karsten
     
  2. djelaba

    djelaba Benzin !, Site Supporter 2013

    Joined:
    May 12, 2005
    Messages:
    257
    Likes Received:
    11
    According to this website :

     
  3. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
    actually we already discovered it's not so :)

    we are well aware of that page, but we have eceeded it, also he has a new url. by the way from my (poor) understanding, all the pics are non compressed up to the garbage mess. the garbage mess is supposed to be a compressed attack animation
     
  4. drx

    drx BLAST PROCESSING. SITE SUPPORTER 2015

    Joined:
    Jun 16, 2006
    Messages:
    509
    Likes Received:
    275
    If I knew more about PSX dev, I could try cracking the compression format (I've cracked a few before, but for Megadrive games).

    As I don't have a PSX dev kit or debugger, is there an emulator out there that provides good debugging functions?
     
  5. DevL

    DevL Robust Member

    Joined:
    Jul 9, 2006
    Messages:
    213
    Likes Received:
    0
    it would be better to share one file or try Tile Molester
    tool at first ( I dont know what did you tried already )
     
  6. AntiPasta

    AntiPasta Fiery Member

    Joined:
    Dec 30, 2006
    Messages:
    809
    Likes Received:
    4
    Probably nothing, but it might be in MJPEG format (ie, the same format used for PSX movies and hardware-decrypted by the MDEC chip). I've never played FFT so I wouldn't know how this animation looks so I can't really tell for sure.

    Have you tried running the game in an emulator and monitoring VRAM? Perhaps you can isolate the routine by setting breakpoints. Send me a PM if you need help.
     
  7. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
    i'm completely clueless about special emus and VRAM :p i guess you guys should have a chat with the main hacker, zodiac... would you guys register at auritech.eu to help?

    by the way i've uploaded a .spr file here www.auritech.eu/H61.SPR
    we have a tool that allows to see the sprite and palette, but the tools builder didn't figure out the last part of compressed data that form what zodiac said is

    "from hex 0x9200 to the end of file"
     
  8. Zodiac

    Zodiac Guest

    The sprites have a 4bit color dept, so I suppose MJPEG would be out of the question.

    As monitoring VRAM, I wouldn't even know where to start.
    When the event is loaded, every used sprites are loaded in memory, then it will call for some routine and store the sprite in another format. After that only routine, the loaded sprite file becomes completely useless.

    I don't know what are the instructions used to load bytes in another file either.

    I hate debugging though, my comp sucks so much; it's awfully slow.
     
  9. AntiPasta

    AntiPasta Fiery Member

    Joined:
    Dec 30, 2006
    Messages:
    809
    Likes Received:
    4
    Ah yeah, the MDEC thing was just a guess, to be honest. My Caetla setup is currently non-operational (heck, I dont even have a copy of the game), and my current PC isn't really up to spec either. However, if you want, I can provide help with disassembling the routine if you could isolate it for me.
     
  10. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
    just wondering is someone is helping or working on it.

    thanks
     
  11. DevL

    DevL Robust Member

    Joined:
    Jul 9, 2006
    Messages:
    213
    Likes Received:
    0
    I've checked the data and it appears to be like common output


    Question - what is the deep reason to find any more details ?
     
  12. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
    otherwise the sprites won't show the attack animation. all the animation is uncompressed (magic, kneeling, singing, etc) except for what concern the attacks, and we need that to be able to completely hack the game.

    also the info you quoted are inaccurate, it was just a guess made years ago.
     
  13. DevL

    DevL Robust Member

    Joined:
    Jul 9, 2006
    Messages:
    213
    Likes Received:
    0
    ah, I see the point - it looks that no deep debugging researches/tools being made and that is where the help is needed.
    Hope you will find someone.
     
  14. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
  15. AntiPasta

    AntiPasta Fiery Member

    Joined:
    Dec 30, 2006
    Messages:
    809
    Likes Received:
    4
    Congrats, guys! So what was this mysterious data anyway?
     
  16. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
    the attacks part! i hope that a tool will be coded soon now :)
     
  17. DevL

    DevL Robust Member

    Joined:
    Jul 9, 2006
    Messages:
    213
    Likes Received:
    0
  18. karsten

    karsten Member of The Cult Of Kefka

    Joined:
    Mar 14, 2004
    Messages:
    4,015
    Likes Received:
    149
    but still no tool, even tought we have the code for decompressing/compressing the files... i hope that soo it'll be released!
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page