ROM Hack [Release] CTPK Tool

  • Thread starter Thread starter Nagato
  • Start date Start date
  • Views Views 42,098
  • Replies Replies 53
  • Likes Likes 14
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,445
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... :(
 
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.
 
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: 1,059
  • songselect.png
    songselect.png
    3.6 KB · Views: 846
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
 
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...
 
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: 815
  • GB-01_F.rotate.tmp.png
    GB-01_F.rotate.tmp.png
    157.7 KB · Views: 786
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: 851
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!
 
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?
 
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 :(
 

Site & Scene News

Popular threads in this forum