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

GAMiEE

Member
OP
Newcomer
Joined
Jan 18, 2015
Messages
5
Trophies
0
Age
33
XP
48
Country
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 :) )
 

Abu_Senpai

Well-Known Member
Member
Joined
Jul 13, 2014
Messages
1,513
Trophies
0
XP
1,186
Country
Syria
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 :) )


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!


images
 
  • Like
Reactions: GAMiEE

GAMiEE

Member
OP
Newcomer
Joined
Jan 18, 2015
Messages
5
Trophies
0
Age
33
XP
48
Country
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 ;)
 

JuliusEra

majestix1988
Newcomer
Joined
Jul 24, 2012
Messages
75
Trophies
0
XP
71
Country
maybe try to contact fans of that anime to get a translator to translate that game

good luck and have fun translating
 

Joe88

[λ]
Global Moderator
Joined
Jan 6, 2008
Messages
12,740
Trophies
2
Age
36
XP
7,475
Country
United States
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:
 

GAMiEE

Member
OP
Newcomer
Joined
Jan 18, 2015
Messages
5
Trophies
0
Age
33
XP
48
Country
maybe try to contact fans of that anime to get a translator to translate that game

good luck and have fun translating

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 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:

I got this idea too, but again, i dont know where to ask :) .
 

GAMiEE

Member
OP
Newcomer
Joined
Jan 18, 2015
Messages
5
Trophies
0
Age
33
XP
48
Country
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 )
 

SkyBladeCloud

Well-Known Member
Member
Joined
Oct 7, 2010
Messages
452
Trophies
0
Age
33
XP
1,420
Country
  • 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:

2we9btt.png


LBD example:

2h4algh.png


~Sky
 

GAMiEE

Member
OP
Newcomer
Joined
Jan 18, 2015
Messages
5
Trophies
0
Age
33
XP
48
Country
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).
 
  • Like
Reactions: Abu_Senpai

ChepChep

Well-Known Member
Member
Joined
Feb 9, 2011
Messages
611
Trophies
0
XP
876
Country
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:
33wpsac.png

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
 

Abu_Senpai

Well-Known Member
Member
Joined
Jul 13, 2014
Messages
1,513
Trophies
0
XP
1,186
Country
Syria
More on over, let's get back to the subject. Translating this very visualnovel. :yaypsp:



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
 
  • Like
Reactions: ultracheat45

ultracheat45

New Member
Newbie
Joined
Mar 4, 2015
Messages
4
Trophies
0
XP
53
Country
United States
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


Might as well, try doing that.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: That was good salad garlic toast and spaghetti