Join also our Discord channel! Click here.

Batman Arkham Knight subtitles

Need help translating games in other languages? Have your language problems solved here.
Post Reply
deneverfaszu
ultra-n00b
Posts: 7
Joined: Sat Aug 22, 2015 1:52 pm
Been thanked: 1 time

Batman Arkham Knight subtitles

Post by deneverfaszu » Sat Aug 22, 2015 2:20 pm

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.

shadowlonely1989
veteran
Posts: 81
Joined: Sun Nov 30, 2014 1:49 am
Has thanked: 45 times
Been thanked: 4 times
Contact:

Re: Batman Arkham Knight subtitles

Post by shadowlonely1989 » Tue Aug 25, 2015 2:45 am

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.

deneverfaszu
ultra-n00b
Posts: 7
Joined: Sat Aug 22, 2015 1:52 pm
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post by deneverfaszu » Tue Aug 25, 2015 11:56 am

And how did you open those usm files?

shadowlonely1989
veteran
Posts: 81
Joined: Sun Nov 30, 2014 1:49 am
Has thanked: 45 times
Been thanked: 4 times
Contact:

Re: Batman Arkham Knight subtitles

Post by shadowlonely1989 » Thu Aug 27, 2015 8:59 am

deneverfaszu wrote:And how did you open those usm files?
I open those usm file by hex editor and edit handmade!

User avatar
Skrillex
advanced
Posts: 66
Joined: Fri Aug 22, 2014 6:11 pm
Location: Earth
Has thanked: 1 time

Re: Batman Arkham Knight subtitles

Post by Skrillex » Wed Nov 11, 2015 1:52 am

Up.

deneverfaszu
ultra-n00b
Posts: 7
Joined: Sat Aug 22, 2015 1:52 pm
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post by deneverfaszu » Sun Apr 10, 2016 4:30 pm

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.

deneverfaszu
ultra-n00b
Posts: 7
Joined: Sat Aug 22, 2015 1:52 pm
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post by deneverfaszu » Sun Aug 07, 2016 6:04 pm

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. :)

Taner038
mega-veteran
mega-veteran
Posts: 171
Joined: Fri Aug 22, 2014 6:14 pm
Has thanked: 11 times
Been thanked: 5 times

Re: Batman Arkham Knight subtitles

Post by Taner038 » Thu Jul 06, 2017 1:55 am

Up.
I need the unpack/repack .usm files.
Please, help!

deneverfaszu
ultra-n00b
Posts: 7
Joined: Sat Aug 22, 2015 1:52 pm
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post by deneverfaszu » Wed Jul 26, 2017 12:13 am

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();

ramyzahran
n00b
Posts: 11
Joined: Tue May 23, 2017 12:41 am
Has thanked: 24 times

Re: Batman Arkham Knight subtitles

Post by ramyzahran » Wed Nov 27, 2019 10:34 am

any update .. i need tool for batman arkham knight text fonts edit .. please help.

Post Reply