Half Minute Hero translation (.dct files)

Need help translating games in other languages? Have your language problems solved here.
Post Reply
User avatar
TheReaperCooL
advanced
Posts: 60
Joined: Sat Apr 17, 2010 8:18 pm
Been thanked: 2 times

Half Minute Hero translation (.dct files)

Post by TheReaperCooL » Tue Oct 09, 2012 5:45 pm

Hi there!

Half Minute Hero has been released on PC, and I'd like to translate it to my language. I've seen the files, and the text is in .dct files. There are some smaller text in .bin files too, but most of it is in the .dct's.

Who can help me with these files, and how can I help you (posting some of the files or some part of them or what)?

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 134 times

Re: Half Minute Hero translation (.dct files)

Post by WRS » Wed Oct 10, 2012 4:45 pm

i found the game online.


the extensions used by the game can be ignored.
some .bin files (TextTable_xx.bin) contain null-terminated strings
other formats can be extracted with this script:

Code: Select all

# generic hmh .bin/.dct/.cat container extractor
# QuickBMS script by WRS

get size asize

do
  getdstring name 24
  getdstring ext 4
  get size long
  savepos pos
  string fname p= "%s.%s" name ext
  log fname pos size
  math pos += size
while pos < size
note some files have several 'containers' before the actual data. to save yourself time extracting, run quickbms from the command line if you can

edit
cscv format (poc parser, does not extract anything)

Code: Select all

idstring "CSCV"
get itemSize long # 284
get itemCnt long # n
get NEGONE long # -1

for i = 0 < itemCnt
  get int1 long # 30000 ?
  get int2 long # 0 
  get int3 long # -1
  get int4 long # 199/200
  get int5 long # ~10
  get int6 long # <5
  getdstring STR1 64 # scene 
  getdstring STR2 64 # empty
  getdstring STR3 64 # empty
  getdstring STR4 64 # empty
  get NEGONE long # -1
next i
Useful tool links:

User avatar
TheReaperCooL
advanced
Posts: 60
Joined: Sat Apr 17, 2010 8:18 pm
Been thanked: 2 times

Re: Half Minute Hero translation (.dct files)

Post by TheReaperCooL » Thu Oct 11, 2012 5:53 pm

Thank you for your answer, but the first script tells me this when I run it on any file (be it .dct or anything else):

"Invalid operator p"

I tried the other one as well, but it said "0 files" on everything I tried it on :\

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 134 times

Re: Half Minute Hero translation (.dct files)

Post by WRS » Fri Oct 12, 2012 12:24 am

whoops, the first script should look like:

Code: Select all

get size asize

do
  getdstring name 24
  getdstring ext 4
  get size long
  savepos pos
  string fname f= "%s.%s" name ext
  log fname pos size
  math pos += size
  goto pos
while pos < size
and i said the second script doesn't extract anything..
Useful tool links:

User avatar
TheReaperCooL
advanced
Posts: 60
Joined: Sat Apr 17, 2010 8:18 pm
Been thanked: 2 times

Re: Half Minute Hero translation (.dct files)

Post by TheReaperCooL » Fri Oct 12, 2012 2:03 pm

Thanks for the reply, but this also doesn't work, says "Invalid operator f"

BTW can this export and import text too?

Post Reply