how to edit Kingdom hearts .ctd files?

How to translate the files of a game
youaya
Posts: 3
Joined: Fri Dec 16, 2022 3:22 am

how to edit Kingdom hearts .ctd files?

Post by youaya »

I'm use khpcpatchmanager extract Kingdom Hearts series English localization file but file is .ctd
I need tool to export and import text.
I 'm upload file please help me.
youaya
Posts: 3
Joined: Fri Dec 16, 2022 3:22 am

Re: how to edit Kingdom hearts .ctd files?

Post by youaya »

here is ctd file
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: how to edit Kingdom hearts .ctd files?

Post by rabatini »

Code: Select all

idstring "@CTD"
GET UNK LONG
GET UNK LONG
GET UNK SHORT
GET ENTRIES SHORT
GET UNK LONGLONG
GOTO 0X24

FOR RIP = 1 TO ENTRIES

GET OFFSET SHORT
GET ZEROS SHORT
GET ID LONG
SAVEPOS TEMP
GET SIZE SHORT
GET ZEROS SHORT
GET ID LONG
XMATH SIZE "(SIZE - OFFSET)"
SLOG "" OFFSET SIZE UNICODE
GOTO TEMP
NEXT RIP

This sould extract your file to a .txt
youaya
Posts: 3
Joined: Fri Dec 16, 2022 3:22 am

Re: how to edit Kingdom hearts .ctd files?

Post by youaya »

rabatini wrote:

Code: Select all

idstring "@CTD"
GET UNK LONG
GET UNK LONG
GET UNK SHORT
GET ENTRIES SHORT
GET UNK LONGLONG
GOTO 0X24

FOR RIP = 1 TO ENTRIES

GET OFFSET SHORT
GET ZEROS SHORT
GET ID LONG
SAVEPOS TEMP
GET SIZE SHORT
GET ZEROS SHORT
GET ID LONG
XMATH SIZE "(SIZE - OFFSET)"
SLOG "" OFFSET SIZE UNICODE
GOTO TEMP
NEXT RIP

This sould extract your file to a .txt
Hmm ...... how should I use this;I'm totally rookie,sorry……
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: how to edit Kingdom hearts .ctd files?

Post by rabatini »

youaya wrote:
rabatini wrote:

Code: Select all

idstring "@CTD"
GET UNK LONG
GET UNK LONG
GET UNK SHORT
GET ENTRIES SHORT
GET UNK LONGLONG
GOTO 0X24

FOR RIP = 1 TO ENTRIES

GET OFFSET SHORT
GET ZEROS SHORT
GET ID LONG
SAVEPOS TEMP
GET SIZE SHORT
GET ZEROS SHORT
GET ID LONG
XMATH SIZE "(SIZE - OFFSET)"
SLOG "" OFFSET SIZE UNICODE
GOTO TEMP
NEXT RIP

This sould extract your file to a .txt
Hmm ...... how should I use this;I'm totally rookie,sorry……
copy this code in a txt file, save, open quickbms and use the txt file withthis code in your file.