Sakurasou no Pet na Kanojo - Translating - Open .txg , .txgtl etc...

Discussion in 'PSP - Hacking & Homebrew' started by GAMiEE, Jan 18, 2015.

  1. GAMiEE
    OP

    GAMiEE Newbie

    Newcomer
    5
    7
    Jan 18, 2015
    Heya,

    Im trying to translate the Sakurasou no Pet na Kanojo for PSP. Game is developed by ASCII Media Works, Netchubiori , Kadokawa Games and CriWARE, so all files has been packed in .CPK files where i successfuly unpacked.

    In these packs has been files where i cant indetify (and i cant found some infos about that extensions):
    • txgtl (i think is about Texture)
    • txg (Textures i think)
    • cbg (Next textures, think Backgrounds)
    • fnt (Fonts i think)
    • awb (Some sounds)
    • cmed (looks like translation file, but not all, i found here a some strings, but now i cant identify how reading works)
    • csu (no idea)
    • loc (no idea)
    • pmf (videos)
    • rkd (probably internal file for saving data)
    • slpd (contains file addresses for .ssb files)
    • ssb (no idea)
    • tipd (string file again, but dont know how its works)
    • tmd (again strings)
    • tskd (no idea!
    • tskt (no idea)
    • adx (sounds, but not found way to open it)
    • hca (probably models)
    Please, if u know how to Open or anything about this file extensions, please reply in this topic :)
    Thanks :)
    (BTW, its can be really anything, im programmer, so any instructions may help me :) )
     


  2. Abu_Senpai

    Abu_Senpai The Red King

    Member
    1,146
    465
    Jul 13, 2014
    United Kingdom
    Ikebukuro

    Can I just give you my greatest congratulations on even attempting to translate this game.
    I hope you find the answers your looking for (kinda stupid question but have you tried an extensive search on Google? )
    Thank you so much for doing this. It's an amazing anime and looks awesome.OHHH COLOURS!


    [​IMG]
     
    GAMiEE likes this.
  3. GAMiEE
    OP

    GAMiEE Newbie

    Newcomer
    5
    7
    Jan 18, 2015
    I do anything for translate this awesome Anime-Game. :) One of bests anime what i watched :) I sharing u happiness.

    For flamers, i tryied to finds all this extensions in Google :) but failured, else i not writed here ;)

    BTW, if i will be cant translate game, probably i will go record full game and translate in video dialogs ;)
     
    cearp and Abu_Senpai like this.
  4. JuliusEra

    JuliusEra majestix1988

    Newcomer
    75
    9
    Jul 24, 2012
    maybe try to contact fans of that anime to get a translator to translate that game

    good luck and have fun translating
     
  5. Joe88

    Joe88 [λ]

    Member
    11,543
    2,751
    Jan 6, 2008
    United States
    NYC
    I guess you can try and contact people who did other translations of psp games here for help about the file structure where are the files that need to be translated (i'm assuming you understand Japanese) as well as repacking everything

    thank you for this effort, also episode 23 :cry:
     
  6. GAMiEE
    OP

    GAMiEE Newbie

    Newcomer
    5
    7
    Jan 18, 2015
    Probably fans of that anime not are programmers where knows how to works with files :) but i will try. But i dont know where :)
    I got this idea too, but again, i dont know where to ask :) .
     
  7. flame1234

    flame1234 GBAtemp Advanced Fan

    Member
    711
    399
    May 17, 2009
    United States
  8. GAMiEE
    OP

    GAMiEE Newbie

    Newcomer
    5
    7
    Jan 18, 2015
    Yes, im about hacking the files :) .
    Actually, dont know so much what todo, but now is priority the PSP game, becouse Manga(Novel with ilustrations) has been completed yet (if i readed good :D )
     
  9. SkyBladeCloud

    SkyBladeCloud GBAtemp Fan

    Member
    421
    845
    Oct 7, 2010
    • txg -> trivially encoded ARGB (can be both indexed or direct-color, both 32 or 16 bits) images. The ones I've seen are PSP-interleaced.
    • txgtl -> txg package.
    • cbg -> txgl with additional header with extra information. Used for BG images, in these files, each txg is a 32*32 BG tile.
    • ssb -> event script file, contain both game event logic and yes, also the text to translate.
    • fnt -> No-brainier. Contains both the charset and the font graphic.
    • awb -> AFS package with CRI sound files.
    • adx -> CRI sound file.
    • cmed -> comment list (I know, yeah), also has text to translate.
    • csu -> essentially, same format than cbg.
    • loc -> essentially, same format than txg. The one I decoded contained text (as image, of course). See below.
    • pmf -> right, videos.
    • rkd -> god knows, small file? 32 bit little endian small values? I don't think it's an important file.
    • slpd -> Event script file list + some small data, probably related to script configuration.
    • tipd -> Yes, contains text to translate. Pointers are probably elsewhere.
    • tmd -> Same.
    • tskd -> Same.
    • tskt -> Some kind of configuration file.
    • lbd -> Character models. See below.
    LOC example:

    [​IMG]

    LBD example:

    [​IMG]

    ~Sky
     
    cearp, GAMiEE and Abu_Senpai like this.
  10. GAMiEE
    OP

    GAMiEE Newbie

    Newcomer
    5
    7
    Jan 18, 2015
    wow, really thank u :) . So my todo is to translate all strings to english, so i must edit the images, but i got one question, how u Decoded that .loc file? I looked that loc files, but i didnt get any idea how to parse it :) . Please can u write me the specifications (structure) or any help about of TXG header image file? (For use in BinaryReader) Its looks like as RAW, but anyway its encoded, so i will must get a idea of the file works . Im beggining about that (Reverse Engineering, some skills at Assembler and reading files, but this is for me some hard).
     
    Abu_Senpai likes this.
  11. ChepChep

    ChepChep GBAtemp Advanced Fan

    Member
    587
    601
    Feb 9, 2011
    United States
    So I looked at the file formats a bit and figured out most of the dat pack.

    Here is a python script to unpack dat format for Sakurasou no Pet na Kanojo which requires python 2.7.x to be installed:
    http://filetrip.net/dl?m9ulepXpUT

    Here are the details of the file format:

    All numbers are in little endian format:

    Bytes
    0x0000-0x0003: File format header 0x47504441 "GDPA"
    0x0004-0x000B: dat file size
    0x000C-0x000F: number of files inside dat container

    0x0010-0x0XXX: 16 bytes time number of files in dat container

    0x10 bytes in each line for each file in dat container

    0x00-0x03: address of start of file within dat container
    0x04-0x07: unknown : all files I have looked at are all 0x0000
    0x08-0x0B: length of file in dat container
    0x0C-0x0F: unknown: may be a checksum ?

    After the address and file size block there is a block of filenames in the following format:

    0x0000-0x0004: Length of filename
    0x0005-0x00XX:File name followed by "0x20"

    After this header the data in the files follow.

    Example can be seen here:
    Warning: Spoilers inside!

    Bytes
    0x0000-0x0003: File format header 0x47504441 "GDPA"
    0x0004-0x000B: dat file size: 0x00101000
    0x000C-0x000F: number of files inside dat container: 0x09000000

    0x0010-0x00BF: 16 bytes time number of files in dat container 9 x 16
    example:
    0x0010-0x0013: 0x00080000 address in file for first file
    0x0014-0x0017: 0x00000000 no idea what this is used for
    0x0018-0x001B: File length - 0x08740000
    0x001C-0x001F: unknown - 0xA0000000

    0x00A0-0x0130: File names
    example:
    0x00A0-0x00B5:
    0x00A0-0x00A3: Number of chars in name - 0x12000000 ie 18
    0x00A4-0x00B4: Name of file: font_location.dat
    0x00B5: 0x20: end of file name marker

    After 0x0130 data of the files being stored in the dat container.

    I hope this helps. If anyone has any questions please pmail me.
    -ChepChep
     
  12. Sliter

    Sliter GBAtemp Addict

    Member
    2,998
    785
    Dec 7, 2013
    Brazil
    ᕕ( ᐛ )ᕗ
    wow I didin't knew this anime got a game! I liked the anime XD
    need help with graphical stuff? I could help
     
  13. ultracheat45

    ultracheat45 Newbie

    Newcomer
    4
    1
    Mar 4, 2015
    I too, is trying to translate this visualnovel and had a very tiny progress. Perhaps, we can work together? :3
     
  14. Katsumi San

    Katsumi San GBAtemp Fan

    Member
    489
    213
    Jan 15, 2012
    Kyoto
    Did someone is say Sakurasou no Pet na Kanojo? :-D I love this serie very much!
    Yuuske Kun!
     
    ultracheat45 likes this.
  15. ultracheat45

    ultracheat45 Newbie

    Newcomer
    4
    1
    Mar 4, 2015
    Too bad the author, screwed up the ending. Making the fans hate it and making the chance of Season 2 fade away. ; -;
     
  16. Katsumi San

    Katsumi San GBAtemp Fan

    Member
    489
    213
    Jan 15, 2012
    Kyoto
    It was okay, don't remind me... But it will not be same because some characters is not come back for season 2.
     
  17. ultracheat45

    ultracheat45 Newbie

    Newcomer
    4
    1
    Mar 4, 2015

    More on over, let's get back to the subject. Translating this very visualnovel. :yaypsp:
     
    Katsumi San likes this.
  18. Abu_Senpai

    Abu_Senpai The Red King

    Member
    1,146
    465
    Jul 13, 2014
    United Kingdom
    Ikebukuro


    Evening! I happen to have this games scripts
    The psp full game scripts

    If you are capable of translating the scripts from Japanese to English then let me know because I can give you the scripts
    But unfortunately you will need to find a hacker to re crack open the iso and then after wards he will need to re insert the scripts back into the game
     
    ultracheat45 likes this.
  19. ultracheat45

    ultracheat45 Newbie

    Newcomer
    4
    1
    Mar 4, 2015

    Might as well, try doing that.
     
  20. nonamen

    nonamen Newbie

    Newcomer
    1
    0
    Mar 4, 2015
    This seems nice and nayuta no kiseki is getting a translation from flame.