Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Batman Arkham Knight subtitles

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

Batman Arkham Knight subtitles

Post 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.
shadowlonely1989
veteran
Posts: 83
Joined: Sun Nov 30, 2014 1:49 am
Has thanked: 45 times
Been thanked: 8 times
Contact:

Re: Batman Arkham Knight subtitles

Post 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.
deneverfaszu
ultra-n00b
Posts: 8
Joined: Sat Aug 22, 2015 1:52 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post by deneverfaszu »

And how did you open those usm files?
shadowlonely1989
veteran
Posts: 83
Joined: Sun Nov 30, 2014 1:49 am
Has thanked: 45 times
Been thanked: 8 times
Contact:

Re: Batman Arkham Knight subtitles

Post by shadowlonely1989 »

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 »

Up.
deneverfaszu
ultra-n00b
Posts: 8
Joined: Sat Aug 22, 2015 1:52 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post 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.
deneverfaszu
ultra-n00b
Posts: 8
Joined: Sat Aug 22, 2015 1:52 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post 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. :)
Taner038
mega-veteran
mega-veteran
Posts: 179
Joined: Fri Aug 22, 2014 6:14 pm
Has thanked: 16 times
Been thanked: 6 times

Re: Batman Arkham Knight subtitles

Post by Taner038 »

Up.
I need the unpack/repack .usm files.
Please, help!
deneverfaszu
ultra-n00b
Posts: 8
Joined: Sat Aug 22, 2015 1:52 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Batman Arkham Knight subtitles

Post 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();
ramyzahran
n00b
Posts: 19
Joined: Tue May 23, 2017 12:41 am
Has thanked: 34 times

Re: Batman Arkham Knight subtitles

Post by ramyzahran »

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