ROM Hack [Release] CTPK Tool

arbalest876

Well-Known Member
Newcomer
Joined
Oct 7, 2014
Messages
54
Trophies
0
Age
37
XP
108
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,333

Anton299

Well-Known Member
Member
Joined
Jan 18, 2012
Messages
126
Trophies
1
Age
50
Location
Kiev
Website
www.shedevr.org.ru
XP
359
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
37
XP
108
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: 960
  • songselect.png
    songselect.png
    3.6 KB · Views: 782

Smariter

Active Member
Newcomer
Joined
Dec 23, 2014
Messages
29
Trophies
0
Age
55
XP
111
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
46
XP
429
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: 746
  • GB-01_F.rotate.tmp.png
    GB-01_F.rotate.tmp.png
    157.7 KB · Views: 704

CaesarMoonSama

Member
Newcomer
Joined
Mar 4, 2014
Messages
7
Trophies
0
Age
30
XP
123
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: 772

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
30
XP
123
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 :(
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • A @ anotherthing:
    Online was free on the 3DS as well, and it worked well.
    +1
  • S @ salazarcosplay:
    I can't help but think nintendo switch online is the reason we did not get a gameboy/n64/gamecube
    mini classic edition
    +1
  • Xdqwerty @ Xdqwerty:
    @salazarcosplay, i think it would have been impossible to see anything in a gameboy mini
  • S @ salazarcosplay:
    well I meant that as a figure of speech
  • S @ salazarcosplay:
    they could just rerelease a modern gameboy
  • S @ salazarcosplay:
    like the pocket analogue
  • S @ salazarcosplay:
    but nintendo licensed
  • LeoTCK @ LeoTCK:
    dammit that thread got moved from offtopic to edge, well since that happened
  • Xdqwerty @ Xdqwerty:
    @LeoTCK, atleast it's still avaliable
  • LeoTCK @ LeoTCK:
    yes but it wasn't meant to be a comedy thread
  • LeoTCK @ LeoTCK:
    and edge of the forum is mostly comedy and games
  • LeoTCK @ LeoTCK:
    so I don't get why it got moved at all
  • Xdqwerty @ Xdqwerty:
    @LeoTCK, mods are probably hating you
  • LeoTCK @ LeoTCK:
    on most sites mods hated me, sooner or later, but usually over time I get either banned or the mods get used to me
  • LeoTCK @ LeoTCK:
    sometimes to the point of thanking me for my quick actions etc against spam and other stuff, but yea...its either they come to respect me or outright hate me
    +1
  • BigOnYa @ BigOnYa:
    If it's not game related, it will be moved to the Egde of the forum. Mods have moved a few of my threads also.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, it was in the off topic chat forum
  • BigOnYa @ BigOnYa:
    Well atleast they didn't delete it completely.
  • LeoTCK @ LeoTCK:
    hmm
  • Xdqwerty @ Xdqwerty:
    uoiea
  • LeoTCK @ LeoTCK:
    huh?
  • Xdqwerty @ Xdqwerty:
    Aeiou backwards
    Xdqwerty @ Xdqwerty: Aeiou backwards