Page 1 of 1

Batman Arkham Knight subtitles

Posted: Sat Aug 22, 2015 2:20 pm
by deneverfaszu
Hi! I'm currently making a hungarian translation to Batman Arkham Knight and i want to know which files holding the subtitles. If anybody knows, please help me.

Re: Batman Arkham Knight subtitles

Posted: Tue Aug 25, 2015 2:45 am
by shadowlonely1989
deneverfaszu wrote:Hi! I'm currently making a hungarian translation to Batman Arkham Knight and i want to know which files holding the subtitles. If anybody knows, please help me.
I founded subtitle text in usm video. But i can not see subtitle text ingame.

Re: Batman Arkham Knight subtitles

Posted: Tue Aug 25, 2015 11:56 am
by deneverfaszu
And how did you open those usm files?

Re: Batman Arkham Knight subtitles

Posted: Thu Aug 27, 2015 8:59 am
by shadowlonely1989
deneverfaszu wrote:And how did you open those usm files?
I open those usm file by hex editor and edit handmade!

Re: Batman Arkham Knight subtitles

Posted: Wed Nov 11, 2015 1:52 am
by Skrillex
Up.

Re: Batman Arkham Knight subtitles

Posted: Sun Apr 10, 2016 4:30 pm
by deneverfaszu
Meanwhile I got a tool for unpacking and repacking upk files, it works fine and I can translate the in-game texts but the thing is, it only works with Arkham Origins. :(
If somebody has a little knowledge of programming or knows how unreal engine's in-game texts are working, please help me to make it compatible with Arkham Knight.

Message me and i will send the tool.

Re: Batman Arkham Knight subtitles

Posted: Sun Aug 07, 2016 6:04 pm
by deneverfaszu
Well, I have a tool for Arkham Knight, but the new problem is I can't extract the texts from the .usm files. I know it could be done without extracting and editing by a hex editor, but I don't want that because hex editing usually messes up the files.

I have a tool for .usm files, but this one's for Arkham Origins too.

If somebody can make a working version for Arkham Knight, please let me know and I'll send the tool.
I would really appreciate that. :)

Re: Batman Arkham Knight subtitles

Posted: Thu Jul 06, 2017 1:55 am
by Taner038
Up.
I need the unpack/repack .usm files.
Please, help!

Re: Batman Arkham Knight subtitles

Posted: Wed Jul 26, 2017 12:13 am
by deneverfaszu
So the thing is the Arkham Origins usm extractor works, now only the repacker needs be fixed for AK.
Anyone a little help? :)

Repacker's source code:

Code: Select all

//--------------------------------------
//--- 010 Editor v3.2.2 Script File
//
// File: usm injector
// Author: celikeins
// Revision: 0.88
// Purpose: repack usm files 
//--------------------------------------

int detSize( int  osize, int  size)
    {
		int base1 = 0x2C,base2=0x2C;
        while(base1<osize) base1+=0x20;
		while(base2<size) base2+=0x20;
		return base2-base1;

    }

uint KEY=1413632832;
ushort newl=2573;
uint sized; 
int i,j,aux,res,tsize,otsize,cur,out,cnt;

uchar buffer[0xFFF];
string txt;
TFindResults r;
TFileList fl = FindFiles( GetArg(0), "*.usm" );
Printf("%d",fl.filecount);
for(j=0;j<fl.filecount;j++)
{
			cnt=3;
			cur=FileOpen(GetArg(0)+"\\"+fl.file[j].filename);

			out=FileOpen(GetArg(0)+"\\usm_txts\\"+fl.file[j].filename+".txt");
			FileSelect(cur);
			r = FindAll( KEY);
			for( i = 3; i < r.count-1; i++ ){
                if(ReadInt(r.start[i]+0x20)==0){
					otsize=ReadInt(r.start[i]+0x30);					
					FileSelect(out);
					txt=ReadString(cnt); 
					tsize=Strlen(txt); cnt+=(tsize+2+2);
					FileSelect(cur);
					aux=detSize(otsize,tsize+2);					
					if(aux>0){
					    InsertBytes(r.start[i]+0x34+otsize,aux );
					    BigEndian();
						res=ReadInt(r.start[i]+4);
						WriteInt(r.start[i]+4,res+aux);
						LittleEndian();
					}
					ConvertDataToBytes(txt,buffer);
					WriteInt(r.start[i]+0x30,tsize+2);
                    buffer[tsize+1]=0;
					WriteBytes(buffer,r.start[i]+0x34,tsize+2);												
					FileSelect(cur);
				}									
			}
			FileSelect(out);
			FileClose();
			FileSelect(cur);
			FileSave();
			FileClose();
}
//Terminate();

Re: Batman Arkham Knight subtitles

Posted: Wed Nov 27, 2019 10:34 am
by ramyzahran
any update .. i need tool for batman arkham knight text fonts edit .. please help.