ROM Hack [Release] CTPK Tool

arbalest876

Well-Known Member
Newcomer
Joined
Oct 7, 2014
Messages
54
Trophies
0
Age
35
XP
88
Country
Switzerland
I open an .txp file in UE,and I think it should be a ctpk file.(look at the picture)
But I can't use ctpktool to dump it.The tool says"Not a valid ctpk file".
Even I cut the beginning of the txp file.The tool still doesn't work.
 

Attachments

  • txp.png
    txp.png
    5.1 KB · Views: 1,228

Anton299

Well-Known Member
Member
Joined
Jan 18, 2012
Messages
125
Trophies
0
Age
49
Location
Kiev
Website
www.shedevr.org.ru
XP
314
Country
Ukraine
Could you please make the same tool for .CTXB and .B(FLIM) formats?..
Normmatt's Texturipper is able to extract PNG from that files, but I couldn't find any tool on this planet that is able to convert PNGs back to CTXB & BFLIM... :(
 
D

Deleted User

Guest
I open an .txp file in UE,and I think it should be a ctpk file.(look at the picture)
But I can't use ctpktool to dump it.The tool says"Not a valid ctpk file".
Even I cut the beginning of the txp file.The tool still doesn't work.

If I remember correct this is LZ7 compressed, so decompress that then use OP's tool and everythings sorted.

Those files are from One of the Level 5 games are they not? If I remember correctly Attack of theFriday Monsters looked exactly like that.
 

arbalest876

Well-Known Member
Newcomer
Joined
Oct 7, 2014
Messages
54
Trophies
0
Age
35
XP
88
Country
Switzerland
That's not a valid CTPK file on its own. The data is compressed. You need to decompress it before it'll work. You can use DSDecmp (3DSExplorer has a DSDecmp tool built in) to decompress the data.

I use DSDecmp to decompress it successfully,thank you.But,when I try to decompress another txp file,DSDecmp says "No suitable decompressor found for xxxx.txp"(look at the attach)

If I remember correct this is LZ7 compressed, so decompress that then use OP's tool and everythings sorted.

Those files are from One of the Level 5 games are they not? If I remember correctly Attack of theFriday Monsters looked exactly like that.
No,it's the images from BNGI's Taiko no Tatsujin.
 

Attachments

  • cmd.png
    cmd.png
    854 bytes · Views: 845
  • songselect.png
    songselect.png
    3.6 KB · Views: 713

Smariter

Active Member
Newcomer
Joined
Dec 23, 2014
Messages
29
Trophies
0
Age
53
XP
91
Country
I open an .txp file in UE,and I think it should be a ctpk file.(look at the picture)
But I can't use ctpktool to dump it.The tool says"Not a valid ctpk file".
Even I cut the beginning of the txp file.The tool still doesn't work.

That's compress with LZ-11
 

DJPlayer

Banned!
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
44
XP
428
Country
Netherlands
is there a way to rebuild ctpk-files with etc1 (Ericsson Texture Compression 1)?
Fire Emblem If is using this Compression for ctpk-files and other image-files but ctpktool seems to use another compression.
I tried to use a rebuilt FIle (with no etc1 compression) ingame but it does not work properly...
 

jaxx21

Member
Newcomer
Joined
Jun 24, 2007
Messages
21
Trophies
0
XP
271
Country
France
hi, for me, its for Dragon ball Z Ultimate Mission 2 card game. i try to decompress with cptk tool and i have an error:
Code:
Converting D:/work/TAG2/svn/trunk/Projects/WorkData/2D/CARD/GB-01_F.rotate.tmp.tga...

Exception non gérée : System.UnauthorizedAccessException: L'accès au chemin d'accès 'D:\work\TAG2\svn\trunk\Projects\WorkData\2D\CARD' est refusé.
   à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   à System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
   à System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
   à System.IO.Directory.CreateDirectory(String path)
   à ctpktool.CTPKEntry.ToFile(String outputFolder)
   à ctpktool.Ctpk.Read(Byte[] data, String filename)
   à ctpktool.Ctpk.Read(String filename)
   à ctpktool.Program.Main(String[] args)

there are others file for menu and others, and it works. But for cards game, nothing work. Somebody know why? Thx.
here is a 2 files from the game. 2 file for one card (i dont know why).
http://www.mediafire.com/download/l6k64xut3msqe76/Card.rar

with hex editor i can see the address D: error

--------------------- MERGED ---------------------------

ho, its ok now, i just change letter D to C and it work. tsss. thx :)
 

Attachments

  • Capturecardhex.JPG
    Capturecardhex.JPG
    81.6 KB · Views: 677
  • GB-01_F.rotate.tmp.png
    GB-01_F.rotate.tmp.png
    157.7 KB · Views: 641

CaesarMoonSama

Member
Newcomer
Joined
Mar 4, 2014
Messages
7
Trophies
0
Age
29
XP
113
Country
France
Hi, I have some issues with some ctpk files, they do not want to unpack.
This always happens with the games of the same company: Furyu.
This is for the translation of the game Cardfight Vanguard G Stride to Victory.
Here, a ctpk from this game: http://www.filedropper.com/bt01001f
 

Attachments

  • Capture.png
    Capture.png
    26.8 KB · Views: 706

szh

Well-Known Member
Newcomer
Joined
Aug 22, 2009
Messages
47
Trophies
0
XP
144
Country
Senegal
Hi, I have some issues with some ctpk files, they do not want to unpack.
This always happens with the games of the same company: Furyu.
This is for the translation of the game Cardfight Vanguard G Stride to Victory.
Here, a ctpk from this game: http://www.filedropper.com/bt01001f

The file is compressed with gzip. I deleted the first 4 bytes and was able to decompress it.
However, the resulting file still does not work with ctpktool. I get this error:
Code:
Converting ...

Unhandled Exception: System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPath
Length, Boolean expandShortPaths)
   at System.IO.Path.GetDirectoryName(String path)
   at ctpktool.CTPKEntry.ToFile(String outputFolder)
   at ctpktool.Ctpk.Read(Byte[] data, String filename)
   at ctpktool.Ctpk.Read(String filename)
   at ctpktool.Program.Main(String[] args)

Looking at the CTPK file in a hex editor, I don't see the filename on the right. I assume (from guessing at the source code :X ) ctpktool is trying to create a file with an invalid filename, perhaps?
upload_2016-2-9_1-3-42.png


Any help would be appreciated!
 

CaesarMoonSama

Member
Newcomer
Joined
Mar 4, 2014
Messages
7
Trophies
0
Age
29
XP
113
Country
France
Thanks for your reply. And for discover the gzip compression.
I tested what have you did and it works like you.
I tested to insert a filename in the file, the tool extract it but the result is corrupt...
Someone could help?
 

szh

Well-Known Member
Newcomer
Joined
Aug 22, 2009
Messages
47
Trophies
0
XP
144
Country
Senegal
Thanks for your reply. And for discover the gzip compression.
I tested what have you did and it works like you.
I tested to insert a filename in the file, the tool extract it but the result is corrupt...
Someone could help?

Insert it at the correct position, offset 44 onwards.
upload_2016-2-11_12-3-40.png


And it should extract with ctpktool. I got this from common/continue00.ctpk (although I'm trying to do this for Ride to Victory, not G Stride to Victory). This is the image of the main menu, I think.
continue00.png

I modified the image, but don't yet know how to repack it back into 3DS format. I tried and it crashes on my 3DS :(
 
General chit-chat
Help Users
    KenniesNewName @ KenniesNewName: I think it's just him in general funny people proved a good point