Batman Arkham Knight subtitles
Posted: 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.
I founded subtitle text in usm video. But i can not see subtitle text ingame.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 open those usm file by hex editor and edit handmade!deneverfaszu wrote:And how did you open those usm files?
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();